<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sslavic" rel="nofollow">Stevo Slavić</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8439?redirect=false" rel="nofollow">SPR-8439</a></strong> and commented</p>
<p dir="auto"><code class="notranslate">FileNotFoundException</code> gets thrown in <code class="notranslate">XmlBeanFactoryTests.testFileSystemResourceWithImport</code> on Windows if path contains spaces. <code class="notranslate">URL.getFile()</code> will return "%20" for spaces in path making returned path string not usable for constructing <code class="notranslate">File</code>. <code class="notranslate">URL.toURI().getPath()</code> should be used instead.</p>
<p dir="auto">See <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4466485" rel="nofollow">this java bug</a> for more details.</p>
<p dir="auto">Attaching a patch [^XmlBeanFactoryTests.java.patch] which fixes the issue.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/18328/XmlBeanFactoryTests.java.patch" rel="nofollow">XmlBeanFactoryTests.java.patch</a> (<em>1.31 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="398101681" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11330" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11330/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11330">#11330</a> XmlBeanFactoryTests testFileSystemResourceWithImport fails if build path contains spaces (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=youen.chene" rel="nofollow">Youen Chéné</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6532?redirect=false" rel="nofollow">SPR-6532</a></strong> and commented</p>
<p dir="auto">Hi i've got the this spring mvc code which works fines with RC2.</p>
<p dir="auto"><code class="notranslate">@RequestMapping</code>(value={"/product-{id}.html","/product-{id}-{name}.html"})<br>
public String showProduct(<code class="notranslate">@PathVariable</code> String id,<code class="notranslate">@RequestParam</code>(value="loc",required=false) String location,Model model)</p>
<p dir="auto">When I am switching with RC3, it is only handle the /product-{id}.html url pattern and not the /product-{id}-{name}.html pattern. In fact with this last pattern it try to put {id}-{name} in the id path variable instead of just put {id}.</p>
<p dir="auto">Sorry, if it is a duplicate, after a quick looking it dot not seems to be one.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 RC3</p>