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

Removes 'path' field from non-browser HTTP 4XX responses #588

Closed
wants to merge 1 commit into from
Closed

Removes 'path' field from non-browser HTTP 4XX responses #588

wants to merge 1 commit into from

Conversation

ttomsu
Copy link
Member

@ttomsu ttomsu commented Oct 20, 2015

This PR composes the default error attributes object provided by Spring, and simply removes the offending path entry. It affects only incoming connections, as opposed to the existing RetrofitExceptionHandler, which handles exceptions from outgoing connections.

Reference: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-error-handling

@ajordens @duftler @gregturn PTAL

new MetricsInterceptor(
extendedRegistry, "controller.invocations", ["application"], ["BasicErrorController"]
)
new MetricsInterceptor(
Copy link

Choose a reason for hiding this comment

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

Unintended reformatting?

Copy link
Member Author

Choose a reason for hiding this comment

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

Undid.

@duftler
Copy link

duftler commented Oct 20, 2015

LGTM after addressing comments. Defer to @ajordens on merging.

@ttomsu
Copy link
Member Author

ttomsu commented Oct 20, 2015

Closing - moving fix to kork

@ttomsu ttomsu closed this Oct 20, 2015
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