-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add a mechanism to suppress stack trace. #176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a reasonable approach.
As we're discussing doing for the stack suppression listener in Jenkins core.
Let's see if incrementals are working yet. |
Try kicking off incrementals again. |
I wonder whether it would be nicer to use a similar pattern as I used for the RequirePOST error page that lets the application render a view: https://github.com/stapler/stapler/blob/7d5bf955f3f0d174e760c522359ad8321c946f97/core/src/main/java/org/kohsuke/stapler/interceptor/RequirePOST.java#L40-L63 Not sure we're in the correct level here to do this, though. That way, even Stapler's error pages (and thereby the error pages served by the application through As this extends the API of Stapler, bringing this idea up now instead of considering this just a future enhancement. Since nobody else uses Stapler, it would be easy enough to defer though. |
It seems to work.
I adopted Daniel's suggestion of tying the implementation back to Jenkins again, this time using the oops page. I was concerned that we would have things in the proper space and stack but it seems to work fine. Please review @jvz @daniel-beck @Wadeck |
It looks like this is ready to go. @jglick or @daniel-beck, who can help get this merged in and released? |
Looks like Stapler is (now?) released to repo.j.o, and nobody has permissions to do this, which basically means Oliver Gondza and the Artifactory admins (KK, Tyler, Wadeck, and me) can do it. Or we use some of the security process to deploy into a private repo and them copy it over. 😆 (I removed @jglick's previous universal upload permission a while back.) |
IIUC this is waiting for jenkins-infra/repository-permissions-updater#1420 |
@jglick Looks like the parent POM results in deployment to OSSRH after all? If so, could you release Stapler? |
Thanks for releasing that, @jglick! |
Add a mechanism to control whether
HttpResponses.error()
shows the error details, particularly the stack trace. By default it doesn't show the stack trace, but the interface can be enabled to show it.