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

[Bug] Impossible to switch organization if organization name contains an accent #1741

Closed
nicodeff opened this issue Jan 11, 2021 · 0 comments
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@nicodeff
Copy link

Request Type

Bug

Work Environment

Question Answer
OS version (server) Centos 7.4
OS version (client) Windows 10.
TheHive version / git hash 4.0.3-1
Package Type RPM
Browser type & version Google Chrome 80

Problem Description

Impossible to switch organization if organization name contains an accent.

Steps to Reproduce

  1. Create an organization with en accent in the name
  2. create an user and add right in "admin" organization and the organization created in step 1
  3. switch user from admin organization to organization previously created

Complementary information

Hello,

When user is in several organization and try to swith to an organization with accent in the name, this error appear.
image

The error log :

2021-01-11 17:05:27,428 [ERROR] from play.core.server.common.ServerResultUtils in application-akka.actor.default-dispatcher-56828 [|] Exception occurred while converting Result with headers [<Set-Cookie>: <THEHIVE-SESSION=XXX; SameSite=Lax; Path=/; HTTPOnly>, <Request-Time>: <19>, <X-Permissions>: <manageAnalyzerTemplate,manageUser,manageOrganisation,manageCustomField,manageTag,manageConfig,manageObservableTemplate,manageProfile>, <X-Organisation>: <**(Organization name with 'è' char replaced by '|')**>]. Calling HttpErrorHandler to get alternative Result.
java.lang.IllegalArgumentException: Character 65512 cannot match AsciiSet because it is out of range
[...]

Thanks,

Regards,

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

No branches or pull requests

3 participants