Comments (5)
Can not reproduce,
I tried with grails.app.context="/" and it redirects me to http://localhost:8080/login?targetUri=foo
See NimbleFilterBase.groovy if you want to dig further. NimbleFilterBase.onNotAuthenticated is called when access is denied, and it redirects to login
For ClassNotFoundException: ensure that you have webxml plugin installed, it should be acquired through transitive deps, but still you can try declaring it in plugin dependencies and see how it goes.
Nimble does not have dependency on webxml plugin, i think resources plugin depends on it.
from nimble.
Thanks for the webxml suggestion, I managed to recreate it on a test app (that doesn't mean it will be reproducible for you, maybe my environment is somehow bad!):
https://dl.dropboxusercontent.com/u/32868579/nimbleTest-bug-report-12102013.zip
Steps:
grails create-app nimbleTest
put
compile ":nimble:0.5.2"
compile ":webxml:1.4.1"
and comment
// compile ':cache:1.1.1'
in BuildConfig.groovy
put
grails.app.context="/"
in Config.groovy
grails run-app
grails jack-be-nimble test TestUser TestProfile
grails run-war
launch http://localhost:8080/ get working home page
click on grails.plugin.nimble.core.UserController
get redirected to http://localhost:8080//login?targetUri=administration%2Fusers%2Flist
shown
HTTP Status 404 - //login
type Status report
message //login
description The requested resource is not available.
Apache Tomcat/7.0.42
from nimble.
Right, It reproduces, Weird, probably some thing related to grails rather thn nimble.
Why would grails redirect to http://localhost:8080//login? for filter.redirect(controller: 'auth', 'action: 'login')
Its a grails bug, should be reproducible for other scenarios as well, try to redirect from a filter to a controller action which has some url mapping like '/foo'
btw: why are you commenting cache plugin, any specific reason ?
from nimble.
I agree it is not likely a Nimble bug, I just assumed it was initially because I got it on the Nimble redirect. I closed it.
I did not submit a ticket to Grails JIRA BTW (will do later IF I get a clean non-nimble test case).
I commented cache because of GPCACHE-33 for which you provided another, better, workaround of "{ excludes "servlet-api" }" for the nimble plugin include but typing in "//" in front of the cache is less symbols.:)
Thanks for your quick response.
from nimble.
GPCACHE-33 I had a guess :)
from nimble.
Related Issues (20)
- problems with 0.6 HOT 3
- anyone doing a port of nimble to foundation HOT 5
- grails-app/views/account/createuser.gsp HOT 3
- setting federated = true for a user causes error on show user screen
- Make it possible to configure the nimble admin header title
- Cannot modify any of the nimble views HOT 1
- Upgrade to Bootstrap 3 HOT 3
- Configuring field names HOT 3
- Incompatibility with grails 2.3.7 LATEST HOT 6
- Facebook integration HOT 3
- compile issues with Grails 2.4.0 HOT 7
- error in LevelPermission domain class HOT 1
- adding a group based security filter
- is this project dead HOT 1
- No module found with name [nimble-login] HOT 2
- replace jquery.pstrength HOT 2
- add asset-pipeline support HOT 1
- unable to access to Demo using provided credentials HOT 2
- removepermission links generated wrong
- During upgrade to Grails 3, Nimble plugin has Missing Classes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimble.