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

Unable to remove logRotator entries when updating a job by POSTing config.xml

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None

      1. HTTP GET the config.xml of a job from Jenkins.
      2. Remove all logRotator elements from the document.
      3. HTTP POST the config.xml to Jenkins.

      The POST succeeds, successive GETs of the config.xml will not have the elements, but the UI displays that it is configured with the settings.

          [JENKINS-24657] Unable to remove logRotator entries when updating a job by POSTing config.xml

          Ryan Smith added a comment -

          After some investigation, it looks like a limitation of XStream that you can't set things to null by removing it from XML or by entering special XML to achieve it.

          http://stackoverflow.com/questions/20668266/xstream-null-out-fields-not-mentioned-in-xml-during-in-place-unmarshal

          Ryan Smith added a comment - After some investigation, it looks like a limitation of XStream that you can't set things to null by removing it from XML or by entering special XML to achieve it. http://stackoverflow.com/questions/20668266/xstream-null-out-fields-not-mentioned-in-xml-during-in-place-unmarshal

          Daniel Beck added a comment -

          While the affected field is a different one (displayName is another candidate), this essentially duplicates JENKINS-21017.

          Daniel Beck added a comment - While the affected field is a different one (displayName is another candidate), this essentially duplicates JENKINS-21017 .

            Unassigned Unassigned
            rwsmith Ryan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: