<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=leos" rel="nofollow">Leoš Bitto</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5610?redirect=false" rel="nofollow">SPR-5610</a></strong> and commented</p>
<p dir="auto">It would be nice if Spring Framework would reject any Map or Set which contain duplicate entries by throwing some exception. It would be perfect if that could be the default behaviour with the upcoming version 3.0, and optional in the currect versions 2.x (where it could be too disruptive if made default). There are two main reasons: First is that the current behaviour, which tolerates duplicates, can easily cover a configuration mistake (consider especially Map with more entries with the same key and different values). Second is that if the used Map or Set implementation is order-preserving, it is unclear how are the duplicates going to be ordered.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6, 3.0 M2</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?p=233277" rel="nofollow">http://forum.springsource.org/showthread.php?p=233277</a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tblachowicz" rel="nofollow">Tomasz Blachowicz</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7972?redirect=false" rel="nofollow">SPR-7972</a></strong> and commented</p>
<p dir="auto">Currently the PUT methods on RestTemplate are void. I'm aware that in typical scenarios PUT does not return any value, but there are some cases where methods putForObject and/or putForEntity are required.</p>
<p dir="auto">Prime example is connectivity with Apache CouchDB that return revision number of the document when updating the document using PUT method.<br>
More details can be seen here: <a href="http://wiki.apache.org/couchdb/HTTP_Document_API#PUT" rel="nofollow">http://wiki.apache.org/couchdb/HTTP_Document_API#PUT</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</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="398159425" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15256" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15256/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15256">#15256</a> Please add a putForEntity and a putForLocation method to RestTemplate (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398159425" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15256" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15256/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15256">#15256</a> Please add a putForEntity and a putForLocation method to RestTemplate (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">3 votes, 5 watchers</p>