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

snippet generator for matrixauth JellyTagException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • matrix-auth-plugin
    • None
    • Jenkins 2.263.2
      matrix-auth-plugin 2.6.4
    • matrix-auth 2.6.5

    Description

      When attempting to load snippets for properties:

      Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.263.2.jar!/lib/form/nested.jelly:33:22: <d:invokeBody> org.apache.commons.jelly.JellyTagException: jar:file:/var/lib/jenkins/plugins/matrix-auth/WEB-INF/lib/matrix-auth.jar!/lib/matrixauth/blockWrapper.jelly:12:32: <d:invokeBody> Cannot get property 'class' on null object
      	at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:726)
      	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:281)
      	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:100)
      	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:100)
      	at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
      	at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
      	at org.kohsuke.stapler.jelly.groovy.JellyBuilder.doInvokeMethod(JellyBuilder.java:271)
      	... 226 more 

      I note that the code in question has a todo noting that it should be removed once the tables-to-div PR has been merged:

      https://github.com/jenkinsci/matrix-auth-plugin/blob/master/src/main/resources/lib/matrixauth/blockWrapper.jelly

      Attachments

        Issue Links

          Activity

            danielbeck Daniel Beck added a comment -

            In my testing, this only happens on the (no longer linked) top-level snippet generator that is outside the context of any job. Could you confirm this is where this occurs, and the snippet generator works fine when accessed inside a job or folder?

            danielbeck Daniel Beck added a comment - In my testing, this only happens on the (no longer linked) top-level snippet generator that is outside the context of any job. Could you confirm this is where this occurs, and the snippet generator works fine when accessed inside a job or folder?
            danielbeck Daniel Beck added a comment -

            The reason this happens is https://github.com/jenkinsci/matrix-auth-plugin/blob/df6f6491f1d9ddab40fd4476852d8c9940c5762f/src/main/resources/hudson/security/AuthorizationMatrixProperty/config.groovy#L13 because there's no context to determine which inheritance options to show; they differ based on job vs. agent.

            danielbeck Daniel Beck added a comment - The reason this happens is https://github.com/jenkinsci/matrix-auth-plugin/blob/df6f6491f1d9ddab40fd4476852d8c9940c5762f/src/main/resources/hudson/security/AuthorizationMatrixProperty/config.groovy#L13 because there's no context to determine which inheritance options to show; they differ based on job vs. agent.
            mrginglymus Bill Collins added a comment - - edited

            Yes, that's correct - only breaks on top-level.

            mrginglymus Bill Collins added a comment - - edited Yes, that's correct - only breaks on top-level.
            danielbeck Daniel Beck added a comment -

            While for this plugin in isolation, I don't think this is a notable problem, breaking part of the snippet generator completely shouldn't happen.

            danielbeck Daniel Beck added a comment - While for this plugin in isolation, I don't think this is a notable problem, breaking part of the snippet generator completely shouldn't happen.
            danielbeck Daniel Beck added a comment -

            mrginglymus If you can, please test the PR build.

            danielbeck Daniel Beck added a comment - mrginglymus If you can, please test the PR build.
            danielbeck Daniel Beck added a comment -

            PR is merged, I expect to release the fix tomorrow (Thursday)

            danielbeck Daniel Beck added a comment - PR is merged, I expect to release the fix tomorrow (Thursday)
            mrginglymus Bill Collins added a comment -

            Thanks - updated and everything working now.

            mrginglymus Bill Collins added a comment - Thanks - updated and everything working now.

            People

              danielbeck Daniel Beck
              mrginglymus Bill Collins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: