SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-2379

The parsing of the Toad XML report should be independant of any encoding

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: TOAD-1.0
    • Component/s: Toad
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Toad is a code analyzer which take source files as input, and output an XML report with the violations found in the input files.

      The XML report also includes the source file's original input for some reason.

      It is not possible to specify the encoding of the source files that Toad must analyze. It is able somehow to automagically figure out the right encoding.
      Some parts of the XML report will be encoded in UTF-8, but the part where the original code is to be found will keep the original file encoding.

      This means that there can be multiple encodings used in the XML report, making it impossible to load with XML parsers which all expect the file to have a single encoding.

      Therefore, the XML report must first be preprocessed in order to filter out any non-ASCII byte, so that the XML parser will always be able to parse with ASCII as encoding.

        Issue Links

          Activity

          Hide
          Fabrice Bellingard added a comment -

          Manually tested.

          Show
          Fabrice Bellingard added a comment - Manually tested.

            People

            • Assignee:
              Dinesh Bolkensteyn
              Reporter:
              Eric Hartmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: