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

Saving the update center list after the metadata has been fetched results in the metadata being persisted twice

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • core
    • None

      hudson.model.UpdateSite's data field is not transient, so gets persisted despite the same information being stored at

      $JENKINS_HOME/updates/

      {id}

      .json

      Further that second source is canonical as it stores the raw JSON and not the parsed JSON and so if the Jenkins data model is updated to handle newer fields they will only be available when parsing the .json as oposed to when deserializing the .xml

          [JENKINS-15889] Saving the update center list after the metadata has been fetched results in the metadata being persisted twice

          Caused as a side effect of the fix in JENKINS-13454

          Stephen Connolly added a comment - Caused as a side effect of the fix in JENKINS-13454

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          changelog.html
          core/src/main/java/hudson/model/UpdateSite.java
          http://jenkins-ci.org/commit/jenkins/f8ac5cada7dee692a74e7a17b32bb64afe717314
          Log:
          [FIXED JENKINS-15889] Saving the update center list after the metadata has been fetched results in the metadata being persisted twice

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: changelog.html core/src/main/java/hudson/model/UpdateSite.java http://jenkins-ci.org/commit/jenkins/f8ac5cada7dee692a74e7a17b32bb64afe717314 Log: [FIXED JENKINS-15889] Saving the update center list after the metadata has been fetched results in the metadata being persisted twice

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2138
          [FIXED JENKINS-15889] Saving the update center list after the metadata has been fetched results in the metadata being persisted twice (Revision f8ac5cada7dee692a74e7a17b32bb64afe717314)

          Result = SUCCESS
          kohsuke : f8ac5cada7dee692a74e7a17b32bb64afe717314
          Files :

          • changelog.html
          • core/src/main/java/hudson/model/UpdateSite.java

          dogfood added a comment - Integrated in jenkins_main_trunk #2138 [FIXED JENKINS-15889] Saving the update center list after the metadata has been fetched results in the metadata being persisted twice (Revision f8ac5cada7dee692a74e7a17b32bb64afe717314) Result = SUCCESS kohsuke : f8ac5cada7dee692a74e7a17b32bb64afe717314 Files : changelog.html core/src/main/java/hudson/model/UpdateSite.java

            Unassigned Unassigned
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: