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

unexpected "category" attributed in persisted xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • 1.71

      `javaposse.jobdsl.plugin.GlobalJobDslSecurityConfiguration.xml` do include serialized category `GlobalConfigurationCategory$Security`.

      As a result, on load a fresh new instance is created and `Security` is not a singleton anymore.

      This introduced https://github.com/jenkinsci/configuration-as-code-plugin/issues/253

       

      the root cause is groovy property syntax used to override hudson.model.Descriptor#getCategory, which appears as a persistent field from XStream point of view

            daspilker Daniel Spilker
            ndeloof Nicolas De Loof
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: