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

Problem unmarshalling java.util.EnumSet

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      PRQA Jenkins plugin 3.0.1 reports the following issue while unmarshalling report information:

      ConversionException: Refusing to unmarshal chosenReportTypes for security reasons; see https://jenkins.io/redirect/class-filter/
      ---- Debugging information ----
      class : java.util.EnumSet required-type : java.util.EnumSet converter-type : hudson.util.XStream2$BlacklistedTypesConverter path : /build/actions/net.praqma.jenkins.plugin.prqa.notifier.PRQABuildAction/publisher/chosenReportTypes line number : 141
      ------------------------------

      This problem seems to indicate the java.util.EnumSet is not being whitelisted in Jenkins.

        Attachments

          Activity

          Hide
          marcos_bento Marcos Bento added a comment -

          PR 3403(https://github.com/jenkinsci/jenkins/pull/3403) submitted to fix this problem.

          Show
          marcos_bento Marcos Bento added a comment - PR 3403 ( https://github.com/jenkinsci/jenkins/pull/3403 ) submitted to fix this problem.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/src/main/resources/jenkins/security/whitelisted-classes.txt
          http://jenkins-ci.org/commit/jenkins/e511ff832a24350bc43045abbac5f4070bfb376b
          Log:
          Merge pull request #3403 from marcosbento/whitelist_enumset

          JENKINS-50939 - Whitelist java.util.EnumSet

          Compare: https://github.com/jenkinsci/jenkins/compare/909f55b77da1...e511ff832a24

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/resources/jenkins/security/whitelisted-classes.txt http://jenkins-ci.org/commit/jenkins/e511ff832a24350bc43045abbac5f4070bfb376b Log: Merge pull request #3403 from marcosbento/whitelist_enumset JENKINS-50939 - Whitelist java.util.EnumSet Compare: https://github.com/jenkinsci/jenkins/compare/909f55b77da1...e511ff832a24
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/src/main/resources/jenkins/security/whitelisted-classes.txt
          http://jenkins-ci.org/commit/jenkins/e10e98f85408164048350b0f924b63e279624d26
          Log:
          Merge pull request #3403 from marcosbento/whitelist_enumset

          JENKINS-50939 - Whitelist java.util.EnumSet

          (cherry picked from commit e511ff832a24350bc43045abbac5f4070bfb376b)

          Compare: https://github.com/jenkinsci/jenkins/compare/f11b585a28c3...e10e98f85408

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/resources/jenkins/security/whitelisted-classes.txt http://jenkins-ci.org/commit/jenkins/e10e98f85408164048350b0f924b63e279624d26 Log: Merge pull request #3403 from marcosbento/whitelist_enumset JENKINS-50939 - Whitelist java.util.EnumSet (cherry picked from commit e511ff832a24350bc43045abbac5f4070bfb376b) Compare: https://github.com/jenkinsci/jenkins/compare/f11b585a28c3...e10e98f85408
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Fixed in Jenkins 2.119 and 2.107.3.
          I am not sure what is the status on the plugin's side, but the core fix should be enough

          Show
          oleg_nenashev Oleg Nenashev added a comment - Fixed in Jenkins 2.119 and 2.107.3. I am not sure what is the status on the plugin's side, but the core fix should be enough

            People

            • Assignee:
              Unassigned
              Reporter:
              marcos_bento Marcos Bento
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: