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

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

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            rwsmith 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

            Show
            rwsmith 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
            Hide
            danielbeck Daniel Beck added a comment -

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

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

              People

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

                Dates

                Created:
                Updated:
                Resolved: