Payara icon indicating copy to clipboard operation
Payara copied to clipboard

Bug Report: NullPointerException raised by getUserPrincipal() after a successful FORM Authentication/FISH-6509

Open DavideB opened this issue 1 year ago • 3 comments

Description

Migratng programs from Payara 4.1.2.1 to Payara 5.2022.2 shows the following issue in Payara 5: SecurityContext object injected by @Context annotation in JAX-RS rest bean randomly appear empty in Payara Server 5.2022.2 (build 306), raising a NullPointerException when trying to getUserPrincipal().

Expected Outcome

In the above context, a NPE should not be thrown.

Current Outcome

NPE is randomly thrown when running the small test webapp in this github repository: https://github.com/DavideB/Payara5test.git

Steps to reproduce

Run the small test webapp in the github repository: https://github.com/DavideB/Payara5test.git following the instructions in the README.MD file

Environment

  • Distribution: Server Full Profile
  • JDK Version: 8 u231 - Oracle
  • Operating System: Windows 10

DavideB avatar Aug 10 '22 01:08 DavideB

Hi @DavideB,

I am able to reproduce the issue. I've raised an internal JIRA with FISH-6509 for it. Thanks

shub8968 avatar Sep 01 '22 12:09 shub8968

Hi Shubham Agrawal,

is there any progress made in the investigation about the root cause of this bug?

Thank you and best regards, Davide Bertolotti

Il 01/09/2022 14:58, Shubham Agrawal ha scritto:

JIRA with |FISH-6509|

-- Questa email è stata esaminata alla ricerca di virus dal software antivirus AVG. www.avg.com

DavideB avatar Oct 27 '22 21:10 DavideB

Hi @DavideB,

This issue has been already escalated to our Engineering team for further investigation and fixing. If you are looking for an immediate bug fix on the issue, kindly consider using Payara Enterprise.

shub8968 avatar Oct 28 '22 16:10 shub8968