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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • cppcheck-plugin
    • 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?

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

              Created:
              Updated:
              Resolved: