<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=bbodnar" rel="nofollow">Barnabas Bodnar</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9806?redirect=false" rel="nofollow">SPR-9806</a></strong> and commented</p>
<p dir="auto">Autowired properties of prototype-beans referencing singletons can remain unset, if ApplicationContext.getBean(...) is called for the prototype-bean concurrently.<br>
Neither the initialization-type of the singleton, nor the fact, whether the singleton already exists or not, plays a role (i.e. the error occurs even if the singleton is already initialized).</p>
<p dir="auto">The error is reproducible even with low concurrency-rates (2 threads).</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/20504/concurrent-getbean-with-autowiring.zip" rel="nofollow">concurrent-getbean-with-autowiring.zip</a> (<em>4.51 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118251" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13901" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13901/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13901">#13901</a> Threading issue in InjectionMetadata.InjectedElement (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398153826" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14485" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14485/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14485">#14485</a> <code class="notranslate">@Resource</code> injection of singleton in prototype using AnnotationConfigApplicationContext is not thread-safe</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/b79260a01731c3539ab6a0f29996d06a8f93b1dd/hovercard" href="https://github.com/spring-projects/spring-framework/commit/b79260a01731c3539ab6a0f29996d06a8f93b1dd"><tt>b79260a</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/7fc16298e68c58ab918cb331462658e99216ad2b/hovercard" href="https://github.com/spring-projects/spring-framework/commit/7fc16298e68c58ab918cb331462658e99216ad2b"><tt>7fc1629</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=zznate" rel="nofollow">Nate McCall</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2988?redirect=false" rel="nofollow">SPR-2988</a></strong> and commented</p>
<p dir="auto">UrlFilenameViewController now does its own (incorrect?) view name parsing as opposed to delegating to:<br>
<a href="http://static.springframework.org/spring/docs/api/org/springframework/web/util/WebUtils.html#extractFilenameFromUrlPath(java.lang.String)" rel="nofollow">http://static.springframework.org/spring/docs/api/org/springframework/web/util/WebUtils.html#extractFilenameFromUrlPath(java.lang.String)</a></p>
<p dir="auto">as stated in the javadoc. This change differs from the funcitonality in 1.2.8 in the following way:</p>
<p dir="auto">with bothUrlFilenameViewController versions mapped to the url "/foo/**" and a request for "/foo/bar/filename.jsp" is received<br>
1.2.8: uses the functionality in WebUtils to return "filename"<br>
2.0: uses an internal implementation to return "bar/filename"</p>
<p dir="auto">Was there a decision to update UrlFilenameViewController to take this new approach? If so, the documentation must be updated. This is related to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398074114" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7673" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7673/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7673">#7673</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 final</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/12304/patch.txt" rel="nofollow">patch.txt</a> (<em>543 bytes</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398072446" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7476" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7476/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7476">#7476</a> UrlFilenameViewController backward compatibility broken (<em><strong>"duplicates"</strong></em>)</li>
</ul>