-
Bug
-
Resolution: Done
-
Undefined
-
None
-
Moderate
-
2
-
Insights Rule Dev 202409
-
-
** Note that this is a public ticket, please refrain from adding any sensitive data. **
Description of Problem
Insights client don't parse the apache config files correct when it will contains Unicode characters.
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.
How reproducible
(Always/Intermittent)
Steps to Reproduce
- [Step 1] Update the insights-core to 3.4.11-1
- [Step 2] Run "insights-client" command
- [Step 3]
Actual Behavior
insights-client is not able parse apache config file
Expected Behavior
insights-client should be able to parse apche config file