Artifacts Associated With Ticket 218950ffffffffff
Ticket change [35fccc3a69] (rid 107041) by nobody on 2000-10-26 01:08:31:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.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: "l people listed in "Ou"
- type initialized to: "Bug"
Ticket change [1e64acce75] (rid 90963) by welch on 2000-10-26 08:32:15:
- closedate changed to: "2000-10-26T01:32:15"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Deleted"
Ticket change [0e034df798] (rid 94536) by dgp on 2001-04-19 03:34:09:
- closedate changed to: "2001-04-18T20:34:09"
- closer changed to: "dgp"
- subsystem changed to: "29. http Package"
- title changed to: "l people listed in "Ou"