Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Won't Fix
-
Affects Version/s: 1.2-RC1
-
Fix Version/s: 1.2.2
-
Component/s: None
-
Labels:None
Description
We have a plugin which provides a taglib for easily showing messages via some javascript-code.
One tag provides code for integrating the necessary code for loading the resources (css, js) for the page in the header. The resources are shipped with the plugin. We are calling g.resource for creating the path, see attached code.
In Grails <= 1.2-M4 this worked correctly using variable pluginContextPath.
However in 1.2-RC1 this has changed.
Instead of creating e.g. the path to the resource as "/plugins/my-tism-0.1/js/jquery.js" the path is now being rendered as "/js/jquery.js", because the pluginContextPath is null for some reason, which we verified using some debug code.
Looking somewhat further into the issue we found that pageScope.pluginContextPath is also null.
We have a second plugin which seems to work correctly and where the pluginContextPath has the correct value.
I am looking further into this. The code has not changed since 1.2-M4 for both plugins, so it still looks like something has changed in the framework.