You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/07/30 03:52:17 UTC

DO NOT REPLY [Bug 45498] New: j_security_check redirects to favicon.ico

https://issues.apache.org/bugzilla/show_bug.cgi?id=45498

           Summary: j_security_check redirects to favicon.ico
           Product: Tomcat 5
           Version: 5.5.9
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jain@gmx.net


Since I started to deploy a web application at the root of a Tomcat instance
(running inside JBoss), the first login attempt after starting the browser
always results in a redirection to the site's favicon! The login itself is
successful (re-entering the site address loads the home page, logged in). I can
then log in and out (and access the site) without any trouble -- until I next
restart the browser. This happens regardless of what browser is used (I tried
Firefox 3 and Internet Explorer 7). Following are the headers of the
conversation: 

POST /j_security_check HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8080/
Cookie: JSESSIONID=E96C8FCD27CB758364E9FB40B3A85476
Content-Type: application/x-www-form-urlencoded
Content-Length: 34
j_username=admin&j_password=xxxxxx

HTTP/1.x 302 Moved Temporarily
Server: Apache-Coyote/1.1
Location: http://localhost:8080/favicon.ico
Transfer-Encoding: chunked
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Wed, 30 Jul 2008 00:59:26 GMT


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45498] j_security_check redirects to favicon.ico

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45498


Eric Jain <er...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |
            Version|5.5.9                       |5.0.26




--- Comment #3 from Eric Jain <er...@gmail.com>  2008-07-30 14:45:13 PST ---
I've attached a test application that allows this problem to be reproduced on a
fresh Tomcat 5.5.26 instance.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45498] j_security_check redirects to favicon.ico

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45498


Eric Jain <er...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|5.0.26                      |5.5.26




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45498] j_security_check redirects to favicon.ico

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45498


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #4 from Mark Thomas <ma...@apache.org>  2008-07-30 15:34:57 PST ---
Your test case works correctly on a clean 5.5.26.

Again, you need to look at the full set of requests and responses to work out
why this doesn't work for you. Use the users list if you need help.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45498] j_security_check redirects to favicon.ico

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45498





--- Comment #2 from Eric Jain <er...@gmail.com>  2008-07-30 14:42:35 PST ---
Created an attachment (id=22334)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22334)
test web application


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45498] j_security_check redirects to favicon.ico

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45498





--- Comment #5 from Eric Jain <er...@gmail.com>  2008-07-30 16:11:58 PST ---
What browser did you use? I have confirmed the problem with default
installations of Firefox 2 and 3 (problem observed only after restarting the
browser) and with Internet Explorer 7 (problem observed only after clearing all
cached data). Opera 9.5 on the other hand seems fine (even after clearing all
cached data), not sure why. What appears to be happening is that the browser
sends a request for the favicon after loading the login page. When the login
form is submitted (from the root of the web server), Tomcat redirects to the
last request in the same path -- the favicon! Jetty (6.1.11) does not have this
problem (perhaps it remembers what request triggered the authentication form?)
so I'm assuming this is a fixable bug.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45498] j_security_check redirects to favicon.ico

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45498


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-07-30 08:19:57 PST ---
This works for me on a clean build of the latest 5.5.x source and there haven't
been any relevant changes that I am aware of in this area for quite some time.

Looking at the headers for the complete login process will probably be quite
informative. If you need help figuring out what is happening, please ask on the
users list.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org