Dear guest !

Welcome to Team Developer Community Forum. A place created by the community, for the community !

This is a resource for Q & A and discussion about everything related to OpenText Gupta Team Developer, SqlBase, TD Mobile and Report Builder.
It is the alternative for the OpenText customer forums which can only be accessed with an active support contract.

Please register your account now. It will make you part of the active community.
Also, this guest message will not be displayed for registered users.

As a bonus, registered users have access to the 'Newsgroups' subforum, holding 10 years worth of posts from the good old Gupta newsgroups.

Having an account gives you the opportunity to ask questions and get help from others.
We hope this free gathering will help you and the community getting forward!

Best regards,
The forum site admins.

Solved TD-23491: [TD63/TD70] HTTPRequest class: fails when response initialised with STRING_Null

Post found bugs and possible workarounds.
Post Reply
Dave Rabelink
Founder/Site Admin
Netherlands
Posts: 234
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands
Contact:

TD-23491: [TD63/TD70] HTTPRequest class: fails when response initialised with STRING_Null

Post by Dave Rabelink » 13 Apr 2017, 08:34

Using HTTPRequest class from xmllib.apl.

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 OK
When 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
So there is a clear difference how a 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.

HTTPRequest-StringNull_or_Empty.zip
(8.53 KiB) Downloaded 5 times
  • 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.
Sample is in TD63 format and a copy of the sample in TD70 format.

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.
Regards,
Dave Rabelink

Image
Join & participate on Team Developer Tips & Tricks Wiki
Download samples from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Netherlands
Posts: 234
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands
Contact:

Re: [TD63/TD70] HTTPRequest class: fails when response initialised with STRING_Null

Post by Dave Rabelink » 01 Jun 2017, 06:58

The defect number is:

TD-23491: HTTPRequest may crash TD when response string is initialised with STRING_Null

OpenText Knowledge base article:
https://knowledge.opentext.com/knowledg ... /KB4999499
Regards,
Dave Rabelink

Image
Join & participate on Team Developer Tips & Tricks Wiki
Download samples from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Netherlands
Posts: 234
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands
Contact:

Re: TD-23491: [TD63/TD70] HTTPRequest class: fails when response initialised with STRING_Null

Post by Dave Rabelink » 19 Jul 2017, 07:05

This issue is fixed in TD 6.3.9
Regards,
Dave Rabelink

Image
Join & participate on Team Developer Tips & Tricks Wiki
Download samples from TD Sample Vault
Videos on TDWiki YouTube Channel

Post Reply

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest