ResourceHttpRequestHandler no longer works as prototype bean [SPR-14851] #19417
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.
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered:
Juergen Hoeller commented
It seems unnecessary to initialize the content negotiation strategy in