Coder Social home page Coder Social logo

Comments (5)

snimavat avatar snimavat commented on May 30, 2024

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.

JohnM1991 avatar JohnM1991 commented on May 30, 2024

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.

snimavat avatar snimavat commented on May 30, 2024

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.

JohnM1991 avatar JohnM1991 commented on May 30, 2024

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.

snimavat avatar snimavat commented on May 30, 2024

GPCACHE-33 I had a guess :)

from nimble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.