You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/08/09 14:43:00 UTC

[jira] [Commented] (ISIS-3113) Using OAuth2 leads to IndexOutOfBoundsException at Startup

    [ https://issues.apache.org/jira/browse/ISIS-3113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577465#comment-17577465 ] 

ASF subversion and git services commented on ISIS-3113:
-------------------------------------------------------

Commit ea8e760b7135856ed54b674518dd530735651006 in isis's branch refs/heads/master from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=ea8e760b71 ]

ISIS-3113: minor: some refactoring, no change in behavior

> Using OAuth2 leads to IndexOutOfBoundsException at Startup
> ----------------------------------------------------------
>
>                 Key: ISIS-3113
>                 URL: https://issues.apache.org/jira/browse/ISIS-3113
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Security Spring
>    Affects Versions: 2.0.0-M7
>            Reporter: Jörg Rade
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-M8
>
>         Attachments: AppManifest.java, LoginController.java, image.png, knife_oauth2.log
>
>
> I tried to follow https://isis.apache.org/security/2.0.0-M6/spring-oauth2/about.html and ended in an Exception at startup:
> {code}
> Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
> 	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
> 	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
> 	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]
> 	at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]
> 	at java.util.ArrayList.get(ArrayList.java:459) ~[?:?]
> 	at org.apache.isis.core.security.authorization.manager.AuthorizationManager$1.chooseFrom(AuthorizationManager.java:60) ~[isis-core-security-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
> 	at org.apache.isis.core.security.authorization.manager.AuthorizationManager.<init>(AuthorizationManager.java:63) ~[isis-core-security-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
> 	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
> 	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
> 	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
> 	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) ~[spring-beans-5.3.21.jar:5.3.21]
> 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) ~[spring-beans-5.3.21.jar:5.3.21]
> 	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311) ~[spring-beans-5.3.21.jar:5.3.21]
> 	... 18 more
> {code}
> c.f.: https://the-asf.slack.com/archives/CFC42LWBV/p1659623443006099



--
This message was sent by Atlassian Jira
(v8.20.10#820010)