shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wangwenbin (JIRA)" <>
Subject [jira] [Commented] (SHIRO-575) use AnonymousFilter Can't get form parameters
Date Tue, 26 Jul 2016 03:13:20 GMT


wangwenbin commented on SHIRO-575:

I am very sorry, my English is not very good, not very easy to communicate with, please understand.
Run example,you download release  version of example,which contain a tomcat and start tomcat,You
need to access the link address is http://localhost/comment,which contain submit form,click
submit button is testing.
This error is due to my use of this class org.apache.shiro.web.session.mgt.DefaultWebSessionManager.In
my shiro.ini configuration file, I declare the following sentences:
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
sessionManager.globalSessionTimeout = 1800000
securityManager.sessionManager = $sessionManager
   I trace soure code and found due to this following  code lead to error:
		if (id == null) {
				// not a URI path segment parameter, try the query parameters:
				String name = getSessionIdName();
				id = request.getParameter(name);
				if (id == null) {
					// try lowercase:
					id = request.getParameter(name.toLowerCase());
After each time this code below, the back of the filter can't obtain form form data:

> use AnonymousFilter Can't get form parameters
> ---------------------------------------------
>                 Key: SHIRO-575
>                 URL:
>             Project: Shiro
>          Issue Type: Bug
>            Reporter: wangwenbin
> 1.use AnonymousFilter in shiro.ini
> /comment/** = anon
> 2.start tomcat
> not visit any page 
> 4.use the form submit comment data
> this point does not receive from parameters

This message was sent by Atlassian JIRA

View raw message