[
https://issues.apache.org/jira/browse/SHIRO-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070357#comment-17070357
]
Benjamin Marwell commented on SHIRO-510:
----------------------------------------
This does not seem to be an issue anymore. If executed locally, it does not
create a StackoverflowError.
{code:java}
@Test
public void testDelegatingStackOverflow() {
Ini ini = new Ini();
Ini.Section main =
ini.addSection(IniSecurityManagerFactory.MAIN_SECTION_NAME);
//add a test user:
ini.setSectionProperty(IniRealm.USERS_SECTION_NAME, "admin", "admin");
final WebIniSecurityManagerFactory factory = new
WebIniSecurityManagerFactory(ini);
SecurityManager securityManager = factory.getInstance();
SecurityUtils.setSecurityManager(securityManager);
final Subject currentUser = SecurityUtils.getSubject();
while (true) {
currentUser.login(new UsernamePasswordToken("admin", "admin"));
}
}
{code}
If I am not missing something, this could be closed. [~bdemers]?
> java.lang.StackOverflowError in shiro
> -------------------------------------
>
> Key: SHIRO-510
> URL: https://issues.apache.org/jira/browse/SHIRO-510
> Project: Shiro
> Issue Type: Bug
> Affects Versions: 1.2.2
> Environment: Linux, ubuntu, apache tomcat-8
> Reporter: Kill Bill
> Priority: Major
>
> 326293 > POST
> http://killbill-uat2.snc1:8080/1.0/kb/payments/a3bb531b-9ab7-4e9b-8a71-602dfbf4680d?pluginProperty=TEST_MODE%3DCONTROL
> 326293 > accept: application/json
> 326293 > user-agent: killbill/0.7.3; ruby 2.1.1p76 (2014-02-24 revision
> 45161) [x86_64-linux]
> 326293 > accept-encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
> 326293 > authorization: Basic YWRtaW46cGFzc3dvcmQ=
> 326293 > content-type: application/json
> 326293 > x-killbill-createdby: AuthCapture
> 326293 > host: killbill-uat2.snc1:8080
> 326293 > content-length: 129
> 326293 >
> 2014-08-05 00:52:49,854 [catalina-exec-11] ERROR
> c.s.j.s.container.ContainerResponse - The exception contained within
> MappableContainerException could not be mapped to a response, re-throwing to
> the HTTP container
> java.lang.StackOverflowError: null
> at
> org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
> ~[ProxiedSession.class:1.2.2]
> at
> org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
> ~[ProxiedSession.class:1.2.2]
> at
> org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
> ~[ProxiedSession.class:1.2.2]
> at
> org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
> ~[ProxiedSession.class:1.2.2]
> at
> org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
> ~[ProxiedSession.class:1.2.2]
> at
> org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
> ~[ProxiedSession.class:1.2.2]
> at
> org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
> ~[ProxiedSession.class:1.2.2]
> at
> org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
> ~[ProxiedSession.class:1.2.2]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)