<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=aantono" rel="nofollow">Alex Antonov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2674?redirect=false" rel="nofollow">SPR-2674</a></strong> and commented</p>
<p dir="auto">If a redirectToView is used after the request has been binded and validated, both BeanPropertyBindingResult and DirectFieldBindingResult do not carry over the underlying BeanWrapper and DirectFieldAccessor (due to them being transient and thus not being serialized in the implementations of the HTTP session which uses byte-array serialization mechanism), and as a result, loosing all the custom PropertyEditors which were assigned to the BindingResult during.</p>
<p dir="auto">Not sure what the exact reason for declaring the BeanWrapper/DirectFieldAccessor transient is, but the most obvious fix is to make them non-transient, or explicitly hold a reference to the PropertyEditorRegistry in the *BindingResult implementations and then inject it into the newly recreated instances of BeanWrapper/DirectFieldAccessor.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 final</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="398070540" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7258" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7258/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7258">#7258</a> Serializable Bind exception bean wrapper is transient, therefore installed property editors are lost upon deserialization. (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=olegk" rel="nofollow">Oleg Kalnichevski</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6180?redirect=false" rel="nofollow">SPR-6180</a></strong> and commented</p>
<p dir="auto">Folks,</p>
<p dir="auto">Please consider upgrading HttpClient to version 4.0 which is the latest stable (GA) version of the library. Commons HttpClient 3.1 is very likely to be deprecated / officially declared end of life very soon (3 - 6 months). There have been no bug fixes in the 3.x branch for over a year.</p>
<p dir="auto">Patch attached. Unfortunately I was unable to fix the Ivy build which I am not very familiar with.</p>
<p dir="auto">Oleg</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 RC1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15761/spring-httpclient-4.0.patch" rel="nofollow">spring-httpclient-4.0.patch</a> (<em>27.24 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="398108082" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12301" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12301/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12301">#12301</a> Provide support for Http Client 4 now that it is available (<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="398102079" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11385" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11385/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11385">#11385</a> CommonsClientHttpRequestFactory getHttpClient() returns HttpClient from Commons HttpClient 3.x which has been EOL'd (<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="398160104" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15356" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15356/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15356">#15356</a> Request streaming for HttpComponentsClientHttpRequestFactory</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/3690002dce069729e24bb67386df3cbd7655708c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/3690002dce069729e24bb67386df3cbd7655708c"><tt>3690002</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/54bbcf3a42ab2be10ebb27b7ff8965dcdf7a5254/hovercard" href="https://github.com/spring-projects/spring-framework/commit/54bbcf3a42ab2be10ebb27b7ff8965dcdf7a5254"><tt>54bbcf3</tt></a></p>
<p dir="auto">17 votes, 20 watchers</p>