Clarify on closing response before returning from dispatch forward()
- Dominant language
- Java
- Stars
- 325
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
Servlet Spec. section 9.4. The Forward Method states:
`Before the forward method of the RequestDispatcher interface returns without exception, the response content must be sent and committed, and closed by the servlet container, unless the request was put into the asynchronous mode.`
When a wrapped response is used in the dispatch forward, which response object should be closed:
1. The wrapped response
2. The underlying/base response
Contributor guide
Research direction
Start with Servlet Specification section 9.4 and the Forward Method wording quoted in the issue. Review the dispatch forward behavior for wrapped responses and determine whether the wrapped or underlying response is closed. Done means the specification clearly identifies the response object and resolves the question.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100