提交 87728a10 编写于 作者: K kohsuke

fixed the problem as reported in...

fixed the problem as reported in http://www.nabble.com/Matrix-authorization-problem-tt14602081.html#a14886312


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6715 71c3de6d-444a-0410-be80-ed276b4c234a
上级 e37b2c91
......@@ -63,6 +63,7 @@ import hudson.widgets.Widget;
import net.sf.json.JSONObject;
import org.acegisecurity.Authentication;
import org.acegisecurity.GrantedAuthority;
import org.acegisecurity.GrantedAuthorityImpl;
import org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken;
import org.acegisecurity.context.SecurityContextHolder;
import org.acegisecurity.ui.AbstractProcessingFilter;
......@@ -1848,9 +1849,8 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
// that we have filters. Looking at the stack trace, Tomcat doesn't seem to
// run the request through filters when this is the login request.
// see http://www.nabble.com/Matrix-authorization-problem-tp14602081p14886312.html
if(a==null) {
a = new AnonymousAuthenticationToken("anonymous","anonymous",new GrantedAuthority[0]);
}
if(a==null)
a = new AnonymousAuthenticationToken("anonymous","anonymous",new GrantedAuthority[]{new GrantedAuthorityImpl("anonymous")});
return a;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册