Problems with hobbit-enadis.cgi from info page
list Francesco Duranti
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) With an error in the browser error: Not Found The requested URL /hobbit-seccgi/(null) was not found on this server. I tested also with 4.2.0 without any patch installed and i get the same result...
Works really good ... Also the hobbitfetch patch is working well... I'm having a little problem with the enable-disable page Called inside the info page i get a web page http://itromlx10/hobbit-seccgi/(null) And the error Not Found The requested URL /hobbit-seccgi/(null) was not found on this server. Apache/2.0.55 (Red Hat) Server at itromlx10 Port 80 If called from a page to disable multiple time i get and internal server error
list Henrik Størner
▸
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
list Francesco Duranti
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:user-ce4a2c883f75@xymon.invalid] Sent: Tuesday, August 15, 2006 5:56 PM To: user-ae9b8668bcde@xymon.invalid 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 pageThe 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
list Henrik Størner
▸
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
list Tom Georgoulias
▸
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