Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-20
04:12 • Ticket [218073ffff] array assignmet of http::get data status still Deleted ... artifact: 6af82d9130 user: dgp
2000-10-26
08:13 • Deleted ticket [218073ffff]. artifact: 2af210f165 user: welch
00:52 • New ticket [218073ffff]. artifact: d9bf632620 user: nobody

array assignmet of http::get data

Deleted218073ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:52
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
welch Deleted ticket [218073ffff]. [History diff]2000-10-26 08:13:45
dgp Ticket [218073ffff]: 3 changes [History diff]2001-04-20 04:12:50
Log in (anonymous is fine) to add a comment.