Open ilopmar opened 8 years ago
I see the same errors and in the deployed application the spring-security-ui is not working due to missing jquery functions in the webbrowser.
Uncaught ReferenceError: jQuery is not defined
at spring-security-ui.unminified.js:397
(anonymous) @ spring-security-ui.unminified.js:397
1:226 Uncaught ReferenceError: $ is not defined
at 1:226
I am able to reproduce this in development mode when I set the developmentRuntime = false
for the asset plugin in my build.gradle.
Is there a way to overcome this problem?
In the spring-security-ui repository is already a fix for this error, but it is not available as a release yet. So basically you need to compile the plugin by yourself. Basically they replaced the variables within filenames with static paths.
A little bit more testing revealed to me, that the problem only occurs when I use the grails command, e.g. grails assemble
. When doing the same with gradle, the error does not occur ./gradlew.bat war
grails version: 3.1.10 gradlew version: 2.13
+1
This wouls be a bug in the ui plugin
On May 9, 2017 10:49 PM, "Valerius James" notifications@github.com wrote:
+1
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bertramdev/grails-asset-pipeline/issues/372#issuecomment-300358915, or mute the thread https://github.com/notifications/unsubscribe-auth/AABaEnCwxD2D3eZ8JDx4OX5tgaWA423Qks5r4SWpgaJpZM4J2wMA .
I found an exception processing static resources from spring-security-ui plugin. To reproduce the issue you only need to create a fresh new grails project (I'm using Grails 3.1.10) and add the following dependencies:
I'm using the latest version of the plugin (
2.11.2
)Then just execute
./gradlew assetCompile
The first fail is with the file
spring-security-ui.css
although there are other files that are also failing.Until version
2.1.1
of gradle plugin the resources of the plugins were not processed so starting in that version theassetCompile
task fails. With this old version the filespring-security-ui.css
is processed correctly although the process fails in another file.In all the cases the build is successful so I'm wondering if this is really a problem. I've create a .war file, run the application from there and navigate and it seems everything it's working, so I'm not sure.