Project

General

Profile

Bug #531

Prewikka error with russian text

Added by Vladimir Lapshin almost 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
10/31/2013
Due date:
% Done:

100%

Resolution:
fixed

Description

When Prewikka try to show events which contains russian text "Множественные риски" in "alert.classification.reference().name", it crash with error:

Prewikka internal error
u'\u041c'
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/prewikka/Core.py", line 335, in process getattr(view_object, view["handler"])()
File "/usr/local/lib/python2.6/dist-packages/prewikka/views/alertlisting.py", line 1338, in render total = self._setMessages(criteria)
File "/usr/local/lib/python2.6/dist-packages/prewikka/views/alertlisting.py", line 1232, in setMessages return self._setAggregatedMessagesNoValues(criteria, ag_s, ag_t, ag_c, ag_a)
File "/usr/local/lib/python2.6/dist-packages/prewikka/views/alertlisting.py", line 1180, in _setAggregatedMessagesNoValues self._getMissingAggregatedInfos(message, valueshash, parameters, criteria2, aggregated_count)
File "/usr/local/lib/python2.6/dist-packages/prewikka/views/alertlisting.py", line 1045, in _getMissingAggregatedInfos message.setMessage(self._fetchMessage(ident), ident)
File "/usr/local/lib/python2.6/dist-packages/prewikka/views/alertlisting.py", line 704, in setMessage self._setMessageClassification(dataset, message)
File "/usr/local/lib/python2.6/dist-packages/prewikka/views/alertlisting.py", line 623, in _setMessageClassification self._setMessageClassificationReferences(dataset, message)
File "/usr/local/lib/python2.6/dist-packages/prewikka/views/alertlisting.py", line 615, in _setMessageClassificationReferences urlstr = "https://www.prelude-ids.com/reference_details.php?origin=%s&name=%s" % (urllib.quote(ref["origin"]), urllib.quote(ref["name"]))
File "/usr/lib/python2.6/urllib.py", line 1224, in quote res = map(safe_map.
_getitem__, s)
KeyError: u'\u041c'

Symbol "\u041c" = Cyrillic capital letter [em] "M" (http://unicode-table.com/en/search/?q=%5Cu041c)
However there isn't errors with russian symbols in: "alert.source().node.name", "alert.source().process.name", "alert.target().file().path", etc

History

#1 Updated by Jean-Charles ROGEZ over 5 years ago

  • Project changed from PRELUDE SIEM to Prewikka

#2 Updated by Jean-Charles ROGEZ over 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Song TRAN
  • Target version set to 122

#3 Updated by Antoine LUONG about 5 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100
  • Resolution set to fixed

#4 Updated by Thomas ANDREJAK almost 4 years ago

  • Status changed from Resolved to Closed
  • Target version changed from 122 to Prelude OSS 3.0.0

Also available in: Atom PDF