buggy loop during login

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ppet

buggy loop during login

Post by ppet »

Hi everybody,
I get strange behavior after a fresh install.
the check passed with no problem, the connexion on the database is ok, etc.
When I try to go to pages, index.php or login.php here is what I get as a resulting url, with an error page:

http://mantis.mydomain.com/login_page.p ... n_page.php

Any help is welcomed!
thanks to you all
Philippe
ppet

more infos

Post by ppet »

Mantis version is 0.19.2
And I sniffed the http session with the site. The problem is due to a 302 reply instead of a 200, here is what is exchanged:

GET /mantis/login_page.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
Accept-Language: fr
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; FDM)
Host: http://www.mydomain.com
Connection: Keep-Alive
Cookie: PHPSESSID=14002a818edd45fa19eb896b3ebe1b56

HTTP/1.1 302 Found
Date: Mon, 27 Jun 2005 16:34:52 GMT
Server: Apache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Fri, 01 Jan 1999 00:00:00 GMT
Pragma: no-cache
X-Powered-By: PHP/4.2.3
Set-Cookie: MANTIS_STRING_COOKIE=deleted; expires=Sun, 27-Jun-04 16:34:52 GMT; path=/
Location: login_page.php?return=%2Fmantis%2Flogin_page.php
Keep-Alive: timeout=15, max=64
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

12c
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A HREF="login_page.php?return=%2Fmantis%2Flogin_page.php">here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.27 Server at http://www.mydomain.com Port 80</ADDRESS>

This make returning to the login_page which captures the 'return' keyword and go through this protocol loop...

Could you tell me how to avoid this curious 302 http response?
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

Can you repeat this with a newer version of mantis (1.0.0a3 or CVS)? AFAIK, we don't send 302 headers. Is there something that munges the URLs in the apache setup?
Post Reply