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 created issue -

          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 made changes -
          Link New: This issue duplicates JENKINS-21017 [ JENKINS-21017 ]

          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 .
          Daniel Beck made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 157684 ] New: JNJira + In-Review [ 195792 ]

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

              Created:
              Updated:
              Resolved: