• UTF8 chars in username

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #1398  by werdy
 
I can use UTF8 chars in username (UID) like \"Zoltán\" but when I try to login with this user I always get authentication error. Is it a bug or a feature?
 #1400  by pavila
 
I will try it because we always have tested ascii logins.
 #1404  by jllort
 
Probably it could be some jboss configuration parameter, take a look at this jboss forum post.

Seems that DatabaseServerLoginModule can\'t get the correctly-encoded username and must be configured org.apache.catalina.authenticator.FormAuthenticator in order to get utf-8 encoded username.

Some uri to configure vale.

Add context.xml to /WEB-INF/ and deploy to my jboss server. Now the username can be fetched correctly now and my users can use UTF-8 characters in their login id;

the context.xml must be:
<Context>
<Valve
className=\"org.apache.catalina.authenticator.FormAuthenticator\"
characterEncoding=\"UTF-8\" />
</Context>

Note I\'ve not tried it on my testing environment, but seems it could be the solution to the problem.
 #1406  by werdy
 
Solved. I put <Valve*> into openkm/server/default/deploy/jboss-web.deployer/context.xml and voila: works :)

Thank your fast reply.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.