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

java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Seems to be either an invalid assumption that return type narrowing is valid in ProjectMatrixAuthorizationStrategy or the branch-api needs to honour the SidACL expectation

      java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL
      	at hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:71)
      	at hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:64)
      	at hudson.model.Job.getACL(Job.java:1479)
      	at hudson.model.AbstractItem.hasPermission(AbstractItem.java:505)
      	at com.cloudbees.hudson.plugins.folder.AbstractFolder.getItems(AbstractFolder.java:566)
      	at hudson.model.Items.getAllItems(Items.java:350)
      	at hudson.model.Items.getAllItems(Items.java:370)
      	at hudson.model.Items.getAllItems(Items.java:370)
      	at hudson.model.Items.getAllItems(Items.java:346)
      	at jenkins.model.Jenkins.getAllItems(Jenkins.java:1404)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderCron.checkTriggers(FolderCron.java:117)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderCron.doRun(FolderCron.java:99)
      	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

          Hide
          stephenconnolly Stephen Connolly added a comment -
          Show
          stephenconnolly Stephen Connolly added a comment - /CC Jesse Glick
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java
          src/main/java/hudson/security/ProjectMatrixAuthorizationStrategy.java
          http://jenkins-ci.org/commit/matrix-auth-plugin/c25012fb8560b24e2e959d74209ba08552a5af8c
          Log:
          JENKINS-31860 Restore return type to match API

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java src/main/java/hudson/security/ProjectMatrixAuthorizationStrategy.java http://jenkins-ci.org/commit/matrix-auth-plugin/c25012fb8560b24e2e959d74209ba08552a5af8c Log: JENKINS-31860 Restore return type to match API
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java
          src/main/java/hudson/security/ProjectMatrixAuthorizationStrategy.java
          http://jenkins-ci.org/commit/matrix-auth-plugin/a9380a6ccbd4e0ece01bf1f1dc4711bd76098a45
          Log:
          Merge pull request #8 from jenkinsci/jenkins-31860

          JENKINS-31860 Restore return type to match API

          Compare: https://github.com/jenkinsci/matrix-auth-plugin/compare/74cbb6e79caa...a9380a6ccbd4

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java src/main/java/hudson/security/ProjectMatrixAuthorizationStrategy.java http://jenkins-ci.org/commit/matrix-auth-plugin/a9380a6ccbd4e0ece01bf1f1dc4711bd76098a45 Log: Merge pull request #8 from jenkinsci/jenkins-31860 JENKINS-31860 Restore return type to match API Compare: https://github.com/jenkinsci/matrix-auth-plugin/compare/74cbb6e79caa...a9380a6ccbd4
          Hide
          jglick Jesse Glick added a comment -

          Fixed?

          Show
          jglick Jesse Glick added a comment - Fixed?
          Hide
          jglick Jesse Glick added a comment -

          1.3

          Show
          jglick Jesse Glick added a comment - 1.3
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          multibranch/src/test/java/org/jenkinsci/plugins/workflow/multibranch/RerunActionTest.java
          http://jenkins-ci.org/commit/workflow-plugin/74d9e60f49113d5ffa26a042a3030cc8b7575019
          Log:
          Investigating JENKINS-31860, have proposed fix.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: multibranch/src/test/java/org/jenkinsci/plugins/workflow/multibranch/RerunActionTest.java http://jenkins-ci.org/commit/workflow-plugin/74d9e60f49113d5ffa26a042a3030cc8b7575019 Log: Investigating JENKINS-31860 , have proposed fix.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          multibranch/src/test/java/org/jenkinsci/plugins/workflow/multibranch/RerunActionTest.java
          http://jenkins-ci.org/commit/workflow-multibranch-plugin/04e5e8b2bc8fd0c0fa53c3589f7f4a1d4ca7a6be
          Log:
          Investigating JENKINS-31860, have proposed fix.
          Originally-Committed-As: 74d9e60f49113d5ffa26a042a3030cc8b7575019

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: multibranch/src/test/java/org/jenkinsci/plugins/workflow/multibranch/RerunActionTest.java http://jenkins-ci.org/commit/workflow-multibranch-plugin/04e5e8b2bc8fd0c0fa53c3589f7f4a1d4ca7a6be Log: Investigating JENKINS-31860 , have proposed fix. Originally-Committed-As: 74d9e60f49113d5ffa26a042a3030cc8b7575019

            People

            • Assignee:
              stephenconnolly Stephen Connolly
              Reporter:
              stephenconnolly Stephen Connolly
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: