Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3113

Using OAuth2 leads to IndexOutOfBoundsException at Startup

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M7
    • 2.0.0-M8
    • Security Spring
    • None

    Description

      I tried to follow https://isis.apache.org/security/2.0.0-M6/spring-oauth2/about.html and ended in an Exception at startup:

      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
      

      c.f.: https://the-asf.slack.com/archives/CFC42LWBV/p1659623443006099

      Attachments

        1. AppManifest.java
          2 kB
          Jörg Rade
        2. image.png
          53 kB
          Jörg Rade
        3. knife_oauth2.log
          21 kB
          Jörg Rade
        4. LoginController.java
          0.5 kB
          Jörg Rade

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hobrom Andi Huber
            joerg.rade Jörg Rade
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment