Hi Yockii,

What is the desired behavior?  What do you want to happen in this case?

It is pretty common in many websites that an unauthenticated user is
redirected to the login page, even if the original target would result
in an error (e.g. 404, 500, etc).  Most people leave this alone and
are fine with it.

However, if this isn't the desired behavior, I've seen people create a
controller dedicated to errors and allow that to be anonymous.  For
example:

[urls]
...
/error.jsp = anon
/404.jsp = anon
# etc.
/** = authc

Cheers,

Les

On Sun, Nov 20, 2011 at 11:53 PM, yockii <[email protected]> wrote:
> Hi,
>  im using shiro with spring & springMvc, it worked but if i request a none
> mapped url(and web container returns a 404 page), the subject in the session
> seems to be cleared, then any url need authc shiro redirects me to the login
> page, does any one has any ideas?
>
> Thanks All,
> Yockii Hsu
>
> --
> View this message in context: 
> http://shiro-user.582556.n2.nabble.com/missing-subject-after-request-a-not-mapping-url-tp7015626p7015626.html
> Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to