Overview
| Artifact ID: | c0a21d00691cc57024bd6b75e8a7c40ecbcffb28 |
|---|---|
| Ticket: | 3599395fffffffffffffffffffffffffffffffff
http assumes status line is a proper tcl list |
| User & Date: | dvrsn on 2013-01-04 00:30:43 |
Changes
- assignee changed to: "patthoyts"
- cmimetype changed to: "text/plain"
- comment changed to:
The http package implicitly assumes that the response status line is a proper tcl list. The http specification does not guarantee this: Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF Reason-Phrase = *<TEXT, excluding CR, LF> If the http status like is, for example HTTP/1.0 200 This server is "ok", for now http::geturl will choke on it with an error like list element in quotes followed by "," instead of space while executing "lindex $state(http) 1" (procedure "http::Event" line 26) invoked from within "http::Event sock6 ::http::2" The line at fault appears to be if {$state(http) == "" || [lindex $state(http) 1] == 100} { Changing that to if {$state(http) == "" || [string is list $state(http)] && [lindex $state(http) 1] == 100} { would fix this error, although it might then miss the "100 Continue" status it was looking for. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dvrsn"
- subsystem changed to: "29. http Package"
- title changed to: "http assumes status line is a proper tcl list"
- type changed to: "Bug"