Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-454

TODO: Picketbox branch: NPE when accessing the userinfo endpoint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 1.0.0.M6
    • Fix Version/s: 1.0.0.M6
    • Component/s: examples
    • Labels:
      None

      Description

      Accessing the "userinfo" endpoint (http://localhost:8080/todo-server/userinfo), without a user, is giving me NPE:

      java.lang.NullPointerException
      	org.aerogear.todo.server.security.idm.UserInfoEndpoint.getInfo(UserInfoEndpoint.java:57)
      	sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:601)
      	org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
      	org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
      	org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
      ...
      ...
      

      Since there is no user:
      https://github.com/aerogear/TODO/blob/picketbox/server/src/main/java/org/aerogear/todo/server/security/idm/UserInfoEndpoint.java#L57

        Attachments

          Activity

            People

            Assignee:
            boliveir_managed_kafka_security Bruno Oliveira
            Reporter:
            mwessend@redhat.com Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: