Skip to content

ResourceHttpRequestHandler no longer works as prototype bean [SPR-14851] #19417

Closed
@spring-projects-issues

Description

@spring-projects-issues

Bernhard Frauendienst opened SPR-14851 and commented

After upgrading from 4.3.1 to 4.3.3, accessing a prototype bean ResourceHttpRequestHandler triggers a NullPointerException when the handler tries to access the pathExtensionStrategy that is created in afterSingletonsInstantiated.

This is caused by the fix for #19146.

Such a use-case breakage on a minor version upgrade is very inconvenient, even more so when it only is detected at runtime.

This is also somewhat unexpected behaviour. One might expect this method to be called on every bean that is created after the singleton instantiation phase. See #17512 for a related issue wrt lazy-init beans.


Affects: 4.3.3

Issue Links:

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions