Logout error

Whenever I click Logout, I get an error:

Bad Request - Your browser sent a request that this server could not understand.

The logout link goes to http://rt.blah.com/NoAuth/Logout.html

My logfiles show

123.45.678.90 - - [29/Jun/2005:17:24:09 -0400] “GET /NoAuth/%3C%$URL%%3E HTTP/1.1” 400 226 “-” “Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414”

ServerName rt.blah.com DocumentRoot /opt/rt3/share/html AddDefaultCharset UTF-8 AddHandler fastcgi-script fcgi Options FollowSymLinks ExecCGI AllowOverride None #Pass through requests to for noauth Alias /NoAuth/ /opt/rt3/share/html/NoAuth/ ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 4

Suggestions?

Harrison, William wrote:

Whenever I click Logout, I get an error:

Bad Request - Your browser sent a request that this server could not
understand.

Sorry this isn’t an answer, I’ve been fighting this too. There’s a
quick flash before this, which is an uninterpreted Logout.html. For
some reason, Mason isn’t interpreting this script…
-Alan

Alan Sparks, UNIX/Linux Systems Integration and Administration
asparks@doublesparks.net

I’ve seen this SEVERAL times in the archive and the threads just died.
Has there been any resolution to this error? I’m running RT 3.5.2/Mason
1.3101/FastCGI

Robert Bell wrote:

I’ve seen this SEVERAL times in the archive and the threads just died.
Has there been any resolution to this error? I’m running RT 3.5.2/Mason
1.3101/FastCGI

Can you reliably reproduce the problem with the latest 3.5 from svn? If
so, does it also reproduce under standalone_httpd, or just the FastCGI
setup?

Tom

Thomas Sibley wrote:

Robert Bell wrote:

I’ve seen this SEVERAL times in the archive and the threads just
died. Has there been any resolution to this error? I’m running RT
3.5.2/Mason 1.3101/FastCGI

Can you reliably reproduce the problem with the latest 3.5 from svn?
If so, does it also reproduce under standalone_httpd, or just the
FastCGI setup?

I’ll get the latest and let you know. What is standalone_httpd? I’m not
familiar with that.

Robert Bell wrote:

If so, does it also reproduce under standalone_httpd, or just the
FastCGI setup?

I’d be happy to test but I don’t know what this is. Sorry

First bring down the FastCGI instance of RT. Then from the RT source
directory, run the following

./bin/standalone_httpd

Wait a couple seconds and it should print a banner saying you can
connect to the server. Then try and reproduce the problem. Hope that
helps.

Tom

[ For future knowledge, please send replies to the list as well. ]

Robert Bell wrote:

Ok so running standalone_httpd does fix the logout page AND the “Choose
Date”

This leads me to believe it’s probably a problem with your Apache setup,
though what the problem is isn’t entirely clear to me at the moment.

Tom

I’ve seen this SEVERAL times in the archive and the threads just died.
Has there been any resolution to this error? I’m running RT 3.5.2/Mason
1.3101/FastCGI

Carbon60: Managed Cloud Services

As annoying as this little bug is, a fix is trivial: kudos to anyone
who finds the real culprit.

diff of Logout.html

< <&|/l&>You’re welcome to login again</&>

After some poking around, it looks as though Logout.html wasn’t actually being processed by Apache, but instead simply being spit back to the browser (right-click on the logout link and save the page locally, then look at the code - can you see Perl in there?).

So why isn’t Logout being processed? Because it is in the /opt/rt3/share/html/NoAuth directory, and I had configured Apache to not process stuff in NoAuth. Specifically, I had this in my httpd.conf:
Alias /NoAuth /opt/rt3/share/html/NoAuth

What I really needed to do was process the files in NoAuth, but not the images, like this:
Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images

Make the change, stop Apache, clear out the Mason cache (rm -rf /opt/rt3/var/mason_data/obj/*), clear your browser’s cache (Mozilla wanted to keep everything), and restart Apache. You should now be able to a) log out, and b) still see the Best Practical logo…

-WilliamOn 8/30/05, Robert Bell robert@thebellfamily.com wrote:

I’ve seen this SEVERAL times in the archive and the threads just died.
Has there been any resolution to this error? I’m running RT 3.5.2/Mason
1.3101/FastCGI

Carbon60: Managed Cloud Services

Yeah - I had done the Alias on /NoAuth/images but only after I had it
first aliased as /NoAuth - the mason cache was the culprit.> On 10/21/05, Harrison, William harrison@itrd.gov wrote:

Do I get your kudos?

After some poking around, it looks as though Logout.html wasn’t actually being processed by Apache, but instead simply being spit back to the browser (right-click on the logout link and save the page locally, then look at the code - can you see Perl in there?).

So why isn’t Logout being processed? Because it is in the /opt/rt3/share/html/NoAuth directory, and I had configured Apache to not process stuff in NoAuth. Specifically, I had this in my httpd.conf:
Alias /NoAuth /opt/rt3/share/html/NoAuth

What I really needed to do was process the files in NoAuth, but not the images, like this:
Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images

Make the change, stop Apache, clear out the Mason cache (rm -rf /opt/rt3/var/mason_data/obj/*), clear your browser’s cache (Mozilla wanted to keep everything), and restart Apache. You should now be able to a) log out, and b) still see the Best Practical logo…

-----Original Message-----
From: Brian Kerr [mailto:kerrboy@gmail.com]
Sent: Tuesday, October 18, 2005 2:37 PM
To: Robert Bell
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Logout error

On 8/30/05, Robert Bell robert@thebellfamily.com wrote:

I’ve seen this SEVERAL times in the archive and the threads just died.
Has there been any resolution to this error? I’m running RT 3.5.2/Mason
1.3101/FastCGI

Carbon60: Managed Cloud Services

As annoying as this little bug is, a fix is trivial: kudos to anyone
who finds the real culprit.

diff of Logout.html

< <&|/l&>You’re welcome to login again</&>

<&|/l&>You’re welcome to login again</&>


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com