<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pakin" rel="nofollow">Angel</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8636?redirect=false" rel="nofollow">SPR-8636</a></strong> and commented</p>
<p dir="auto">Example</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Controller
@SessionAttributes({&quot;context&quot;})
public class AuthenticationAction {
    @RequestMapping(&quot;/login&quot;)
    public String login(@RequestParam(required=false, &quot;errorCode&quot;) String errorCode,
                        @ModelAttribute(&quot;context&quot;) String context) {
        return &quot;redirect:/action/login/&quot; + context;
    }
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Controller</span>
<span class="pl-c1">@</span><span class="pl-c1">SessionAttributes</span>({<span class="pl-s">"context"</span>})
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">AuthenticationAction</span> {
    <span class="pl-c1">@</span><span class="pl-c1">RequestMapping</span>(<span class="pl-s">"/login"</span>)
    <span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">login</span>(<span class="pl-c1">@</span><span class="pl-c1">RequestParam</span>(<span class="pl-s1">required</span>=<span class="pl-c1">false</span>, <span class="pl-s">"errorCode"</span>) <span class="pl-smi">String</span> <span class="pl-s1">errorCode</span>,
                        <span class="pl-c1">@</span><span class="pl-c1">ModelAttribute</span>(<span class="pl-s">"context"</span>) <span class="pl-smi">String</span> <span class="pl-s1">context</span>) {
        <span class="pl-k">return</span> <span class="pl-s">"redirect:/action/login/"</span> + <span class="pl-s1">context</span>;
    }
}</pre></div>
<p dir="auto">This example will redirect to the url: .../action/login/{context}?context=value</p>
<p dir="auto">The parameter "context" and its value should not appear in the url query string by default in this case  because they are already in session.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</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="398102637" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11462" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11462/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11462">#11462</a> Provide precise control over the attributes used in a redirect scenario (<em><strong>"duplicates"</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=evgenyg" rel="nofollow">Evgeny Goldin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7424?redirect=false" rel="nofollow">SPR-7424</a></strong> and commented</p>
<p dir="auto">CommonsClientHttpRequestFactory used by Rest Template depends on outdated "commons-httpclient" v3.1.<br>
Version 4.0.1 is available and it's a serious upgrade to HttpClient:<br>
<a href="http://hc.apache.org/httpcomponents-client-4.0.1/index.html" rel="nofollow">http://hc.apache.org/httpcomponents-client-4.0.1/index.html</a><br>
<a href="http://hc.apache.org/httpcomponents-client/download.html" rel="nofollow">http://hc.apache.org/httpcomponents-client/download.html</a></p>
<p dir="auto">It would be nice if CommonsClientHttpRequestFactory was updated to use v4.x of Apache HttpClient</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.3</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="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>"duplicates"</strong></em>)</li>
</ul>