Thehive: Search do not work with non-latin characters

Created on 22 May 2017  路  6Comments  路  Source: TheHive-Project/TheHive

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.

bug

Most helpful comment

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

screen shot 2017-06-06 at 15 06 59

All 6 comments

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...

Hi @nadouani, workaround works great, thanks!

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

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.

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

screen shot 2017-06-06 at 15 06 59

Thank you!

Was this page helpful?
0 / 5 - 0 ratings