Bugs item #230479, was opened at 2001-01-30 10:00
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=103152&aid=230479&group_id=3152

Category: Scripting: CGI
Group: aolserver3_2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jerry Asher (jerryasher)
Assigned to: Nobody/Anonymous (nobody)
Summary: ENV{'SCRIPT_NAME' not set correctly

Initial Comment:
Take a look at: http://www.arsdigita.com/bboard/q-and-a-fetch-msg.tcl?msg_id=000Z6o, 
where various respondents suggest that problems installing cvsweb demonstrate the 
AOLserver may not be setting SCRIPT_NAME correctly.

----------------------------------------------------------------------

Comment By: Ellen Spertus (espertus)
Date: 2001-12-16 15:38

Message:
Logged In: YES
user_id=301497

I'm having the same problem.  The incorrect value for
SCRIPT_NAME is keeping aolserver from working with mailman.

----------------------------------------------------------------------

Comment By: Jerry Asher (jerryasher)
Date: 2001-01-31 14:06

Message:
Here are two ways to get at _exactly_ the same file in _exactly_ the same copy of 
cvsweb:
http://samantha.unet.brandeis.edu:8080/cgi-bin/cvsweb.cgi/portals/portals.info?r1=1.1.1.1

http://samantha.unet.brandeis.edu/cgi-bin/cvsweb.cgi/portals/portals.info?r1=1.1.1.1

The former is aolserver 3.2+ad10, the latter is Apache 1.3.14.

The link to "Diff to previous 1.1" is broken on the former but not the latter.

Is this a known weirdness in get vars or path_info in aolserver? Were workarounds 
necessary for cvs.arsdigita.com? Could you post them?

-- Rich Graves, January 30, 2001

Answers
I noticed the same thing; here is the note I wrote to our folks who use cvsweb when I 
fixed it:
The script was doing this:

($scriptname = $ENV{'SCRIPT_NAME'}) =~ s|^/?|/|;
$scriptname =~ s|/+$||;

to get the name of the script being executed. But instead of /cgi/cvsweb.cgi, which is 
what it should have been getting, it was getting /cgi/cvsweb.cgi/{file being viewed} 
instead. This resulted in the filename being doubled in many URLs, since it was being 
appended to this string.

My fix was to comment out the above and just do

$scriptname = "/cgi/cvsweb.cgi";

instead. I have no idea why this is required; all I can think of is that AOLserver 
sets the SCRIPT_NAME variable differently (and incorrectly) from Apache.

-- Janine Sisk, January 30, 2001



----------------------------------------------------------------------

Comment By: Jerry Asher (jerryasher)
Date: 2001-01-31 14:05

Message:
<blockquote>
Here are two ways to get at _exactly_ the same file in _exactly_ the
same copy of cvsweb:<p><a 
href="http://samantha.unet.brandeis.edu:8080/cgi-bin/cvsweb.cgi/portals/portals.info?r1=1.1.1.1";>http://samantha.unet.brandeis.edu:8080/cgi-bin/cvsweb.cgi/portals/portals.info?r1=1.1.1.1</a><p><a
 
href="http://samantha.unet.brandeis.edu/cgi-bin/cvsweb.cgi/portals/portals.info?r1=1.1.1.1";>http://samantha.unet.brandeis.edu/cgi-bin/cvsweb.cgi/portals/portals.info?r1=1.1.1.1</a><p>The
 former is aolserver 3.2+ad10, the latter is Apache 1.3.14.<p>The link to &quot;Diff 
to previous 1.1&quot; is broken on the former but not the
latter.<p>Is this a known weirdness in get vars or path_info in aolserver? Were
workarounds necessary for cvs.arsdigita.com? Could you post them?

<br>
<br>
-- <a href="http://www.arsdigita.com/shared/community-member?user_id=13251";>Rich 
Graves</a>, January 30, 2001


</blockquote>

<h3>Answers</h3>
<blockquote>I noticed the same thing;  here is the note I wrote to our folks who
use cvsweb when I fixed it:
<p>
The script was doing this:
<p>
($scriptname = $ENV{'SCRIPT_NAME'}) =~ s|^/?|/|;<br>
$scriptname =~ s|/+$||;
<p>
to get the name of the script being executed.  But instead of
/cgi/cvsweb.cgi, which is what it should have been getting, it was
getting /cgi/cvsweb.cgi/{file being viewed} instead.  This resulted
in the filename being doubled in many URLs, since it was being
appended to this string.
<p>
My fix was to comment out the above and just do
<p>
$scriptname = "/cgi/cvsweb.cgi";
<p>
instead.  I have no idea why this is required;  all I can think of is
that AOLserver sets the SCRIPT_NAME variable differently (and
incorrectly) from Apache.

<br>
<br>
-- <a href="http://www.arsdigita.com/shared/community-member?user_id=14536";>Janine 
Sisk</a>, January 30, 2001


----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=103152&aid=230479&group_id=3152

Reply via email to