Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39778

Wrong parser interpration in XML with pattern QList<bool>

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: pmd-plugin
    • Labels:
    • Environment:
      Jenkins version 2.7.3
      PMD-Plugin version 3.45

    • Similar Issues:

      Description

      While parsing an oclint generated xml-file PMD rises an exception on valid content. Apparently the parser interprets the error description with the string " 'QList<bool>' " not as description, but as a XML-tag instead.

      That is the parser exception:

      [PMD] Parsing of file /var/lib/jenkins/workspace/Manual-Development-oclint/src/oclint.xml failed due to an exception:
      
      org.xml.sax.SAXParseException; lineNumber: 2639; columnNumber: 3; The element type "bool" must be terminated by the matching end-tag "</bool>".
      

      And that are the corresponding lines in /var/lib/jenkins/workspace/Manual-Development-oclint/src/oclint.xml:

      <file name="../../../src /someheader.h">
      <violation begincolumn="36" endcolumn="0" beginline="179" endline="0" priority="2" rule="clang static analyzer" ruleset="cland static analyzer" >
      no matching constructor for initialization of 'QList<bool>'
      </violation>
      </file>
      

      </violation> is line 2639 in file oclint.xml.

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          But this is no valid XML. The <bool> needs to be escaped! See http://www.w3schools.com/xml/xml_validator.asp.

          Show
          drulli Ulli Hafner added a comment - But this is no valid XML. The <bool> needs to be escaped! See http://www.w3schools.com/xml/xml_validator.asp .
          Hide
          kodiak hans bauer added a comment -

          So this needs to be reported at oclint then?

          Show
          kodiak hans bauer added a comment - So this needs to be reported at oclint then?
          Hide
          drulli Ulli Hafner added a comment -

          This would simplify things, yes.

          Show
          drulli Ulli Hafner added a comment - This would simplify things, yes.
          Hide
          kodiak hans bauer added a comment -

          Opened an issue @ oclint

          Show
          kodiak hans bauer added a comment - Opened an issue @ oclint
          Show
          drulli Ulli Hafner added a comment - See https://github.com/UnrealQuester/oclint/commit/af4692090ccb8c6973ea1af5ab79b0babf034d83 .

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              kodiak hans bauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: