Skip to content

Do not return EJB exception messages from the default JAX-RS mapper - #3083

Open
rzo1 wants to merge 1 commit into
mainfrom
ejb-exception-mapper-generic-message
Open

rzo1 wants to merge 1 commit into
mainfrom
ejb-exception-mapper-generic-message

Conversation

@rzo1

@rzo1 rzo1 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

The default EJBExceptionMapper returned the internal exception message as the response body. Unmapped EJBExceptions now return an empty 500 (403 for EJBAccessException is unchanged) and the cause is logged as one warning line, with the stack trace at debug level. Setting openejb.jaxrs.ejb-exception-mapper.expose-message=true restores the old body, which should go into the release notes.

Log the cause as a warning instead. Setting the property
openejb.jaxrs.ejb-exception-mapper.expose-message=true restores it.
@rzo1 rzo1 self-assigned this Oct 9, 2026
@rzo1
rzo1 requested a review from jungm October 9, 2026 09:22
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