You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeff Tulley <JT...@novell.com> on 2003/06/20 02:28:00 UTC
Re: Extended characters in passwords working with
admin application?
Thanks I just found it in the archives. I had been at JavaOne last week and so did a mass-delete of this list when I returned, and I also did not pick that up in the archives for some reason until you pointed it out.
So, there is still a problem with Tomcat when a login page specifies <%@ page contentType="text/html; charset=UTF-8" %> (which the login.jsp of the /admin application indeed does). According to this FAQ, the inclusion of such a declaration is CORRECT. So, is Tomcat just missing the conversion part?
If so, I hope that it can be changed. It seems like such a change would be a huge potential backwards compatibility issue and is therefore risky.
I still challenge whether with the existing tomcat-provided login.jsp and authentication mechanism, whether you can log in with a user that has extended characters. If anybody has successfully done that please let me know. (I'm only successful if contentType=ISO-8859-1).
Also, that FAQ mentions passing in a "-Dfile.encoding=UTF-8", which Tomcat does not currently do. This is another backwards compatibility issue for getting this to be the default Tomcat behavior.
Jeff Tulley (jtulley@novell.com)
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com
>>> tim@everserve.co.uk 6/19/03 4:41:46 PM >>>
There was an extremely detailed UTF-8/ISO-8859-1 'how to' on this list
recently (past week or so). I don't remember the details but it seemed
to do it for the others.
tim
Jeff Tulley wrote:
> Has anybody successfully authenticated to the /admin application, with a user who has a password that has extended characters? (espaƱol is what I've been trying - espa(n tilde)ol if that doesn't come through the email).
>
> I thought this was a side-effect of my use of the JNDIRealm, but I cannot get it to work for me using the MemoryRealm as well.
>
> The problem seems to be the specification of encoding="utf-8" in login.jsp. If you do not set this content type, Tomcat seems to default to "ISO-8859-1". While I realize that this will only work for those who can live with ISO-8859-1 (Latin 1?), it seems that UTF-8 isn't working at all.
>
> Note to the first objections I forsee: I wrote out the tomcat-users file using a UTF-8 compatible editor, and the password was for sure stored in my LDAP directory in UTF-8 as well. I also tried all sorts of combinations of encodings while authenticating, from hitting alt-164 and alt-0241 on Windows to copy and pasting the full UTF-8 encoded multiple character value into the password field.
>
> Anybody get this to work? I want to see if I'm just doing it wrong before suggesting the change of taking the utf-8 declaration out completely.
>
> Thanks,
>
> Jeff Tulley (jtulley@novell.com)
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Extended characters in passwords working with admin application?
Posted by Tim Funk <fu...@joedog.org>.
This might help.
http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accept-charset
I really don't know.
-Tim
Jeff Tulley wrote:
> Thanks I just found it in the archives. I had been at JavaOne last week and so did a mass-delete of this list when I returned, and I also did not pick that up in the archives for some reason until you pointed it out.
>
> So, there is still a problem with Tomcat when a login page specifies <%@ page contentType="text/html; charset=UTF-8" %> (which the login.jsp of the /admin application indeed does). According to this FAQ, the inclusion of such a declaration is CORRECT. So, is Tomcat just missing the conversion part?
>
> If so, I hope that it can be changed. It seems like such a change would be a huge potential backwards compatibility issue and is therefore risky.
>
> I still challenge whether with the existing tomcat-provided login.jsp and authentication mechanism, whether you can log in with a user that has extended characters. If anybody has successfully done that please let me know. (I'm only successful if contentType=ISO-8859-1).
>
> Also, that FAQ mentions passing in a "-Dfile.encoding=UTF-8", which Tomcat does not currently do. This is another backwards compatibility issue for getting this to be the default Tomcat behavior.
>
> Jeff Tulley (jtulley@novell.com)
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org