Payara
Payara copied to clipboard
Bug Report: NullPointerException raised by getUserPrincipal() after a successful FORM Authentication/FISH-6509
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
Hi @DavideB,
I am able to reproduce the issue. I've raised an internal JIRA with FISH-6509
for it. Thanks
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
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.