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

Filenames with & end up in changelog.xml resulting in invalid XML

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • cvs-plugin
    • None
    • jenkins 1.419, linux, java 1.6, cvs

      We have a cvs project that contains an "&" sign in a filename, which works for the most part (still not a good idea).

      However, the changelog.xml that is generated contains the plain filename which makes the xml invalid:

      <file>
      <name>Architektur&DesignV1.8.1.doc</name>
      <fullName>/Architektur&DesignV1.8.1.doc</fullName>
      <revision>1.3</revision>
      <dead />
      </file>

      the resulting error in catalina.out is

      Caused by: org.xml.sax.SAXParseException: The reference to entity "DesignV1.8.1.doc" must end with the ';' delimiter.

          [JENKINS-10241] Filenames with & end up in changelog.xml resulting in invalid XML

          Alan Harder added a comment -

          changelog-history plugin simply copies these files, it does not create them.. reassigning to core.

          Alan Harder added a comment - changelog-history plugin simply copies these files, it does not create them.. reassigning to core.

          Alex Lehmann added a comment - - edited

          I have to do some more tests, maybe this is an issue in the cvs plugin.

          Alex Lehmann added a comment - - edited I have to do some more tests, maybe this is an issue in the cvs plugin.

          Alex Lehmann added a comment -

          it turns out that the problem comes from the cvs plugin which writes xml-files directly.

          Alex Lehmann added a comment - it turns out that the problem comes from the cvs plugin which writes xml-files directly.

          Alex Lehmann added a comment -

          Alex Lehmann added a comment - Fixed as https://github.com/alexlehm/cvs-plugin/commit/2a7002ba6e2d7f24cd06cf2b5fc329561872c136

          Alex Lehmann added a comment -

          Alex Lehmann added a comment - merged as https://github.com/jenkinsci/cvs-plugin/commit/5ef9e68946d6eee5cc2c48ab69bf97dfaeb49620 cvs-plugin 1.5

            alexlehm Alex Lehmann
            alexlehm Alex Lehmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: