Cppcheck plugin cannot find results file if the workspace path contains an encoded '/' (%2F)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Blocker
    • Component/s: cppcheck-plugin
    • Environment:
      Jenkins 1.650
      Cppcheck Plugin 1.21

      When using this plugin with the Multibranch plugin (https://wiki.jenkins-ci.org/display/JENKINS/Multi-Branch+Project+Plugin), Cppcheck fails to find the XML results file if the branch name contains a '/' (encoded as '%2F' on the filesystem).

      This is because the XML parser is trying to decode the encoded characters itself, replacing the '%2F' with a '/'.

      Opening the file directly in the Cppcheck plugin and passing a stream to the XML parser instead fixes the problem.

      This may be related to JENKINS-30026?

            Assignee:
            Gregory Boissinot
            Reporter:
            Alastair D'Silva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: