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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            stephenconnolly Stephen Connolly added a comment -

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

            Show
            stephenconnolly Stephen Connolly added a comment - Caused as a side effect of the fix in JENKINS-13454
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            dogfood 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
            Show
            dogfood 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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: