Uploaded image for project: 'Red Hat Insights Engineering'
  1. Red Hat Insights Engineering
  2. RHINENG-12609

Insights client don't parse the apache config files correctly when it contains Unicode characters

XMLWordPrintable

    • 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

      1. [Step 1] Update the insights-core to 3.4.11-1
      2. [Step 2] Run "insights-client" command
      3. [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

      Business Impact / Additional info

            rhn-support-huali Huanhuan Li
            rhn-support-achadha Arvinder Singh Chadha
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: