Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2513

Principal proxy handler fails when not authenticated

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0.0-M2
    • Fix Version/s: 8.0.0-M3, 8.0.0-Final
    • Component/s: None
    • Labels:
      None

      Description

      When current request is not authenticated, the Proxy handler for Principal fails with a NullPointerException. We should check if doGetPrincipal is null and return null straight instead of trying to invoke the target method on a null object.

       

      Caused by: java.lang.NullPointerException
      at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.openejb.cdi.ManagedSecurityService$1.invoke(ManagedSecurityService.java:83)

        Attachments

          Activity

            People

            • Assignee:
              jlmonteiro Jean-Louis MONTEIRO
              Reporter:
              jlmonteiro Jean-Louis MONTEIRO
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: