Artifacts Associated With Ticket 218073
Ticket change [d9bf632620] (rid 107661) by nobody on 2000-10-26 00:52:52:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1620 Bug Version: 8.0.5 SubmitDate: '1999-03-24' LastModified: '1999-10-21' Severity: MED Status: Closed Submitter: pat ChangedBy: hobbs OS: Solaris OSVersion: SunOS mars 5.5.1 Generic_103640-17 sun4d sparc SUNW,SPARCserver- Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-10-21' Name: Jeff Beard Extensions: Oratcl 2.5 as shared library, although not ref in this case CustomShell: none, nada, zip ReproducibleScript: set data [ http::data [ http::geturl http://aurl/with_302/return_status ] ] puts stderr "$data" data:: <head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="/AdvWorks/default.asp">here</a>.</body> puts stderr " len [string length $data ] cnt [llength $data ] " len 143 cnt 10 # now assign it to an array set WEBPAGES(url) $data # and compare results to simple var assignment puts stderr " len [string length $WEBPAGES(url) ] cnt [llength $WEBPAGES(url) ] " len 123 cnt 10 puts stderr "page: $WEBPAGES(url)" page: <head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="/AdvWorks/default.asp NOTICE; truncation at trailing ">here</a>.</body> tcl_version 8.0 tcl_patchLevel 8.0.5 SunOS mars 5.5.1 Generic_103640-17 sun4d sparc SUNW,SPARCserver-1000 native CC environment ObservedBehavior: assignment truncated the string and the last [ " ] char in the string DesiredBehavior: the assignment should not have been truncated This is not reproducible with 8.0 or 8.2. It seems that there may be a problem with the list interpretation of the data, as it is not exactly "well-formed". However, I can find no problems. The user should note that the list rep of a string will remove excess whitespace between list elements. A better test case would be needed to prove this is a problem. -- 10/21/1999 hobbs - foundin initialized to: "final: 8.0.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "array assignmet of http::get data"
- type initialized to: "Bug"
Ticket change [2af210f165] (rid 118654) by welch on 2000-10-26 08:13:45:
- closedate changed to: "2000-10-26T01:13:45"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Deleted"
Ticket change [6af82d9130] (rid 128234) by dgp on 2001-04-20 04:12:50:
- closedate changed to: "2001-04-19T21:12:50"
- closer changed to: "dgp"
- subsystem changed to: "29. http Package"