Skip to content
Tcl Source Code History Of Ticket 218950ffffffffff
Login

History Of Ticket 218950ffffffffff

Artifacts Associated With Ticket 218950ffffffffff

  1. Ticket change [35fccc3a69] (rid 107041) by nobody on 2000-10-26 01:08:31:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2971 Bug
      Version: 8.2
      SubmitDate: '1999-09-28'
      LastModified: '1999-11-03'
      Severity: LOW
      Status: Released
      Submitter: wart
      ChangedBy: hershey
      OS: All
      FixedDate: '1999-11-03'
      FixedInVersion: 8.2.1
      ClosedDate: '2000-10-25'
      
      
      In the following code, the files are downloaded in the order:
      1, 257, 258, 259...  2-256 are skipped.  This happens because
      the http2.0 package uses the variable "i" in the namespace without
      first declaring it.  The result is that it finds a local variable
      "i" and uses it instead, thus hosing the value that we wanted for "i".
      
      set baseURL http://foo.bar.baz/
      
      for {set i 1} {$i <= 500} {incr i} {
          puts "Downloading page $i"
          set token [http::geturl $baseURL$i.html]
          set fileId [open $i.html w]
          puts $fileId [http::code $token]
          close $fileId
      }
      
      
      Fix:  declare "variable i" in the http namespace before using it.  Other
      temporary variables should be checked to see that they won't potentially
      hose user variable in the global scope.
      --
      This fix is already in the http 2.1 pkg for 8.2.1. 
      -- 09/28/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.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: "l people listed in "Ou"
    11. type initialized to: "Bug"
  2. Ticket change [1e64acce75] (rid 90963) by welch on 2000-10-26 08:32:15:

    1. closedate changed to: "2000-10-26T01:32:15"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Deleted"
  3. Ticket change [0e034df798] (rid 94536) by dgp on 2001-04-19 03:34:09:

    1. closedate changed to: "2001-04-18T20:34:09"
    2. closer changed to: "dgp"
    3. subsystem changed to: "29. http Package"
    4. title changed to: "l people listed in "Ou"