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

cvs-plugin fails to read old changelog files

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: cvs-plugin
    • Labels:
      None
    • Environment:
      jenkins 1.449, cvs-plugin 2.0
    • Similar Issues:

      Description

      after updating to cvs-plugin 2.0, I get an exception when parsing the old changelog files that were written by the previous version of the plugin, e.g.

      Caused by: java.text.ParseException: Unparseable date: "2011-12-14"
      at java.text.DateFormat.parse(DateFormat.java:337)
      at hudson.scm.CVSChangeLogSet$CVSChangeLog.setDate(CVSChangeLogSet.java:232)
      ... 34 more

      the corresponding changelog entry looks like this

      <changelog>
      <entry>
      <date>2011-12-14</date>
      <time>23:26</time>

        Attachments

          Issue Links

            Activity

            Hide
            alexlehm Alex Lehmann added a comment -

            apparently the format for the timestamp was changed from <date> and <time> to <changeDate>, but the date format pattern only accepts slashes in the date, maybe that is a locale issue.

            Show
            alexlehm Alex Lehmann added a comment - apparently the format for the timestamp was changed from <date> and <time> to <changeDate>, but the date format pattern only accepts slashes in the date, maybe that is a locale issue.
            Hide
            amofpers Amir Isfy added a comment -

            Having the same probelm.

            Show
            amofpers Amir Isfy added a comment - Having the same probelm.
            Hide
            agel07 A Geller added a comment - - edited

            -

            Show
            agel07 A Geller added a comment - - edited -
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Alex Lehmann
            Path:
            src/main/java/hudson/scm/CVSChangeLogSet.java
            src/test/java/hudson/scm/CVSChangeLogParserTest.java
            src/test/resources/hudson/scm/changelogOldFormat.xml
            http://jenkins-ci.org/commit/cvs-plugin/be6dd95edca7b4dbaf0125c6df0587d4b3c41e14
            Log:
            JENKINS-12586 cvs-plugin fails to read old changelog files
            test and fix for the issue, old files contain date with yyyy-mm-DD and HH:mm, but the parser uses yyyy/mm/DD and HH:mm:ss

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Lehmann Path: src/main/java/hudson/scm/CVSChangeLogSet.java src/test/java/hudson/scm/CVSChangeLogParserTest.java src/test/resources/hudson/scm/changelogOldFormat.xml http://jenkins-ci.org/commit/cvs-plugin/be6dd95edca7b4dbaf0125c6df0587d4b3c41e14 Log: JENKINS-12586 cvs-plugin fails to read old changelog files test and fix for the issue, old files contain date with yyyy-mm-DD and HH:mm, but the parser uses yyyy/mm/DD and HH:mm:ss
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Alexander Lehmann
            Path:
            src/main/java/hudson/scm/CVSChangeLogSet.java
            src/test/java/hudson/scm/CVSChangeLogParserTest.java
            src/test/resources/hudson/scm/changelogOldFormat.xml
            http://jenkins-ci.org/commit/cvs-plugin/f82d0b2c6ca9b8eb3bb175ebf3de3668c65be118
            Log:
            Merge pull request #6 from alexlehm/master

            fix JENKINS-12586 cvs-plugin fails to read old changelog files

            Compare: https://github.com/jenkinsci/cvs-plugin/compare/1ccef67...f82d0b2

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexander Lehmann Path: src/main/java/hudson/scm/CVSChangeLogSet.java src/test/java/hudson/scm/CVSChangeLogParserTest.java src/test/resources/hudson/scm/changelogOldFormat.xml http://jenkins-ci.org/commit/cvs-plugin/f82d0b2c6ca9b8eb3bb175ebf3de3668c65be118 Log: Merge pull request #6 from alexlehm/master fix JENKINS-12586 cvs-plugin fails to read old changelog files Compare: https://github.com/jenkinsci/cvs-plugin/compare/1ccef67...f82d0b2
            Hide
            dogfood dogfood added a comment -

            Integrated in plugins_cvs #5
            JENKINS-12586 cvs-plugin fails to read old changelog files (Revision be6dd95edca7b4dbaf0125c6df0587d4b3c41e14)

            Result = SUCCESS
            alexlehm :
            Files :

            • src/test/resources/hudson/scm/changelogOldFormat.xml
            • src/main/java/hudson/scm/CVSChangeLogSet.java
            • src/test/java/hudson/scm/CVSChangeLogParserTest.java
            Show
            dogfood dogfood added a comment - Integrated in plugins_cvs #5 JENKINS-12586 cvs-plugin fails to read old changelog files (Revision be6dd95edca7b4dbaf0125c6df0587d4b3c41e14) Result = SUCCESS alexlehm : Files : src/test/resources/hudson/scm/changelogOldFormat.xml src/main/java/hudson/scm/CVSChangeLogSet.java src/test/java/hudson/scm/CVSChangeLogParserTest.java

              People

              • Assignee:
                alexlehm Alex Lehmann
                Reporter:
                alexlehm Alex Lehmann
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: