My servlet does basic authentication. It works perfectly with many servlet
engines except JServ.
Current implementation of getRemoteUser() of JServ returns empty string(""),
if no
user authentication information, but accordingly servlet API
specification
-------
public java.lang.String getRemoteUser()
Returns the name of the user making this request, if the user has
logged in using HTTP authentication. This method returns null if the user
login is not authenticated. Whether the user name is sent with each
subsequent request depends on the browser. Same as the value of the CGI
variable
REMOTE_USER.
Returns:
   a String specifying the name of the user making this request, or null

Problem is that JServConnection.java intialize this string to "", like
env_vars.put("REMOTE_USER", in.readString(""));
instead of
env_vars.put("REMOTE_USER", in.readString(null));
Can somebody confirm that this is bug, or probably it's a feature?

Dmitry.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to