[hobbit] Problems with hobbit-enadis.cgi from info page
I was checking with the help of cgierror.log and yes the problem is the HTTP_REFERER. Now I don't get an error but I remain in the hobbit-enadis page instead of returning to the info page.
It do the same from firefox on a linux machine.
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Tuesday, August 15, 2006 5:56 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Problems with hobbit-enadis.cgi from info page
On Tue, Aug 15, 2006 at 04:16:49PM +0200, Francesco Duranti wrote:
I've recompiled a clean 4.2.0 with all the patch installed and the hobbit-enadis script is working well when called from the menu (so i think i did something wrong during the yesterday patch). I continue to get errors while enabling/disabling tests directly from the info page
The test will be disabled/enabled rightly but the script will put me on this page http://itromlx10/hobbit-seccgi/(null)
The code uses the HTTP_REFERER variable provided by your webserver's CGI, which in turn gets it from the "Referer:" header that the browser puts into the HTTP request.
For some reason your browser doesn't generate this header. After doing some google'ing, I can see that this is not uncommon when using the Internet Explorer browser. It would probably work fine if you switched to Firefox.
Except some personal firewalls (Norton) also filters this out when passing requests to webservers.
So: Could you try changing this for me: In web/hobbit-enadis.c, around line 320 there is this line: printf("Location: %s\n\n", xgetenv("HTTP_REFERER")); Could you change that to printf("Location: %s%s\n\n", xgetenv("BBWEBHOST"), xgetenv("SCRIPT_NAME"));
That should make it work with your browser also.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Tue, Aug 15, 2006 at 06:12:21PM +0200, Francesco Duranti wrote:
I was checking with the help of cgierror.log and yes the problem is the HTTP_REFERER. Now I don't get an error but I remain in the hobbit-enadis page instead of returning to the info page.
Right, that is what it would do with that change.
I'll see what I can do to make it work right.
Regards, Henrik
Henrik Stoerner wrote:
On Tue, Aug 15, 2006 at 06:12:21PM +0200, Francesco Duranti wrote:
I was checking with the help of cgierror.log and yes the problem is the HTTP_REFERER. Now I don't get an error but I remain in the hobbit-enadis page instead of returning to the info page.
Right, that is what it would do with that change.
I'll see what I can do to make it work right.
We're seeing the opposite sometimes, where it works from the "info" column but not from the menu. When run from info, the enabling/disabling part works, even those the server error is displayed.
I tried making the modification to line 320 and recompiling, but that didn't correct it for us.
My users have a mix of firefox & IE across both WinXP and Fedora Core 5 Linux.
Tom
participants (3)
-
fduranti@q8.it
-
henrik@hswn.dk
-
tomg@mcclatchyinteractive.com