Thanks Mark,

That has worked a treat.   I changed the manager application's web.xml to
use FORM based authentication, added the valve to its context.xml rather
than specifying it globally and provided the login form. 

Cheers
Chris


-----Original Message-----
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: 30 June 2010 12:28
To: Tomcat Users List
Subject: Re: FormAuthenticator exception with non-latin (UTF8) user name

On 30/06/2010 12:22, Chris Rafferty wrote:

> This only occurs when I add the following valve to /conf/context.xml
>
>      <Valve
className="org.apache.catalina.authenticator.FormAuthenticator"
> characterEncoding="UTF-8" />

Bad idea on a number of levels.

1. That change then applies to *every* context, and will break any that 
don't use FORM authentication.

2. The Manager app uses BASIC authentication...

> If I do not add the valve then Tomcat will not authenticate any attempt to
> access the list page with a user name containing non-Latin characters, it
> works perfectly if the user name contains only Latin characters.

BASIC auth, browsers and UTF-8 is a combination that I suspect behaves 
differently from browser to browser.

Your best bet would be to modify the manager app to use FORM auth, 
making sure your login form correctly supports UTF-8.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to