DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26229>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26229

request.getRemoteUser() = null

           Summary: request.getRemoteUser() = null
           Product: Tomcat 4
           Version: 4.1.29
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:Coyote HTTP/1.1
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


I have made a new installation of Tomcat 4.1.29 on my new DELL laptop running 
XP.

I have copied the project to the new laptop and try set it up to work as on my 
work machine.

I am not able to get the login to work. I am using the <security-constraint> in 
my web.xml.

At first I could not get the FORM login to work only BASIC. Then I changed the 
FORM action to <%= response.encodeURL("j_security_check") %>, and I was able 
use FORM login.

The next problem is that the auth is only accepted for the page that activated 
the FORM page. For example <url-pattern>/public/*</url-pattern> contains 
test.jsp and test2.jsp and when I link to test.jsp the FORM page is called. 
When succesfully logged in the request.getRemoteUser() is correct. But when I 
then link from there to test2.jsp the request.getRemoteUser() is NULL and the 
FORM page is called again.

Please let me know if I sould send more info.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to