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

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

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Activity

          Hide
          evildeece Alastair D'Silva added a comment -

          This pull request fixes this issue: https://github.com/jenkinsci/cppcheck-plugin/pull/30

          Show
          evildeece Alastair D'Silva added a comment - This pull request fixes this issue: https://github.com/jenkinsci/cppcheck-plugin/pull/30
          Hide
          evildeece Alastair D'Silva added a comment -

          No longer an issue as the Branch API plugin no longer puts %2F in the path

          Show
          evildeece Alastair D'Silva added a comment - No longer an issue as the Branch API plugin no longer puts %2F in the path

            People

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

              Dates

              • Created:
                Updated:
                Resolved: