Insights client don't parse the apache config files correctly when it contains Unicode characters
Issue
-
Insights client don't parse the apache config files correct when it will contains Unicode characters and fails with the below traceback:
Traceback (most recent call last): File "/var/lib/insights/last_stable.egg/insights/core/plugins.py", line 170, in invoke r = self.component(d) File "/var/lib/insights/last_stable.egg/insights/parsers/httpd_conf.py", line 160, in _init_ super(HttpdConfBase, self)._init_(*args, **kwargs) File "/var/lib/insights/last_stable.egg/insights/core/_init.py", line 89, in __init_ self._handle_content(context) File "/var/lib/insights/last_stable.egg/insights/core/_init_.py", line 92, in _handle_content self.parse_content(context.content) File "/var/lib/insights/last_stable.egg/insights/core/_init_.py", line 347, in parse_content self.doc = self.parse_doc(content) File "/var/lib/insights/last_stable.egg/insights/parsers/httpd_conf.py", line 165, in parse_doc result = self.parse(content)[0] File "/var/lib/insights/last_stable.egg/insights/parsers/httpd_conf.py", line 84, in _call_ raise ParseException("There was an exception when parsing one of the httpd config files.") insights.core.exceptions.ParseException: There was an exception when parsing one of the httpd config files.
Environment
- Red Hat Insights
- Insights core version 3.4.11-1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.