Skip to content

RemoteException is not chained with AuthenticationException at openejb-client authentication#2549

Open
florian-courault wants to merge 1 commit intoapache:tomee-10.xfrom
florian-courault:tomee-10.x
Open

RemoteException is not chained with AuthenticationException at openejb-client authentication#2549
florian-courault wants to merge 1 commit intoapache:tomee-10.xfrom
florian-courault:tomee-10.x

Conversation

@florian-courault
Copy link

Hello

One of our middleware is using openejb-client 10.0.0.
The openejb-client authentication often fails: it requires a certificate that is inside a smartcard, that can be unavailable for many reasons.
While debugging I noticed that the real reasons of why the authentication fails is hidden by JNDIContext#authenticate:
The RemoteException that is catched is not chained to the AuthenticationException that is rethrowed.
It seems to be an oversight.
This patch is chaining the RemoteException to the AuthenticationException.

@rzo1 rzo1 requested a review from jungm March 15, 2026 20:32
@jungm jungm requested a review from dblevins March 16, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant