Issue Type: Bug Bug
Affects Versions: current
Assignee: Jesse Glick
Components: core, groovy
Created: 27/Jan/14 6:59 PM
Description:

Due to a bug in Stapler-Groovy, it is impossible for plugins to define/use custom Taglibs that are written in Groovy. Jelly taglibs work fine, but groovy taglibs always throw an NPE as can be seen here:

http://jenkins-ci.361315.n4.nabble.com/Groovy-Taglibs-td4662779.html

The reason is a bug in Stapler, that causes the Groovy File resolution to fail with an NPE. Additionally, it also does not search the entire ClassLoader tree, and thus is incapable of finding the Groovy files (which to the above NPE in the first place).

Replication of this issue is simple, by trying to create an empty Groovy taglib and then trying to use its tag from either a Groovy or Jelly UI file.

The bug will be fixed as soon as the following patch is merged into the stapler source code and the Jenkins dependency to stapler updated:
https://github.com/stapler/stapler/pull/31

Environment: N/A
Project: Jenkins
Priority: Major Major
Reporter: Martin Schröder
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to