<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rstoya05-aop" rel="nofollow">Rossen Stoyanchev</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9622?redirect=false" rel="nofollow">SPR-9622</a></strong> and commented</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.2</p>
<p dir="auto">This issue is a backport sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117941" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13856" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13856/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13856">#13856</a></p>
<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="398152341" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14302" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14302/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14302">#14302</a> Issue/Problem on redirect after migration project on RequestMappingHandlerMapping/RequestMappingHandlerAdapter (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rstoya05-aop" rel="nofollow">Rossen Stoyanchev</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8474?redirect=false" rel="nofollow">SPR-8474</a></strong> and commented</p>
<p dir="auto">With suffix pattern matching "/users" also matches to "/users.*". This is useful for content type negotiation - e.g. /users.xml, /users.pdf - but can lead to ambiguity when extracting URI template variables.</p>
<p dir="auto">For example given "/users/{user}":</p>
<ol dir="auto">
<li>"/users/1.json" should extract "1"</li>
<li>"/users/john.j.joe" should extract "john.j.joe"</li>
</ol>
<p dir="auto">Currently the above cannot be supported at the same time. You can only turn suffix pattern matching on or off. A simple solution could look for a single "." only but then this would be impossible:</p>
<p dir="auto">"/users/john.j.joe.json" should extract "john.j.joe"</p>
<p dir="auto">Ideally the PatternsRequestCondition should be able to decide if the suffix represents a known file extension (.xml, .json) similar to how the ContentNegotiatingViewResolver is configured today.</p>
<p dir="auto">This should become possible as part of the content negotiation improvements planned for Spring 3.2 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112762" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13057" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13057/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13057">#13057</a>).</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</p>
<p dir="auto">This issue is a sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112762" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13057" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13057/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13057">#13057</a></p>
<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="398107985" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12288" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12288/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12288">#12288</a> Allow valid file extension paths for content negotiation to be specified (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398155343" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14694" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14694/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14694">#14694</a> 404 error when working with .htm servlet-mapping</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/4fd7645efd2daf8d23960706180837a61bf9f321/hovercard" href="https://github.com/spring-projects/spring-framework/commit/4fd7645efd2daf8d23960706180837a61bf9f321"><tt>4fd7645</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/9cc4bd892a6bb3aca9fea4b2423369181cebea9a/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9cc4bd892a6bb3aca9fea4b2423369181cebea9a"><tt>9cc4bd8</tt></a></p>
<p dir="auto">2 votes, 3 watchers</p>