Skip to content

Clarify the default ProblemDetail instance - #37823

Open
cbsingh1 wants to merge 2 commits into
spring-projects:mainfrom
cbsingh1:docs/problem-detail-instance
Open

cbsingh1 wants to merge 2 commits into
spring-projects:mainfrom
cbsingh1:docs/problem-detail-instance

Conversation

@cbsingh1

@cbsingh1 cbsingh1 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Spring Framework 7.1 stopped populating ProblemDetail.instance from the request path. Update the setInstance Javadoc to document the unset default and explain that applications can set the instance directly or through an ErrorResponse.Interceptor.

Generated the ProblemDetail Javadoc with reference checking, verified the interceptor link, and ran spring-web Checkstyle. The full module test run was stopped before completion.

Closes #37820

Spring Framework 7.1 no longer populates the problem instance from the
request path. Document the unset default and how applications can set
it directly or through an ErrorResponse.Interceptor.

Closes spring-projectsgh-37820

Signed-off-by: Chandra Bhan Singh <2555224+cbsingh1@users.noreply.github.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 3, 2026
Keep the setter Javadoc focused on its API. The MVC and WebFlux
reference docs describe the request-path behavior and interceptors.

See spring-projectsgh-37820

Signed-off-by: Chandra Bhan Singh <2555224+cbsingh1@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ProblemDetail#setInstance Javadoc still says instance defaults to the request path

2 participants