FlowExecution.getAuthentication#getAuthentication() causes "IllegalArgumentException: The specified derived class (o.j.p.w.c.CpsFlowExecution) does not derive from the specified base class (o.s.s.c.Authentication)."

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: workflow-api-plugin
    • None
    • Environment:
    • 1371.ve334280b_d611

      Since https://github.com/jenkinsci/workflow-api-plugin/pull/383 and workflow-api:1366.vf1fb_e1a_f6b_22,

       

      FlowExecution.getAuthentication#getAuthentication() causes:

       

      java.lang.IllegalArgumentException: The specified derived class (org.jenkinsci.plugins.workflow.cps.CpsFlowExecution) does not derive from the specified base class (org.springframework.security.core.Authentication).
      	at hudson.Util.isOverridden(Util.java:1536)
      	at hudson.Util.ifOverridden(Util.java:1564)
      	at PluginClassLoader for workflow-api//org.jenkinsci.plugins.workflow.flow.FlowExecution.getAuthentication(FlowExecution.java:266)
      	at PluginClassLoader for opentelemetry//io.jenkins.plugins.opentelemetry.job.MonitoringPipelineListener.onAtomicStep(MonitoringPipelineListener.java:209)

       

      This problem impacts the OpenTelemetry plugin as seen in https://github.com/jenkinsci/opentelemetry-plugin/issues/1064

      See probable cause https://github.com/jenkinsci/workflow-api-plugin/pull/383/files#r2033468381

       

      cc basil and jglick 

            Assignee:
            Basil Crow
            Reporter:
            Cyrille Le Clerc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: