Skip to content
Tcl Source Code History Of Ticket 218998
Login

History Of Ticket 218998

Artifacts Associated With Ticket 218998

  1. Ticket change [60e2f44bfc] (rid 92147) by nobody on 2000-10-26 01:09:07:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.2.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Insufficient error handling generates exception"
    11. type initialized to: "Bug"
  2. Ticket change [839212fe2d] (rid 117407) by welch on 2000-10-26 08:33:08:

    1. closedate changed to: "2000-10-26T01:33:08"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Deleted"
  3. Ticket change [175b596ae0] (rid 122477) by dgp on 2001-04-19 04:44:19:

    1. closedate changed to: "2001-04-18T21:44:19"
    2. closer changed to: "dgp"
    3. subsystem changed to: "29. http Package"