Skip to content

Change in FrameworkServlet makes it impossible to use an alternative WebRequest instance for request processing [SPR-10342] #14976

Closed
@spring-projects-issues

Description

@spring-projects-issues

Graeme Rocher opened SPR-10342 and commented

Due to 3643d92

Which was part of the fix for #14659

We are no longer able to use our own WebRequest implementation that extends from ServletRequestAttributes because Spring always overrides it with its own implementation. This has broken various things in Grails' request processing chain.

I have implemented a workaround in Grails that uses delegation instead of subclassing of ServletRequestAttributes, but this may be a breaking change for Grails users, so I'm not sure if it is ideal.

The issue is compounded by the fact there is no way to change this behavior because the method in FrameworkServlet is final


Affects: 3.2 GA, 3.2.1

Issue Links:

0 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions