Artifacts Associated With Ticket 218998
Ticket change [60e2f44bfc] (rid 92147) by nobody on 2000-10-26 01:09:07:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 3752 Bug Version: 8.2.2 SubmitDate: '1999-12-02' LastModified: '1999-12-03' Severity: CRIT Status: Released Submitter: techsupp ChangedBy: hobbs OS: Solaris Machine: Sun Ultra Sparc FixedDate: '1999-12-03' FixedInVersion: 8.2.3 ClosedDate: '2000-10-25' Name: Q. Alex Zhao Comments: If "catch" catches an error, n is undefined, causing "if {$n == 0} ..." to fail. Use "elseif" should fix the problem. ReproducibleScript: Use the http package to fetch a Web page. ObservedBehavior: can't read "n": no such variable while executing "if {$n == 0} { set state(state) body if {![regexp -nocase ^text $state(type)]} { # Turn off conversions for non-text data fconfigure $s ..." (procedure "http::Event" line 14) invoked from within "http::Event ::http::722" DesiredBehavior: no error Patch: *** http.tcl.old Fri Nov 19 18:10:08 1999 --- http.tcl Thu Dec 2 13:13:30 1999 *************** *** 449,456 **** if {[string equal $state(state) "header"]} { if {[catch {gets $s line} n]} { Finish $token $err ! } ! if {$n == 0} { set state(state) body if {![regexp -nocase ^text $state(type)]} { # Turn off conversions for non-text data --- 449,455 ---- if {[string equal $state(state) "header"]} { if {[catch {gets $s line} n]} { Finish $token $err ! } elseif {$n == 0} { set state(state) body if {![regexp -nocase ^text $state(type)]} { # Turn off conversions for non-text data PatchFiles: http.tcl Good fix, wrong problem (user was using 8.1.1 actually). The necessary fixes have been applied for 8.2.3/8.3. -- 12/03/1999 hobbs - foundin initialized to: "obsolete: 8.2.2"
- 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: "Insufficient error handling generates exception"
- type initialized to: "Bug"
Ticket change [839212fe2d] (rid 117407) by welch on 2000-10-26 08:33:08:
- closedate changed to: "2000-10-26T01:33:08"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Deleted"
Ticket change [175b596ae0] (rid 122477) by dgp on 2001-04-19 04:44:19:
- closedate changed to: "2001-04-18T21:44:19"
- closer changed to: "dgp"
- subsystem changed to: "29. http Package"