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

Search do not work with non-latin characters #223

Closed
ilyaglow opened this issue May 22, 2017 · 6 comments
Closed

Search do not work with non-latin characters #223

ilyaglow opened this issue May 22, 2017 · 6 comments
Assignees
Labels
Milestone

Comments

@ilyaglow
Copy link

ilyaglow commented May 22, 2017

Hey there,

Request Type

Bug

Work Environment

Question Answer
TheHive version 2.11.1
Package Type Docker
Browser Chromium latest, Firefox latest

Problem Description

If you try to search in the Hive with non-latin characters it won't work

Steps to Reproduce

  1. Create a new case with the title: Кейс на русском языке
  2. Try to find the case: кейс

Possible Solutions

It is not actually a solution but reproducing the issue with Chrome Developer Tools opened I noticed that browser don't even send XHR to the backend, so the querystring is getting stucked somewhere on the angular side.

@nadouani
Copy link
Contributor

nadouani commented Jun 6, 2017

Hi @ilyaglow as a workaround, if you are searching for cases, you can use the search filter within cases list.

I confirm that the search box of the topbar doesn't correctly handle you search example.

Investigating...

@ilyaglow
Copy link
Author

ilyaglow commented Jun 6, 2017

Hi @nadouani, workaround works great, thanks!

@nadouani
Copy link
Contributor

nadouani commented Jun 6, 2017

The same thing should work through the filter form of the observables' list.

@nadouani
Copy link
Contributor

nadouani commented Jun 6, 2017

Well the issue is coming from a base64 encoding library that doesn't handle non ASCII strings :)

Replacing this library by https://github.com/dankogai/js-base64 solves the issue.

@nadouani nadouani added this to the 2.12.0 milestone Jun 6, 2017
@nadouani
Copy link
Contributor

nadouani commented Jun 6, 2017

Latin characters can now be used and searched for, even in tags

screen shot 2017-06-06 at 15 06 59

@ilyaglow
Copy link
Author

ilyaglow commented Jun 6, 2017

Thank you!

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

No branches or pull requests

2 participants