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

Fingerprint file is incorrect if ampersand character is part of the file name.

XMLWordPrintable

      If a file name contains an ampersand character then the XML file which is generated in the fingerprint directory is not correct.

      Example:
      <fileName>XYZ (x86 & x64Wow).abc</fileName>
      The ampersand must be written in a XML file with "& amp;":
      <fileName>XYZ (x86 & amp; x64Wow).abc</fileName>

      An error occurred after updating Jenkins and executing a job with the CopyArtifacts plugin.
      The following callstack was logged:

      09:26:07 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:105)
      09:26:07 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:68)
      09:26:07 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:261)
      09:26:07 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:238)
      09:26:07 at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:71)
      09:26:07 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
      09:26:07 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$DontRun.conditionalRun(BuildStepRunner.java:264)
      09:26:07 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
      09:26:07 at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:133)
      09:26:07 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      09:26:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      09:26:07 at hudson.model.Build$BuildExecution.build(Build.java:199)
      09:26:07 at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      09:26:07 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
      09:26:07 at hudson.model.Run.execute(Run.java:1597)
      09:26:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      09:26:07 at hudson.model.ResourceController.execute(ResourceController.java:88)
      09:26:07 at hudson.model.Executor.run(Executor.java:247)
      09:26:07 Caused by: hudson.util.IOException2: Unable to read /var/lib/jenkins/fingerprints/b5/2a/838c36091ab3d0693f551b8bd49d.xml
      09:26:07 at hudson.XmlFile.read(XmlFile.java:147)
      09:26:07 at hudson.model.Fingerprint.load(Fingerprint.java:1211)
      09:26:07 at hudson.model.Fingerprint.load(Fingerprint.java:1199)
      09:26:07 at hudson.model.FingerprintMap.load(FingerprintMap.java:94)
      09:26:07 at hudson.model.FingerprintMap.load(FingerprintMap.java:45)
      09:26:07 at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:154)
      09:26:07 at hudson.model.FingerprintMap.get(FingerprintMap.java:79)
      09:26:07 at hudson.model.FingerprintMap.get(FingerprintMap.java:45)
      09:26:07 at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:108)
      09:26:07 at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:65)
      09:26:07 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:98)
      09:26:07 ... 17 more

            marcsanfacon Marc Sanfacon
            thomas_oswald Thomas Oswald
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: