Skip to content

On async request, ServletRequestAttributes are being completed before the request is really completed [SPR-9905] #14538

@spring-projects-issues

Description

@spring-projects-issues

Jesus Alonso opened SPR-9905 and commented

FrameworkServlet is always completing the associated ServletRequestAttributes even when a controller returns a ReferredResult.

Line 933 should be replaced with:

if (!asyncManager.isConcurrentHandlingStarted()) {
requestAttributes.requestCompleted();
}

The ServletRequestAttributes is correctly completed when the async response is processed in DispacherServlet:934


Affects: 3.2 M2

Attachments:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions