Artifacts Associated With Ticket 218875ffffffffff
Ticket change [75dcfbb7da] (rid 105465) by nobody on 2000-10-26 01:07:03:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2502 Bug Version: 8.0p2 SubmitDate: '1999-08-04' LastModified: '1999-08-05' Severity: MED Status: Released Submitter: techsupp ChangedBy: hobbs OS: Solaris Machine: Other FixedDate: '1999-08-05' FixedInVersion: 8.2 ClosedDate: '2000-10-25' Name: José Serrano Extensions: none CustomShell: no Comments: There is obviously something wrong in the implementation of ::http::geturl that is changing the value of i in a part of the stack that shouldn't be affected by it. ReproducibleScript: for {set i 0} {$i < $times} {incr i} { puts "the value of i is : $i" set val [::http::geturl http://dalwhinnie.dcs.st-and.ac.uk:81] set ret [::http::data $val] puts $ret puts "new value : $i" } I called this script from the command line dalwhinnie% ./test_query_http.tcl ObservedBehavior: The for loop is only executed once, because the 'i' variable gets changed to the value 257 after the execution of ::http::geturl Example: dalwhinnie% ./test_query_http.tcl the value of i is : 0 <HTML> <HEAD> ... </HEAD> <BODY BGCOLOR="#ffffff" TEXT="#0a197a" LINK="#0a197a" VLINK="#0a197a" ALINK= "#0a197a"> ... </BODY> </HTML> new value : 257 DesiredBehavior: Variable i shouldn't be affected by this!!! In fact, when you change i for j, everything works fine! This has been fixed for the 8.2b3 release. -- 08/05/1999 hobbs - foundin initialized to: "obsolete: 8.0p2"
- 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: "::http::geturl side-effects on 'i' variable"
- type initialized to: "Bug"
Ticket change [0f6c6bc72f] (rid 94790) by welch on 2000-10-26 08:30:15:
- closedate changed to: "2000-10-26T01:30:15"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Deleted"
Ticket change [511d56ccef] (rid 126087) by dgp on 2001-04-16 20:21:03:
- closedate changed to: "2001-04-16T13:21:03"
- closer changed to: "dgp"
- subsystem changed to: "29. http Package"