Issue found on TD63 and TD70
(not tested in earlier versions)
When response string was initialized with
""
before getting the response, the received response string is OKWhen response string was initialized with
STRING_Null
before getting the response, the sample FAILS:- String has a buffer length
- Tooltip in IDE shows the content of the variable and seems ok
- String can not be used in API functions
- TD can crash on API functions when string is used
- Content of string can not be accessed
STRING_Null
and ""
buffer is handled in HTTPRequest
.Both ways of initializing the variable must be supported.
When STRING_Null, the buffer is corrupted and can lead to issues.
See testcase.
- First use: press test button to see the HTTPRequest works ok.
It gets the response from http://www.google.com.
After the request, the response is displayed in multiline and a text is searched in the response. - Check checkbox to make it fail. It will then use STRING_Null as init.
- See uncommented code to make TD give errors or crash.
This defect has been registered as :
Ticket # 3013577: HTTPRequest class: fails when response initialised with STRING_Null
When TD defect number is known, I will update this thread.