Overview
| Artifact ID: | d9bf6326208c7d8e156d648bf1c1e9811f29b92b |
|---|---|
| Ticket: | 218073ffffffffffffffffffffffffffffffffff
array assignmet of http::get data |
| User & Date: | nobody on 2000-10-26 00:52:52 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "final: 8.0.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "array assignmet of http::get data"
- type changed to: "Bug"