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

Deserialization of hudson.model.ParametersDefinitionProperty$1

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

      (Triggered via JENKINS-49573 comment conversation)

      After upgrading to Jenkins 2.110 and actually presumably JENKINS-49795 I saw the following warning logs:

      2018-03-07 11:39:38 WARNING [jenkins.security.ClassFilterImpl lambda$isBlacklisted$1]   JENKINS-49573: attempt to (de-)serialize anonymous class hudson.model.ParametersDefinitionProperty$1 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.110.jar
      

          [JENKINS-49977] Deserialization of hudson.model.ParametersDefinitionProperty$1

          Reinhold Füreder created issue -
          Reinhold Füreder made changes -
          Link New: This issue is related to JENKINS-49573 [ JENKINS-49573 ]

          (Updating cloned issue, maybe I should not have used cloning in the first place?)

          Reinhold Füreder added a comment - (Updating cloned issue, maybe I should not have used cloning in the first place?)
          Reinhold Füreder made changes -
          Description Original: (Triggered via JENKINS-49573 comment conversation)

          After upgrading to Jenkins 2.110 and actually presumably JENKINS-49795 I saw the following warning logs:
          {noformat}
          2018-03-07 11:39:37 WARNING [jenkins.security.ClassFilterImpl lambda$isBlacklisted$1] JENKINS-49573: attempt to (de-)serialize anonymous class org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue$1 in file:/var/lib/jenkins/plugins/pipeline-model-api/WEB-INF/lib/pipeline-model-api.jar
          2018-03-07 11:39:37 WARNING [jenkins.security.ClassFilterImpl lambda$isBlacklisted$1] JENKINS-49573: attempt to (de-)serialize anonymous class org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue$2 in file:/var/lib/jenkins/plugins/pipeline-model-api/WEB-INF/lib/pipeline-model-api.jar
          {noformat}
          New: (Triggered via JENKINS-49573 comment conversation)

          After upgrading to Jenkins 2.110 and actually presumably JENKINS-49795 I saw the following warning logs:
          {noformat}
          2018-03-07 11:39:38 WARNING [jenkins.security.ClassFilterImpl lambda$isBlacklisted$1] JENKINS-49573: attempt to (de-)serialize anonymous class hudson.model.ParametersDefinitionProperty$1 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.110.jar
          {noformat}
          Summary Original: CLONE - Bad serialization of hudson.model.ParametersDefinitionProperty New: Bad serialization of hudson.model.ParametersDefinitionProperty
          Andrew Bayer made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: pipeline-model-definition-plugin [ 21706 ]
          Assignee Original: Andrew Bayer [ abayer ]
          Oleg Nenashev made changes -
          Link New: This issue relates to JENKINS-49795 [ JENKINS-49795 ]
          Jesse Glick made changes -
          Link Original: This issue is related to JENKINS-49573 [ JENKINS-49573 ]

          Jesse Glick added a comment -

          Jenkins 2.110+ will no longer save this class name for new builds. Historical build records may continue to refer to it. I suppose ParametersAction.readResolve could replace the list with an ArrayList but this does not suffice to trigger a resave; Jenkins currently offers no API for an object’s readResolve to request a save of the top-level object being loaded from XmlFile.

          Just a warning; probably could be closed as Won’t Fix.

          Jesse Glick added a comment - Jenkins 2.110+ will no longer save this class name for new builds. Historical build records may continue to refer to it. I suppose ParametersAction.readResolve could replace the list with an ArrayList but this does not suffice to trigger a resave; Jenkins currently offers no API for an object’s readResolve to request a save of the top-level object being loaded from XmlFile . Just a warning; probably could be closed as Won’t Fix.
          Jesse Glick made changes -
          Priority Original: Critical [ 2 ] New: Minor [ 4 ]
          Jesse Glick made changes -
          Labels Original: JEP-200

            Unassigned Unassigned
            reinholdfuereder Reinhold Füreder
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: