Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Encoding ] Console #71

Open
pierrejego opened this issue May 22, 2020 · 4 comments
Open

[ Encoding ] Console #71

pierrejego opened this issue May 22, 2020 · 4 comments

Comments

@pierrejego
Copy link
Member

When I use the playbook to install geOrchestra, I have errors with encoding character in console.

Encoding errors comes on all fields.

Step to reproduce :

Création new account with accent in name or any attribut :
image

Go to admin to validate account, user have good encoding char :
image

Before validate user :
image

After validate user and click on save :
image

Each time I try to update a user I have additional characters, samething on all element from console (User and Organisme)

Before click on save, information are OK in LDAP, after they are wrong.

I have the same console.war manually installed on a tomcat8/debian9 instance and I don't have this issue. I guess it comes from tomcat9 or debian10 but I can't manage to find what is the problem.

I had a look at currents issues in geOrchestra and find some interresting conversation, but no reason why this occured.

georchestra/georchestra#3049
georchestra/georchestra#3021
georchestra/georchestra#2996
georchestra/georchestra#2737
georchestra/georchestra#2693

Does anyone have the same error with this ansible playbook ?

@landryb
Copy link
Member

landryb commented May 26, 2020

system encoding for tomcat ? iirc we try to force-set it.

@fvanderbiest
Copy link
Member

I guess it's on master ?

@pierrejego
Copy link
Member Author

@fvanderbiest I tried 19.04, 20.0.1, 20.0.x and Master war same effect.

@landryb thanks, that was it adding -Dfile.encoding=UTF-8 in JAVA_OPTS did the trick !! I let the issue open until I have my computer back to create a PR.

@landryb
Copy link
Member

landryb commented Jun 2, 2020

well, system locale is set in

- name: setting locale
and passed to tomcat in
Environment=LANG={{ system_locale }}
- i see that geoserver already has -Dfile.encoding in (dont remember why) - honestly, i dont know anymore what crap is needed to set the default encoding for tomcat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants