[tclwebtest] Fix for a rare redirection problem with eval
Status: Abandoned
Brought to you by:
tils
From: Grzegorz A. H. <gr...@ef...> - 2003-08-22 11:58:57
|
Hi. I'm working now on an intranet for a client of us, and the restructuration led to a few new pages and redirections. These new redirections make tclwebtest fail testing units. The failure consists on a redirected url having a semicolon. The semicolon is parsed by eval as a command separation, thus, you get this output in the log: > [...] > --- do_request for http://192.168.1.50:8014/a-gastos/request-ae-2 > http status: >>302<< > following a redirect to: request-planning-travel?id=330&from=sel_new;one_req > --- do_request for http://192.168.1.50:8014/a-gastos/request-planning-travel?id=330&from=sel_new > http status: >>200<< > > invalid command name "one_req" > while executing > "one_req" > ("eval" body line 1) > invoked from within > "eval "do_request $nocomplain_option $followequiv_option $location"" > (procedure "do_request" line 134) > invoked from within > [...] As you can see, the `one_req' part of the url is parsed as a command. I didn't find any other way to solve this than create a temporary list for eval to use it. This way, parameters can have characters which eval could process with another meaning, like the semicolon. Til, are you ok with this patch? Is there any easier way to go around this? Gordon Molek, could you try this patch against your Apache server with httpauth and see if I have broken something? The patch works fine with tclwebtest's selftest directory and my own batch of unit tests, but I don't have any Apache to play. -- Grzegorz Adam Hankiewicz, gr...@ef.... Tel: +34-94-472 35 89. eFaber SL, Maria Diaz de Haro, 68, 2 http://www.efaber.net/ 48920 Portugalete, Bizkaia (SPAIN) |