Closed
Description
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:
- When favorPathExtension is false ResourceHttpRequestHandler serves resources with different content type in 4.3 compared to 4.2 [SPR-14577] #19146 When favorPathExtension is false ResourceHttpRequestHandler serves resources with different content type in 4.3 compared to 4.2
- SmartInitializingSingleton.afterSingletonsInstantiated() is not called for lazy beans [SPR-12913] #17512 SmartInitializingSingleton.afterSingletonsInstantiated() is not called for lazy beans
1 votes, 3 watchers