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

      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)
      

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

              Created:
              Updated:
              Resolved: