Description
Andy Wilkinson opened SPR-17045 and commented
Please see the referenced Spring Boot issue for details. I have attached a minimal Boot app that reproduces the problem.
In short, the problem is that InternalResourceViewResolver
calls AutowireCapableBeanFactory.initializeBean(Object existingBean, String beanName)
using the complete URL as the beanName
. The bean name is then used by AbstractAutoProxyCreator.wrapIfNecessary(Object, String, Object)
as the key when it caches the fact that no advice applies to it. When the possible redirect URLs are unbounded this leads to an unbounded number of entries being added to the cache.
Affects: 4.3.18
Reference URL: spring-projects/spring-boot#13771
Attachments:
- gh-13771.zip (49.37 kB)
Issue Links:
- RequestDataValueProcessor not called in RedirectView [SPR-8770] #13413 RequestDataValueProcessor not called in RedirectView
- Decouple o.s.w.reactive.result.view.UrlBasedViewResolver from ApplicationContext [SPR-15219] #19784 Decouple o.s.w.reactive.result.view.UrlBasedViewResolver from ApplicationContext
Referenced from: commits b8d2a16, ae1d500, 19e944b
Backported to: 4.3.19
1 votes, 4 watchers