Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace JAX-RS with servlet status code in PKIExceptions #4826

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

fmarco76
Copy link
Member

No description provided.

@fmarco76 fmarco76 requested a review from edewata August 14, 2024 17:23
Copy link

sonarcloud bot commented Aug 16, 2024

Copy link
Contributor

@edewata edewata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one comment, but overall it LGTM. There are some CI failures but they don't seem to be related, we can investigate them separately.

public PKIException(Throwable cause) {
this(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), cause.getMessage(), cause);
this(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Internal Server Error", cause);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we include cause.getMessage() in the exception message to help troubleshooting?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message is printed to the end-user so it should not provide internal details and there are are logs including the messages for the majority of (if not all) cases to help troubleshooting. However, since this was the original behaviour I am reverting this message and we can evaluate later if it is OK to have.

@fmarco76
Copy link
Member Author

@edewata Thanks!

@fmarco76 fmarco76 merged commit a90cae0 into dogtagpki:master Aug 19, 2024
22 of 28 checks passed
@fmarco76 fmarco76 deleted the DropRestEasy_Exceptions branch August 19, 2024 11:11
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.

2 participants