<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>dev@hc.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/hc-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/hc-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/hc-dev/</id>
<updated>2009-12-09T01:27:07Z</updated>
<entry>
<title>[jira] Commented: (HTTPCLIENT-875) DefaultClientConnectionOperator doesn't update socket after call to connectSocket(...)</title>
<author><name>&quot;Glyn Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1574639254.1260317238582.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1574639254-1260317238582-JavaMail-jira@brutus%3e</id>
<updated>2009-12-09T00:07:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12787818#action_12787818
] 

Glyn Davies commented on HTTPCLIENT-875:
----------------------------------------


I'm looking at MultihomePlainSocketFactory which creates a new client socket object under
exception situations.

This new socket is returned, and replaces the initial socket that was created.

This would be fine if the update() replaced the existing socket straight away, but this fails
because the initial socket is not open.


&gt; DefaultClientConnectionOperator doesn't update socket after call to connectSocket(...)
&gt; --------------------------------------------------------------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-875
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-875
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Beta 2, 4.0 Final
&gt;            Reporter: Connell Gauld
&gt;             Fix For: 4.1 Alpha1
&gt;
&gt;         Attachments: HTTPCLIENT-875-2.patch, HTTPCLIENT-875.diff
&gt;
&gt;
&gt; In the DefaultClientConnectionOperator function openConnection(...) it calls SocketFactory.connectSocket(...).
The documentation for connectSocket(...) says that it returns:
&gt;    "the connected socket. The returned object may be different from
&gt; the sock argument if this factory supports a layered protocol. "
&gt; A quick peek at the source showed:
&gt; In org.apache.http.impl.conn.DefaultClientConnectionOperator:
&gt; 117         final SocketFactory sf = schm.getSocketFactory();
&gt; 118
&gt; 119         Socket sock = sf.createSocket();
&gt; 120         conn.opening(sock, target);
&gt; 121
&gt; 122         try {
&gt; 123             sock = sf.connectSocket(sock, target.getHostName(),
&gt; 124                     schm.resolvePort(target.getPort()),
&gt; 125                     local, 0, params);
&gt; 126         } catch (ConnectException ex) {
&gt; 127             throw new HttpHostConnectException(target, ex);
&gt; 128         }
&gt; 129         prepareSocket(sock, context, params);
&gt; 130         conn.openCompleted(sf.isSecure(sock), params);
&gt; So DefaultClientConnectionOperator never updates conn with the new version of sock that
may have been returned from connectSocket(...).
&gt; adding:
&gt;         130         conn.openCompleted(sf.isSecure(sock), params);
&gt; +++ 131         conn.update(sock, target, sf.isSecure(sock), params);
&gt; appears to fix the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (HTTPCLIENT-875) DefaultClientConnectionOperator doesn't update socket after call to connectSocket(...)</title>
<author><name>&quot;Oleg Kalnichevski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1539207820.1260311838081.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1539207820-1260311838081-JavaMail-jira@brutus%3e</id>
<updated>2009-12-08T22:37:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12787787#action_12787787
] 

Oleg Kalnichevski commented on HTTPCLIENT-875:
----------------------------------------------

This is actually the expected behaviour of the method, see javadocs. Why it is a problem?
  

http://hc.apache.org/httpcomponents-client/httpclient/apidocs/org/apache/http/conn/OperatedClientConnection.html#update%28java.net.Socket,%20org.apache.http.HttpHost,%20boolean,%20org.apache.http.params.HttpParams%29

Oleg

&gt; DefaultClientConnectionOperator doesn't update socket after call to connectSocket(...)
&gt; --------------------------------------------------------------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-875
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-875
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Beta 2, 4.0 Final
&gt;            Reporter: Connell Gauld
&gt;             Fix For: 4.1 Alpha1
&gt;
&gt;         Attachments: HTTPCLIENT-875-2.patch, HTTPCLIENT-875.diff
&gt;
&gt;
&gt; In the DefaultClientConnectionOperator function openConnection(...) it calls SocketFactory.connectSocket(...).
The documentation for connectSocket(...) says that it returns:
&gt;    "the connected socket. The returned object may be different from
&gt; the sock argument if this factory supports a layered protocol. "
&gt; A quick peek at the source showed:
&gt; In org.apache.http.impl.conn.DefaultClientConnectionOperator:
&gt; 117         final SocketFactory sf = schm.getSocketFactory();
&gt; 118
&gt; 119         Socket sock = sf.createSocket();
&gt; 120         conn.opening(sock, target);
&gt; 121
&gt; 122         try {
&gt; 123             sock = sf.connectSocket(sock, target.getHostName(),
&gt; 124                     schm.resolvePort(target.getPort()),
&gt; 125                     local, 0, params);
&gt; 126         } catch (ConnectException ex) {
&gt; 127             throw new HttpHostConnectException(target, ex);
&gt; 128         }
&gt; 129         prepareSocket(sock, context, params);
&gt; 130         conn.openCompleted(sf.isSecure(sock), params);
&gt; So DefaultClientConnectionOperator never updates conn with the new version of sock that
may have been returned from connectSocket(...).
&gt; adding:
&gt;         130         conn.openCompleted(sf.isSecure(sock), params);
&gt; +++ 131         conn.update(sock, target, sf.isSecure(sock), params);
&gt; appears to fix the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (HTTPCLIENT-897) java.lang.IllegalStateException: unsupported protocol: &quot;&lt;host name&gt;&quot; when using ConnectMethod</title>
<author><name>&quot;Oleg Kalnichevski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1901165574.1260311238085.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1901165574-1260311238085-JavaMail-jira@brutus%3e</id>
<updated>2009-12-08T22:27:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-897.
------------------------------------------

    Resolution: Won't Fix

HttpClient 3.x code line is effectively end of life. Please consider upgrading to HttpClient
4.0

Oleg

&gt; java.lang.IllegalStateException: unsupported protocol: "&lt;host name&gt;" when using
ConnectMethod
&gt; ---------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-897
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-897
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpClient
&gt;         Environment: commons-httpclient-3.1.jar
&gt;            Reporter: Barry Silis
&gt;   Original Estimate: 0.08h
&gt;  Remaining Estimate: 0.08h
&gt;
&gt; The method org.apache.commons.httpclient.ConnectMethod.getURI() omits the protocol from
the returned URI, causing an exception *java.lang.IllegalStateException* when trying to use
the class ConnectMethod.
&gt; I believe it can be solved by not overriding org.apache.commons.httpclient.HttpMethodBase.getURI()
in the ConnectMethod class.
&gt; The exception:
&gt; Exception in thread "main" java.lang.IllegalStateException: unsupported protocol: 'www.google.com'
&gt; 	at org.apache.commons.httpclient.protocol.Protocol.lazyRegisterProtocol(Protocol.java:149)
&gt; 	at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Protocol.java:117)
&gt; 	at org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:253)
&gt; 	at org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:315)
&gt; 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:388)
&gt; 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
&gt; 	at epicon.sbr.client.TestHttpGet.connectToProxy(TestHttpGet.java:293)
&gt; 	at epicon.sbr.client.TestHttpGet.main(TestHttpGet.java:41)
&gt; Cheers,
&gt; Barry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (HTTPCLIENT-875) DefaultClientConnectionOperator doesn't update socket after call to connectSocket(...)</title>
<author><name>&quot;Glyn Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c2042133274.1260307458097.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2042133274-1260307458097-JavaMail-jira@brutus%3e</id>
<updated>2009-12-08T21:24:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12787749#action_12787749
] 

Glyn Davies commented on HTTPCLIENT-875:
----------------------------------------


This doesn't fix all cases as the call to conn.update() checks that the previous socket is
still open, by calling assertOpen()

If the original socket is screwed up (likely given the use case) this throws an 'IllegalStateEXception:
Connection is not open'

&gt; DefaultClientConnectionOperator doesn't update socket after call to connectSocket(...)
&gt; --------------------------------------------------------------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-875
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-875
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Beta 2, 4.0 Final
&gt;            Reporter: Connell Gauld
&gt;             Fix For: 4.1 Alpha1
&gt;
&gt;         Attachments: HTTPCLIENT-875-2.patch, HTTPCLIENT-875.diff
&gt;
&gt;
&gt; In the DefaultClientConnectionOperator function openConnection(...) it calls SocketFactory.connectSocket(...).
The documentation for connectSocket(...) says that it returns:
&gt;    "the connected socket. The returned object may be different from
&gt; the sock argument if this factory supports a layered protocol. "
&gt; A quick peek at the source showed:
&gt; In org.apache.http.impl.conn.DefaultClientConnectionOperator:
&gt; 117         final SocketFactory sf = schm.getSocketFactory();
&gt; 118
&gt; 119         Socket sock = sf.createSocket();
&gt; 120         conn.opening(sock, target);
&gt; 121
&gt; 122         try {
&gt; 123             sock = sf.connectSocket(sock, target.getHostName(),
&gt; 124                     schm.resolvePort(target.getPort()),
&gt; 125                     local, 0, params);
&gt; 126         } catch (ConnectException ex) {
&gt; 127             throw new HttpHostConnectException(target, ex);
&gt; 128         }
&gt; 129         prepareSocket(sock, context, params);
&gt; 130         conn.openCompleted(sf.isSecure(sock), params);
&gt; So DefaultClientConnectionOperator never updates conn with the new version of sock that
may have been returned from connectSocket(...).
&gt; adding:
&gt;         130         conn.openCompleted(sf.isSecure(sock), params);
&gt; +++ 131         conn.update(sock, target, sf.isSecure(sock), params);
&gt; appears to fix the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Moved: (HTTPCLIENT-897) java.lang.IllegalStateException: unsupported protocol: &quot;&lt;host name&gt;&quot; when using ConnectMethod</title>
<author><name>&quot;Sebb (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c2128617098.1260234738098.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2128617098-1260234738098-JavaMail-jira@brutus%3e</id>
<updated>2009-12-08T01:12:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb moved COMMONSSITE-47 to HTTPCLIENT-897:
--------------------------------------------

    Component/s:     (was: Site)
                 HttpClient
            Key: HTTPCLIENT-897  (was: COMMONSSITE-47)
        Project: HttpComponents HttpClient  (was: Commons All)

&gt; java.lang.IllegalStateException: unsupported protocol: "&lt;host name&gt;" when using
ConnectMethod
&gt; ---------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-897
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-897
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpClient
&gt;         Environment: commons-httpclient-3.1.jar
&gt;            Reporter: Barry Silis
&gt;   Original Estimate: 0.08h
&gt;  Remaining Estimate: 0.08h
&gt;
&gt; The method org.apache.commons.httpclient.ConnectMethod.getURI() omits the protocol from
the returned URI, causing an exception *java.lang.IllegalStateException* when trying to use
the class ConnectMethod.
&gt; I believe it can be solved by not overriding org.apache.commons.httpclient.HttpMethodBase.getURI()
in the ConnectMethod class.
&gt; The exception:
&gt; Exception in thread "main" java.lang.IllegalStateException: unsupported protocol: 'www.google.com'
&gt; 	at org.apache.commons.httpclient.protocol.Protocol.lazyRegisterProtocol(Protocol.java:149)
&gt; 	at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Protocol.java:117)
&gt; 	at org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:253)
&gt; 	at org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:315)
&gt; 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:388)
&gt; 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
&gt; 	at epicon.sbr.client.TestHttpGet.connectToProxy(TestHttpGet.java:293)
&gt; 	at epicon.sbr.client.TestHttpGet.main(TestHttpGet.java:41)
&gt; Cheers,
&gt; Barry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [VOTE] HttpComponents Client 4.1-alpha1 release</title>
<author><name>ant elder &lt;ant.elder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c71e1b5740912060252i6007b7baq9093fa741a7691bc@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912060252i6007b7baq9093fa741a7691bc@mail-gmail-com%3e</id>
<updated>2009-12-06T10:52:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
+1

(On the correct thread this time :) )

   ...ant

On Fri, Dec 4, 2009 at 10:40 AM, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt; Please vote on releasing these packages as HttpComponents Client 4.1-alpha1.
&gt; The vote is open for at least 72 hours, and only votes from
&gt; HttpComponents PMC members are binding. The vote passes if at least
&gt; three binding +1 votes are cast and there are more +1 than -1 votes.
&gt;
&gt; Packages:
&gt; http://people.apache.org/~olegk/httpclient-4.1-alpha1/
&gt;
&gt; Release notes:
&gt; http://people.apache.org/~olegk/httpclient-4.1-alpha1/RELEASE_NOTES.txt
&gt;
&gt; SVN tag:
&gt; http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.1-alpha1/
&gt;
&gt; --------------------------------------------------------------------------
&gt;  Vote:  HttpComponents Client 4.1-alpha1 release
&gt;  [ ] +1 Release the packages as HttpComponents Client 4.1-alpha1.
&gt;  [ ] -1 I am against releasing the packages (must include a reason).
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [VOTE] HttpComponents Client 4.0.1 release (take 2)</title>
<author><name>ant elder &lt;ant.elder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c71e1b5740912060251r6c8b4623s1c3a938402a5e145@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912060251r6c8b4623s1c3a938402a5e145@mail-gmail-com%3e</id>
<updated>2009-12-06T10:51:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
+1

   ...ant

On Thu, Dec 3, 2009 at 10:57 PM, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt; Please vote on releasing these packages as HttpComponents Client 4.0.1.
&gt; The vote is open for at least 72 hours, and only votes from
&gt; HttpComponents PMC members are binding. The vote passes if at least
&gt; three binding +1 votes are cast and there are more +1 than -1 votes.
&gt;
&gt; Packages: http://people.apache.org/~olegk/httpclient-4.0.1/
&gt;
&gt; Release notes:
&gt; http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt
&gt;
&gt; SVN tag:
&gt; http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/
&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [VOTE] HttpComponents Client 4.0.1 release (take 2)</title>
<author><name>ant elder &lt;ant.elder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c71e1b5740912060249u20e4fdai517cd570b31ed87f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912060249u20e4fdai517cd570b31ed87f@mail-gmail-com%3e</id>
<updated>2009-12-06T10:49:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Looks good to me, +1

  ...ant

On Thu, Dec 3, 2009 at 10:57 PM, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt; Please vote on releasing these packages as HttpComponents Client 4.0.1.
&gt; The vote is open for at least 72 hours, and only votes from
&gt; HttpComponents PMC members are binding. The vote passes if at least
&gt; three binding +1 votes are cast and there are more +1 than -1 votes.
&gt;
&gt; Packages: http://people.apache.org/~olegk/httpclient-4.0.1/
&gt;
&gt; Release notes:
&gt; http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt
&gt;
&gt; SVN tag:
&gt; http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/
&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [VOTE] HttpComponents Client 4.0.1 release (take 2)</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c4B1B28EE.4030901@apache.org%3e"/>
<id>urn:uuid:%3c4B1B28EE-4030901@apache-org%3e</id>
<updated>2009-12-06T03:45:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
+1
asankha

Oleg Kalnichevski wrote:
&gt; Please vote on releasing these packages as HttpComponents Client 4.0.1.
&gt; The vote is open for at least 72 hours, and only votes from
&gt; HttpComponents PMC members are binding. The vote passes if at least
&gt; three binding +1 votes are cast and there are more +1 than -1 votes.
&gt;
&gt; Packages: http://people.apache.org/~olegk/httpclient-4.0.1/
&gt;
&gt; Release notes:
&gt; http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt
&gt;
&gt; SVN tag:
&gt; http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [VOTE] HttpComponents Client 4.1-alpha1 release</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c4B1B2868.60603@apache.org%3e"/>
<id>urn:uuid:%3c4B1B2868-60603@apache-org%3e</id>
<updated>2009-12-06T03:43:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

&gt; Vote:  HttpComponents Client 4.1-alpha1 release
&gt;  [X] +1 Release the packages as HttpComponents Client 4.1-alpha1.
&gt;  [ ] -1 I am against releasing the packages (must include a reason).
asankha

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Called off Re: [VOTE] HttpComponents Client 4.0.1 release</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c4B1A3828.6030200@apache.org%3e"/>
<id>urn:uuid:%3c4B1A3828-6030200@apache-org%3e</id>
<updated>2009-12-05T10:38:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
sebb wrote:
&gt; On 04/12/2009, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt;&gt; On Fri, 2009-12-04 at 00:34 +0000, sebb wrote:
&gt;&gt;  &gt; On 03/12/2009, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt;&gt;  &gt; &gt; On Thu, 2009-12-03 at 00:33 +0000, sebb wrote:
&gt;&gt;  &gt; &gt;  &gt; If possible, I'd suggest creating an RCn tag. If the vote passes,
it
&gt;&gt;  &gt; &gt;  &gt; can be copied/renamed to the final tag. That allows the tag to be
&gt;&gt;  &gt; &gt;  &gt; immutable.
&gt;&gt;  &gt; &gt;  &gt;
&gt;&gt;  &gt; &gt;
&gt;&gt;  &gt; &gt;
&gt;&gt;  &gt; &gt; The trouble is that tagging a release of a maven project involves more
&gt;&gt;  &gt; &gt;  than creating a SVN tag.
&gt;&gt;  &gt; &gt;
&gt;&gt;  &gt;
&gt;&gt;  &gt; Depends how much you allow Maven to do; there are certainly Commons
&gt;&gt;  &gt; projects that are released this way, for example Pool.
&gt;&gt;  &gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; This is not a matter of how much Maven is allowed to do. The problem is
&gt;&gt;  that by moving the tag you will end up with a mismatch between the tag
&gt;&gt;  name and the POM metadata.
&gt;&gt;
&gt; 
&gt; Commons Pool uses M2 but still uses RC tags so there must be a way to
&gt; do it without causing an incorrect POM.
&gt; 

There is a way but it involves more than just copying a SVN tag

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Called off Re: [VOTE] HttpComponents Client 4.0.1 release</title>
<author><name>sebb &lt;sebbaz@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c25aac9fc0912041649u282b4bd0v2ceab50e17cc7bff@mail.gmail.com%3e"/>
<id>urn:uuid:%3c25aac9fc0912041649u282b4bd0v2ceab50e17cc7bff@mail-gmail-com%3e</id>
<updated>2009-12-05T00:49:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 04/12/2009, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt; On Fri, 2009-12-04 at 00:34 +0000, sebb wrote:
&gt;  &gt; On 03/12/2009, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt;  &gt; &gt; On Thu, 2009-12-03 at 00:33 +0000, sebb wrote:
&gt;  &gt; &gt;  &gt; If possible, I'd suggest creating an RCn tag. If the vote passes, it
&gt;  &gt; &gt;  &gt; can be copied/renamed to the final tag. That allows the tag to be
&gt;  &gt; &gt;  &gt; immutable.
&gt;  &gt; &gt;  &gt;
&gt;  &gt; &gt;
&gt;  &gt; &gt;
&gt;  &gt; &gt; The trouble is that tagging a release of a maven project involves more
&gt;  &gt; &gt;  than creating a SVN tag.
&gt;  &gt; &gt;
&gt;  &gt;
&gt;  &gt; Depends how much you allow Maven to do; there are certainly Commons
&gt;  &gt; projects that are released this way, for example Pool.
&gt;  &gt;
&gt;
&gt;
&gt; This is not a matter of how much Maven is allowed to do. The problem is
&gt;  that by moving the tag you will end up with a mismatch between the tag
&gt;  name and the POM metadata.
&gt;

Commons Pool uses M2 but still uses RC tags so there must be a way to
do it without causing an incorrect POM.

&gt;  Oleg
&gt;
&gt;
&gt;
&gt;
&gt;  &gt; &gt;  Oleg
&gt;  &gt; &gt;
&gt;  &gt; &gt;
&gt;  &gt; &gt;
&gt;  &gt; &gt;  ---------------------------------------------------------------------
&gt;  &gt; &gt;  To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt;  &gt; &gt;  For additional commands, e-mail: dev-help@hc.apache.org
&gt;  &gt; &gt;
&gt;  &gt; &gt;
&gt;  &gt;
&gt;  &gt; ---------------------------------------------------------------------
&gt;  &gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt;  &gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt;  &gt;
&gt;
&gt;
&gt;
&gt;  ---------------------------------------------------------------------
&gt;  To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt;  For additional commands, e-mail: dev-help@hc.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Reopened: (HTTPCLIENT-862) Extend the client's redirect handling interface to allow control of the content of the redirect</title>
<author><name>&quot;Ben Perkins (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c795389189.1259962760856.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c795389189-1259962760856-JavaMail-jira@brutus%3e</id>
<updated>2009-12-04T21:39:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ben Perkins reopened HTTPCLIENT-862:
------------------------------------


Oleg,

I finally got a chance to test the new RedirectStrategy interface.  It does give me the flexibility
I need, but there's an implementation issue relating to entity enclosing methods like PUT
and POST.

In DefaultRequestDirector.handleResponse (currently line 1008), the code does this:

            RequestWrapper wrapper = new RequestWrapper(redirect);
            wrapper.setParams(params);

But in HttpRequestExecutor.doSendRequest (currently line 213), the code has this check:

        if (request instanceof HttpEntityEnclosingRequest) {

Because a RequestWrapper is not an HttpEntityEnclosingRequest, we'll never enter this on a
redirect.  And if we don't enter this, we'll never emit the entity body.  This means that
even though I can use the new interfaces to cause the client to follow a POST redirect with
a POST, I can't get the payload to be sent when the redirect is followed.  

It appears that if handleResponse created an EntityEnclosingRequestWrapper when the redirect
object is a PUT or POST, it would solve this problem.

Thoughts?

Thanks again.
Ben

&gt; Extend the client's redirect handling interface to allow control of the content of the
redirect
&gt; -----------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-862
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-862
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Improvement
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Beta 2
&gt;            Reporter: Ben Perkins
&gt;             Fix For: 4.1 Alpha1
&gt;
&gt;
&gt; The existing RedirectHandler interface provides the ability influence which situations
cause redirects, but gives you no control over the content of the redirect itself.  For example,
if you want the client follow the redirect of a POST request with a POST request to the new
location, you can't do it.  DefaultRequestDirector decides what method will be used on the
redirect request and as of the most recent patch, it's always either a HEAD or a GET.
&gt; One option for resolving this might be extending the RedirectHandler interface to be
a factory for creating the redirect request object.  The the DefaultRequestDirector could
then be changed to ask the RedirectHandler to create the appropriate request for the situation.
&gt; Thanks,
&gt; Ben

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [VOTE] HttpComponents Client 4.1-alpha1 release</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c4B18E763.3060605@apache.org%3e"/>
<id>urn:uuid:%3c4B18E763-3060605@apache-org%3e</id>
<updated>2009-12-04T10:41:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
[x] +1 Release the packages as HttpComponents Client 4.1-alpha1.

Oleg Kalnichevski wrote:
&gt; Please vote on releasing these packages as HttpComponents Client 
&gt; 4.1-alpha1. The vote is open for at least 72 hours, and only votes from
&gt; HttpComponents PMC members are binding. The vote passes if at least
&gt; three binding +1 votes are cast and there are more +1 than -1 votes.
&gt; 
&gt; Packages:
&gt; http://people.apache.org/~olegk/httpclient-4.1-alpha1/
&gt; 
&gt; Release notes:
&gt; http://people.apache.org/~olegk/httpclient-4.1-alpha1/RELEASE_NOTES.txt
&gt; 
&gt; SVN tag:
&gt; http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.1-alpha1/
&gt; 
&gt; --------------------------------------------------------------------------
&gt;  Vote:  HttpComponents Client 4.1-alpha1 release
&gt;  [ ] +1 Release the packages as HttpComponents Client 4.1-alpha1.
&gt;  [ ] -1 I am against releasing the packages (must include a reason).
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt; 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[VOTE] HttpComponents Client 4.1-alpha1 release</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c4B18E72A.4070701@apache.org%3e"/>
<id>urn:uuid:%3c4B18E72A-4070701@apache-org%3e</id>
<updated>2009-12-04T10:40:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Please vote on releasing these packages as HttpComponents Client 
4.1-alpha1. The vote is open for at least 72 hours, and only votes from
HttpComponents PMC members are binding. The vote passes if at least
three binding +1 votes are cast and there are more +1 than -1 votes.

Packages:
http://people.apache.org/~olegk/httpclient-4.1-alpha1/

Release notes:
http://people.apache.org/~olegk/httpclient-4.1-alpha1/RELEASE_NOTES.txt

SVN tag:
http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.1-alpha1/

--------------------------------------------------------------------------
  Vote:  HttpComponents Client 4.1-alpha1 release
  [ ] +1 Release the packages as HttpComponents Client 4.1-alpha1.
  [ ] -1 I am against releasing the packages (must include a reason).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Called off Re: [VOTE] HttpComponents Client 4.0.1 release</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1259919705.11874.4.camel@ubuntu%3e"/>
<id>urn:uuid:%3c1259919705-11874-4-camel@ubuntu%3e</id>
<updated>2009-12-04T09:41:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, 2009-12-04 at 00:34 +0000, sebb wrote:
&gt; On 03/12/2009, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt; &gt; On Thu, 2009-12-03 at 00:33 +0000, sebb wrote:
&gt; &gt;  &gt; If possible, I'd suggest creating an RCn tag. If the vote passes, it
&gt; &gt;  &gt; can be copied/renamed to the final tag. That allows the tag to be
&gt; &gt;  &gt; immutable.
&gt; &gt;  &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; The trouble is that tagging a release of a maven project involves more
&gt; &gt;  than creating a SVN tag.
&gt; &gt;
&gt; 
&gt; Depends how much you allow Maven to do; there are certainly Commons
&gt; projects that are released this way, for example Pool.
&gt; 

This is not a matter of how much Maven is allowed to do. The problem is
that by moving the tag you will end up with a mismatch between the tag
name and the POM metadata.

Oleg



&gt; &gt;  Oleg
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;  ---------------------------------------------------------------------
&gt; &gt;  To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt; &gt;  For additional commands, e-mail: dev-help@hc.apache.org
&gt; &gt;
&gt; &gt;
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt; 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [VOTE] HttpComponents Client 4.0.1 release (take 2)</title>
<author><name>sebb &lt;sebbaz@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c25aac9fc0912031637x876fea0w670695ea873bb265@mail.gmail.com%3e"/>
<id>urn:uuid:%3c25aac9fc0912031637x876fea0w670695ea873bb265@mail-gmail-com%3e</id>
<updated>2009-12-04T00:37:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 03/12/2009, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt; Please vote on releasing these packages as HttpComponents Client 4.0.1.

Sorry, I won't be able to check the release until Mon evening at the earliest.

&gt;  The vote is open for at least 72 hours, and only votes from
&gt;  HttpComponents PMC members are binding. The vote passes if at least
&gt;  three binding +1 votes are cast and there are more +1 than -1 votes.
&gt;
&gt;  Packages: http://people.apache.org/~olegk/httpclient-4.0.1/
&gt;
&gt;  Release notes:
&gt;  http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt
&gt;
&gt;  SVN tag:
&gt;  http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/
&gt;
&gt;
&gt;
&gt;  ---------------------------------------------------------------------
&gt;  To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt;  For additional commands, e-mail: dev-help@hc.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Called off Re: [VOTE] HttpComponents Client 4.0.1 release</title>
<author><name>sebb &lt;sebbaz@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c25aac9fc0912031634h794eed80kd315cd30de0b7239@mail.gmail.com%3e"/>
<id>urn:uuid:%3c25aac9fc0912031634h794eed80kd315cd30de0b7239@mail-gmail-com%3e</id>
<updated>2009-12-04T00:34:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 03/12/2009, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt; On Thu, 2009-12-03 at 00:33 +0000, sebb wrote:
&gt;  &gt; If possible, I'd suggest creating an RCn tag. If the vote passes, it
&gt;  &gt; can be copied/renamed to the final tag. That allows the tag to be
&gt;  &gt; immutable.
&gt;  &gt;
&gt;
&gt;
&gt; The trouble is that tagging a release of a maven project involves more
&gt;  than creating a SVN tag.
&gt;

Depends how much you allow Maven to do; there are certainly Commons
projects that are released this way, for example Pool.

&gt;  Oleg
&gt;
&gt;
&gt;
&gt;  ---------------------------------------------------------------------
&gt;  To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt;  For additional commands, e-mail: dev-help@hc.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [VOTE] HttpComponents Client 4.0.1 release (take 2)</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1259881116.8429.3.camel@ubuntu%3e"/>
<id>urn:uuid:%3c1259881116-8429-3-camel@ubuntu%3e</id>
<updated>2009-12-03T22:58:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
+1

Oleg

On Thu, 2009-12-03 at 23:57 +0100, Oleg Kalnichevski wrote:
&gt; Please vote on releasing these packages as HttpComponents Client 4.0.1.
&gt; The vote is open for at least 72 hours, and only votes from
&gt; HttpComponents PMC members are binding. The vote passes if at least
&gt; three binding +1 votes are cast and there are more +1 than -1 votes.
&gt; 
&gt; Packages: http://people.apache.org/~olegk/httpclient-4.0.1/
&gt; 
&gt; Release notes:
&gt; http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt
&gt; 
&gt; SVN tag:
&gt; http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/
&gt; 
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt; 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[VOTE] HttpComponents Client 4.0.1 release (take 2)</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1259881033.8429.2.camel@ubuntu%3e"/>
<id>urn:uuid:%3c1259881033-8429-2-camel@ubuntu%3e</id>
<updated>2009-12-03T22:57:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Please vote on releasing these packages as HttpComponents Client 4.0.1.
The vote is open for at least 72 hours, and only votes from
HttpComponents PMC members are binding. The vote passes if at least
three binding +1 votes are cast and there are more +1 than -1 votes.

Packages: http://people.apache.org/~olegk/httpclient-4.0.1/

Release notes:
http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt

SVN tag:
http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Issue Comment Edited: (HTTPCLIENT-896) CLONE -Parsing expires</title>
<author><name>&quot;Fuad Efendi (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c862620628.1259858241645.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c862620628-1259858241645-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T16:37:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12785384#action_12785384
] 

Fuad Efendi edited comment on HTTPCLIENT-896 at 12/3/09 4:37 PM:
-----------------------------------------------------------------

The only difference is comma after day of week...

Thank you very much Oleg!

So, it is configurable, nothing to fix.

      was (Author: funtick):
    The only difference is comma after day of week...
  
&gt; CLONE -Parsing expires
&gt; ----------------------
&gt;
&gt;                 Key: HTTPCLIENT-896
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-896
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpCookie
&gt;            Reporter: Fuad Efendi
&gt;
&gt; Seeing this very often:
&gt;  Invalid cookie header: "Set-Cookie: _asid=011e7014f5e7718e02d893335aa5a16e; path=/;
expires=Wed, 16 May 2018 17:13:32 GMT". Unable to parse expires attribute: Wed, 16 May 2018
17:13:32 GMT

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (HTTPCLIENT-896) CLONE -Parsing expires</title>
<author><name>&quot;Fuad Efendi (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1657172122.1259857881949.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1657172122-1259857881949-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T16:31:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12785384#action_12785384
] 

Fuad Efendi commented on HTTPCLIENT-896:
----------------------------------------

The only difference is comma after day of week...

&gt; CLONE -Parsing expires
&gt; ----------------------
&gt;
&gt;                 Key: HTTPCLIENT-896
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-896
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpCookie
&gt;            Reporter: Fuad Efendi
&gt;
&gt; Seeing this very often:
&gt;  Invalid cookie header: "Set-Cookie: _asid=011e7014f5e7718e02d893335aa5a16e; path=/;
expires=Wed, 16 May 2018 17:13:32 GMT". Unable to parse expires attribute: Wed, 16 May 2018
17:13:32 GMT

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Called off Re: [VOTE] HttpComponents Client 4.0.1 release</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1259836123.6894.4.camel@ubuntu%3e"/>
<id>urn:uuid:%3c1259836123-6894-4-camel@ubuntu%3e</id>
<updated>2009-12-03T10:28:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, 2009-12-03 at 00:33 +0000, sebb wrote:
&gt; If possible, I'd suggest creating an RCn tag. If the vote passes, it
&gt; can be copied/renamed to the final tag. That allows the tag to be
&gt; immutable.
&gt; 

The trouble is that tagging a release of a maven project involves more
than creating a SVN tag.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (HTTPCLIENT-896) CLONE -Parsing expires</title>
<author><name>&quot;Oleg Kalnichevski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1925840568.1259831780780.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1925840568-1259831780780-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T09:16:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-896.
------------------------------------------

    Resolution: Won't Fix

The format of the cookie in question is compatible with the Netscape Draft specification only.
The best match cookie policy correctly identifies the cookie as Netscape but parsing of the
'expires' attribute fails because the only date format permitted by the Netscape Draft is
"EEE, dd MMM-yyyy-HH:mm:ss z". In order to make HttpClient accept cookies containing nonstandard
'expires' one should set valid date formats using 'http.protocol.cookie-datepatterns' parameter.
See example:

-----
BasicHttpParams params = new BasicHttpParams();
params.setParameter(CookieSpecPNames.DATE_PATTERNS, 
        Arrays.asList("EEE, dd MMM-yyyy-HH:mm:ss z", "EEE, dd MMM yyyy HH:mm:ss z"));
BestMatchSpecFactory factory = new BestMatchSpecFactory();
CookieSpec cookiespec = factory.newInstance(params);
BasicHeader header = new BasicHeader("Set-Cookie", 
        "asid=011e7014f5e7718e02d893335aa5a16e; path=/; " +
        "expires=Wed, 16 May 2018 17:13:32 GMT");
CookieOrigin origin = new CookieOrigin("localhost", 80, "/", false);
List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
System.out.println(cookies);
-----

I guess the policy was made stricter sometime post 4.0-beta1

Hope this clarifies the situation somewhat

Oleg

&gt; CLONE -Parsing expires
&gt; ----------------------
&gt;
&gt;                 Key: HTTPCLIENT-896
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-896
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpCookie
&gt;            Reporter: Fuad Efendi
&gt;
&gt; Seeing this very often:
&gt;  Invalid cookie header: "Set-Cookie: _asid=011e7014f5e7718e02d893335aa5a16e; path=/;
expires=Wed, 16 May 2018 17:13:32 GMT". Unable to parse expires attribute: Wed, 16 May 2018
17:13:32 GMT

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (HTTPCLIENT-896) CLONE -Parsing expires</title>
<author><name>&quot;Fuad Efendi (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1091352711.1259806761737.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1091352711-1259806761737-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T02:19:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12785148#action_12785148
] 

Fuad Efendi commented on HTTPCLIENT-896:
----------------------------------------

I still see this problem in version 4.0 (loaded by Maven from Maven repository).

And I don't see this problem with version 4.0-beta3-SNAPSHOT (loaded by Maven from Apache
repository).


09/12/02 21:01:31 WARN protocol.ResponseProcessCookies: Invalid cookie header: "Set-cookie:
session-id-time=1260345600l; path=/; domain=.amazon.com; expires=Wed
 Dec 09 08:00:00 2009 GMT". Unable to parse expires attribute: Wed Dec 09 08:00:00 2009 GMT
09/12/02 21:01:31 WARN protocol.ResponseProcessCookies: Invalid cookie header: "Set-cookie:
session-id=192-5799048-2819311; path=/; domain=.amazon.com; expires=
Wed Dec 09 08:00:00 2009 GMT". Unable to parse expires attribute: Wed Dec 09 08:00:00 2009
GMT



&gt; CLONE -Parsing expires
&gt; ----------------------
&gt;
&gt;                 Key: HTTPCLIENT-896
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-896
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpCookie
&gt;            Reporter: Fuad Efendi
&gt;
&gt; Seeing this very often:
&gt;  Invalid cookie header: "Set-Cookie: _asid=011e7014f5e7718e02d893335aa5a16e; path=/;
expires=Wed, 16 May 2018 17:13:32 GMT". Unable to parse expires attribute: Wed, 16 May 2018
17:13:32 GMT

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (HTTPCLIENT-896) CLONE -Parsing expires</title>
<author><name>&quot;Fuad Efendi (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c883747335.1259806640768.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c883747335-1259806640768-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T02:17:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
CLONE -Parsing expires
----------------------

                 Key: HTTPCLIENT-896
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-896
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpCookie
            Reporter: Fuad Efendi


Seeing this very often:

 Invalid cookie header: "Set-Cookie: _asid=011e7014f5e7718e02d893335aa5a16e; path=/; expires=Wed,
16 May 2018 17:13:32 GMT". Unable to parse expires attribute: Wed, 16 May 2018 17:13:32 GMT

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Called off Re: [VOTE] HttpComponents Client 4.0.1 release</title>
<author><name>sebb &lt;sebbaz@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c25aac9fc0912021633t352392bdv5772276519423c9f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c25aac9fc0912021633t352392bdv5772276519423c9f@mail-gmail-com%3e</id>
<updated>2009-12-03T00:33:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If possible, I'd suggest creating an RCn tag. If the vote passes, it
can be copied/renamed to the final tag. That allows the tag to be
immutable.

On 02/12/2009, Oleg Kalnichevski &lt;olegk@apache.org&gt; wrote:
&gt; Release vote called off. I screwed up while building release packages.
&gt;  Too tired right now.
&gt;
&gt;  Oleg
&gt;
&gt;  On Wed, 2009-12-02 at 23:03 +0100, Oleg Kalnichevski wrote:
&gt;  &gt; Please vote on releasing these packages as HttpComponents Client 4.0.1. The vote
is open for at least
&gt;  &gt; 72 hours, and only votes from HttpComponents PMC members are binding. The vote
passes if at least
&gt;  &gt; three binding +1 votes are cast and there are more +1 than -1 votes.
&gt;  &gt;
&gt;  &gt; Packages:
&gt;  &gt; http://people.apache.org/~olegk/httpclient-4.0.1/
&gt;  &gt;
&gt;  &gt; Release notes:
&gt;  &gt; http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt
&gt;  &gt;
&gt;  &gt; SVN tag:
&gt;  &gt; http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/
&gt;  &gt;
&gt;  &gt; --------------------------------------------------------------------------
&gt;  &gt;  Vote:  HttpComponents Client 4.0.1 release
&gt;  &gt;  [ ] +1 Release the packages as HttpComponents Client 4.0.1.
&gt;  &gt;  [ ] -1 I am against releasing the packages (must include a reason).
&gt;  &gt;
&gt;  &gt;
&gt;  &gt; ---------------------------------------------------------------------
&gt;  &gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt;  &gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt;  &gt;
&gt;
&gt;
&gt;
&gt;  ---------------------------------------------------------------------
&gt;  To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt;  For additional commands, e-mail: dev-help@hc.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Called off Re: [VOTE] HttpComponents Client 4.0.1 release</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1259791903.4540.13.camel@ubuntu%3e"/>
<id>urn:uuid:%3c1259791903-4540-13-camel@ubuntu%3e</id>
<updated>2009-12-02T22:11:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Release vote called off. I screwed up while building release packages.
Too tired right now. 

Oleg

On Wed, 2009-12-02 at 23:03 +0100, Oleg Kalnichevski wrote:
&gt; Please vote on releasing these packages as HttpComponents Client 4.0.1. The vote is open
for at least 
&gt; 72 hours, and only votes from HttpComponents PMC members are binding. The vote passes
if at least 
&gt; three binding +1 votes are cast and there are more +1 than -1 votes.
&gt; 
&gt; Packages:
&gt; http://people.apache.org/~olegk/httpclient-4.0.1/
&gt; 
&gt; Release notes:
&gt; http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt
&gt; 
&gt; SVN tag:
&gt; http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/
&gt; 
&gt; --------------------------------------------------------------------------
&gt;  Vote:  HttpComponents Client 4.0.1 release
&gt;  [ ] +1 Release the packages as HttpComponents Client 4.0.1.
&gt;  [ ] -1 I am against releasing the packages (must include a reason). 
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
&gt; For additional commands, e-mail: dev-help@hc.apache.org
&gt; 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[VOTE] HttpComponents Client 4.0.1 release</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1259791391.4540.2.camel@ubuntu%3e"/>
<id>urn:uuid:%3c1259791391-4540-2-camel@ubuntu%3e</id>
<updated>2009-12-02T22:03:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Please vote on releasing these packages as HttpComponents Client 4.0.1. The vote is open for
at least 
72 hours, and only votes from HttpComponents PMC members are binding. The vote passes if at
least 
three binding +1 votes are cast and there are more +1 than -1 votes.

Packages:
http://people.apache.org/~olegk/httpclient-4.0.1/

Release notes:
http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt

SVN tag:
http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/

--------------------------------------------------------------------------
 Vote:  HttpComponents Client 4.0.1 release
 [ ] +1 Release the packages as HttpComponents Client 4.0.1.
 [ ] -1 I am against releasing the packages (must include a reason). 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (HTTPCLIENT-895) Log creation impairs performance</title>
<author><name>&quot;Oleg Kalnichevski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1493587270.1259698640647.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1493587270-1259698640647-JavaMail-jira@brutus%3e</id>
<updated>2009-12-01T20:17:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-895.
------------------------------------------

    Resolution: Fixed

Fixed in SVN trunk and 4.0.x branch. Please review / test

Oleg



&gt; Log creation impairs performance
&gt; --------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-895
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-895
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Improvement
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Final
&gt;            Reporter: Tony Poppleton
&gt;             Fix For: 4.0.1, 4.1 Alpha1
&gt;
&gt;         Attachments: HTTPCLIENT-895.patch
&gt;
&gt;
&gt; Running JProfiler on a program that uses HttpClient with a ThreadSafeClientConnManager,
revealed that 5% of the time was spent constructing Log instances in class ClientParamsStack.
&gt; Oleg did some further investigation and found that DefaultRequestDirector also has the
same problem.
&gt; A simple solution would be to make the Log a static member variable, and do this on all
classes for consistency.  However this might not be the best solution for interoperating with
some frameworks (see http://wiki.apache.org/jakarta-commons/Logging/StaticLog)
&gt; Another solution would be to simply remove the Log from the affected classes, although
they are presumably there for a reason...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (HTTPCLIENT-895) Log creation impairs performance</title>
<author><name>&quot;Oleg Kalnichevski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c834277327.1259667440675.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c834277327-1259667440675-JavaMail-jira@brutus%3e</id>
<updated>2009-12-01T11:37:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski updated HTTPCLIENT-895:
-----------------------------------------

         Priority: Major  (was: Minor)
    Fix Version/s: 4.1 Alpha1
                   4.0.1

&gt; Log creation impairs performance
&gt; --------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-895
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-895
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Improvement
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Final
&gt;            Reporter: Tony Poppleton
&gt;             Fix For: 4.0.1, 4.1 Alpha1
&gt;
&gt;         Attachments: HTTPCLIENT-895.patch
&gt;
&gt;
&gt; Running JProfiler on a program that uses HttpClient with a ThreadSafeClientConnManager,
revealed that 5% of the time was spent constructing Log instances in class ClientParamsStack.
&gt; Oleg did some further investigation and found that DefaultRequestDirector also has the
same problem.
&gt; A simple solution would be to make the Log a static member variable, and do this on all
classes for consistency.  However this might not be the best solution for interoperating with
some frameworks (see http://wiki.apache.org/jakarta-commons/Logging/StaticLog)
&gt; Another solution would be to simply remove the Log from the affected classes, although
they are presumably there for a reason...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (HTTPCLIENT-895) Log creation impairs performance</title>
<author><name>&quot;Tony Poppleton (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c379791455.1259629521464.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c379791455-1259629521464-JavaMail-jira@brutus%3e</id>
<updated>2009-12-01T01:05:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12783973#action_12783973
] 

Tony Poppleton commented on HTTPCLIENT-895:
-------------------------------------------

Oops regarding the last comment - I had checked out the 4.0 tag rather than the trunk which
is why the patch didn't apply smoothly...

&gt; Log creation impairs performance
&gt; --------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-895
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-895
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Improvement
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Final
&gt;            Reporter: Tony Poppleton
&gt;            Priority: Minor
&gt;         Attachments: HTTPCLIENT-895.patch
&gt;
&gt;
&gt; Running JProfiler on a program that uses HttpClient with a ThreadSafeClientConnManager,
revealed that 5% of the time was spent constructing Log instances in class ClientParamsStack.
&gt; Oleg did some further investigation and found that DefaultRequestDirector also has the
same problem.
&gt; A simple solution would be to make the Log a static member variable, and do this on all
classes for consistency.  However this might not be the best solution for interoperating with
some frameworks (see http://wiki.apache.org/jakarta-commons/Logging/StaticLog)
&gt; Another solution would be to simply remove the Log from the affected classes, although
they are presumably there for a reason...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (HTTPCLIENT-895) Log creation impairs performance</title>
<author><name>&quot;Tony Poppleton (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200912.mbox/%3c1355971510.1259627540861.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1355971510-1259627540861-JavaMail-jira@brutus%3e</id>
<updated>2009-12-01T00:32:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12783964#action_12783964
] 

Tony Poppleton commented on HTTPCLIENT-895:
-------------------------------------------

The patch is for DefaultRequestDirector.java (revision 885491) and fails to apply properly
(needs manual fixing) as the revision I just got from SVN is 885603.  Please advise.

When I ran my manually patched version there was a performance improvement on a small number
of benchmarks I ran (I am seeing upto 10% improvement in my threads dealing with responses).

&gt; Log creation impairs performance
&gt; --------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-895
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-895
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Improvement
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Final
&gt;            Reporter: Tony Poppleton
&gt;            Priority: Minor
&gt;         Attachments: HTTPCLIENT-895.patch
&gt;
&gt;
&gt; Running JProfiler on a program that uses HttpClient with a ThreadSafeClientConnManager,
revealed that 5% of the time was spent constructing Log instances in class ClientParamsStack.
&gt; Oleg did some further investigation and found that DefaultRequestDirector also has the
same problem.
&gt; A simple solution would be to make the Log a static member variable, and do this on all
classes for consistency.  However this might not be the best solution for interoperating with
some frameworks (see http://wiki.apache.org/jakarta-commons/Logging/StaticLog)
&gt; Another solution would be to simply remove the Log from the affected classes, although
they are presumably there for a reason...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (HTTPCLIENT-895) Log creation impairs performance</title>
<author><name>&quot;Oleg Kalnichevski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200911.mbox/%3c1089198875.1259619080914.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1089198875-1259619080914-JavaMail-jira@brutus%3e</id>
<updated>2009-11-30T22:11:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12783874#action_12783874
] 

Oleg Kalnichevski commented on HTTPCLIENT-895:
----------------------------------------------

I do not think that reverting back to using static logs would be such a good idea. We just
need to make sure that no Log object lookups take place on critical execution paths. That
is, there no Log objects should be created on a per request basis. Objects created in the
course of request execution should be reusing Log object of the HttpClient instance.

Oleg

&gt; Log creation impairs performance
&gt; --------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-895
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-895
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Improvement
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Final
&gt;            Reporter: Tony Poppleton
&gt;            Priority: Minor
&gt;         Attachments: HTTPCLIENT-895.patch
&gt;
&gt;
&gt; Running JProfiler on a program that uses HttpClient with a ThreadSafeClientConnManager,
revealed that 5% of the time was spent constructing Log instances in class ClientParamsStack.
&gt; Oleg did some further investigation and found that DefaultRequestDirector also has the
same problem.
&gt; A simple solution would be to make the Log a static member variable, and do this on all
classes for consistency.  However this might not be the best solution for interoperating with
some frameworks (see http://wiki.apache.org/jakarta-commons/Logging/StaticLog)
&gt; Another solution would be to simply remove the Log from the affected classes, although
they are presumably there for a reason...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (HTTPCLIENT-895) Log creation impairs performance</title>
<author><name>&quot;Oleg Kalnichevski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200911.mbox/%3c695831000.1259617160673.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c695831000-1259617160673-JavaMail-jira@brutus%3e</id>
<updated>2009-11-30T21:39:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski updated HTTPCLIENT-895:
-----------------------------------------

    Attachment: HTTPCLIENT-895.patch

Tony,

Could you please test the patch? You will need the latest SVN snapshot to apply it.

Oleg

&gt; Log creation impairs performance
&gt; --------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-895
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-895
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Improvement
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Final
&gt;            Reporter: Tony Poppleton
&gt;            Priority: Minor
&gt;         Attachments: HTTPCLIENT-895.patch
&gt;
&gt;
&gt; Running JProfiler on a program that uses HttpClient with a ThreadSafeClientConnManager,
revealed that 5% of the time was spent constructing Log instances in class ClientParamsStack.
&gt; Oleg did some further investigation and found that DefaultRequestDirector also has the
same problem.
&gt; A simple solution would be to make the Log a static member variable, and do this on all
classes for consistency.  However this might not be the best solution for interoperating with
some frameworks (see http://wiki.apache.org/jakarta-commons/Logging/StaticLog)
&gt; Another solution would be to simply remove the Log from the affected classes, although
they are presumably there for a reason...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (HTTPCLIENT-895) Log creation impairs performance</title>
<author><name>&quot;Tony Poppleton (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200911.mbox/%3c1812163450.1259614100650.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1812163450-1259614100650-JavaMail-jira@brutus%3e</id>
<updated>2009-11-30T20:48:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12783838#action_12783838
] 

Tony Poppleton commented on HTTPCLIENT-895:
-------------------------------------------

The second solution would also mean that there is a risk this bug might resurface in the future,
either in the same class or in another part of the library by the introduction of a Log. 
So the "static" solution would be better in this respect.

&gt; Log creation impairs performance
&gt; --------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-895
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-895
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Improvement
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Final
&gt;            Reporter: Tony Poppleton
&gt;            Priority: Minor
&gt;
&gt; Running JProfiler on a program that uses HttpClient with a ThreadSafeClientConnManager,
revealed that 5% of the time was spent constructing Log instances in class ClientParamsStack.
&gt; Oleg did some further investigation and found that DefaultRequestDirector also has the
same problem.
&gt; A simple solution would be to make the Log a static member variable, and do this on all
classes for consistency.  However this might not be the best solution for interoperating with
some frameworks (see http://wiki.apache.org/jakarta-commons/Logging/StaticLog)
&gt; Another solution would be to simply remove the Log from the affected classes, although
they are presumably there for a reason...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (HTTPCLIENT-895) Log creation impairs performance</title>
<author><name>&quot;Tony Poppleton (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200911.mbox/%3c289666923.1259613860631.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c289666923-1259613860631-JavaMail-jira@brutus%3e</id>
<updated>2009-11-30T20:44:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Log creation impairs performance
--------------------------------

                 Key: HTTPCLIENT-895
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-895
             Project: HttpComponents HttpClient
          Issue Type: Improvement
          Components: HttpClient
    Affects Versions: 4.0 Final
            Reporter: Tony Poppleton
            Priority: Minor


Running JProfiler on a program that uses HttpClient with a ThreadSafeClientConnManager, revealed
that 5% of the time was spent constructing Log instances in class ClientParamsStack.

Oleg did some further investigation and found that DefaultRequestDirector also has the same
problem.

A simple solution would be to make the Log a static member variable, and do this on all classes
for consistency.  However this might not be the best solution for interoperating with some
frameworks (see http://wiki.apache.org/jakarta-commons/Logging/StaticLog)

Another solution would be to simply remove the Log from the affected classes, although they
are presumably there for a reason...


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>=?utf-8?q?=5BJakarta-httpclient_Wiki=5D_Update_of_=22HttpClientPowered=22?= =?utf-8?q?_by_mendelson?=</title>
<author><name>Apache Wiki &lt;wikidiffs@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200911.mbox/%3c20091130162702.19353.37210@eos.apache.org%3e"/>
<id>urn:uuid:%3c20091130162702-19353-37210@eos-apache-org%3e</id>
<updated>2009-11-30T16:27:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-httpclient Wiki" for change
notification.

The "HttpClientPowered" page has been changed by mendelson.
http://wiki.apache.org/jakarta-httpclient/HttpClientPowered?action=diff&amp;rev1=29&amp;rev2=30

--------------------------------------------------

  [[http://sourceforge.net/projects/hippojump|Hippojump]]
      Hippojump is an open-source project that hosts a Eclipse RCP-based news/data aggregator
that captures different data sources such as RSS, XML, HTML, web services and allows the user
to set keywords filter on the data and also set the delivery mode of the data, such as browser,
email, SMS, etc. 
  
- [[http://www.mendelson-e-c.com/products_mec_as2.php|m-e-c as2]]
+ [[http://opensource.mendelson-e-c.com/|mendelson opensource AS2]]
-     m-e-c as2 is an open source [[http://en.wikipedia.org/wiki/Electronic_Data_Interchange|EDI]]INT
[[http://en.wikipedia.org/wiki/AS2|AS2]] implemenation. It contains a comfortable logging-
and configuration GUI that helps you managing your transactions. It supports asynchronous
and synchronous MDN, digital signatures, encryption, SSL.
+     mendelson open source AS2 is a free EDIINT [[http://en.wikipedia.org/wiki/AS2|AS2]]
implemenation. It contains a comfortable logging- and configuration GUI that helps you managing
your transactions. It supports asynchronous and synchronous MDN, digital signatures, encryption,
SSL.
  
  [[http://www.restlet.org|Restlet]]
      Restlet, a lightweight REST framework for Java, natively supports the Jakarta Commons
HTTP Client. It is available as a pluggable alternative to our other HTTP client connector
based on JDK's HttpURLConnection. It adds an abstraction layer over Jakarta HTTP Client and
allow Restlet applications to transparently switch between several implementations without
modifying a single line of code.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[HttpClient] HttpClient 4.0.1 / 4.1-alpha1 preview packages</title>
<author><name>Oleg Kalnichevski &lt;olegk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200911.mbox/%3c4B0EF75A.6050906@apache.org%3e"/>
<id>urn:uuid:%3c4B0EF75A-6050906@apache-org%3e</id>
<updated>2009-11-26T21:47:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Folks

Please do try to find a few minutes to review the pre-release packages 
and release notes. If no one complains until Sunday I will assume 
everything is all right and will proceed with building the official 
release packages.


HttpClient 4.0.1
================
Release notes:
http://people.apache.org/~olegk/httpclient-4.0.1/RELEASE_NOTES.txt

Preview packages:
http://people.apache.org/~olegk/httpclient-4.0.1/

HttpClient 4.1 ALPHA1
================
Release notes:
http://people.apache.org/~olegk/httpclient-4.1-alpha1/RELEASE_NOTES.txt

Preview packages:
http://people.apache.org/~olegk/httpclient-4.1-alpha1/

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (HTTPCLIENT-884) Charset omitted from UrlEncodedFormEntity Content-Type header</title>
<author><name>&quot;Jared Jacobs (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/hc-dev/200911.mbox/%3c1283983215.1259253639572.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1283983215-1259253639572-JavaMail-jira@brutus%3e</id>
<updated>2009-11-26T16:40:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jared Jacobs closed HTTPCLIENT-884.
-----------------------------------


Fix looks good. I noticed that this issue was omitted from the release notes. Only HTTPCLIENT-885
was mentioned. I believe this issue is more serious than HTTPCLIENT-885 because the library
uses the faulty code to send all url-form-encoded entities, whereas the faulty code in HTTPCLIENT-885
is not used internally by the library at all.

&gt; Charset omitted from UrlEncodedFormEntity Content-Type header
&gt; -------------------------------------------------------------
&gt;
&gt;                 Key: HTTPCLIENT-884
&gt;                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-884
&gt;             Project: HttpComponents HttpClient
&gt;          Issue Type: Bug
&gt;          Components: HttpClient
&gt;    Affects Versions: 4.0 Final
&gt;         Environment: all
&gt;            Reporter: Jared Jacobs
&gt;            Priority: Minor
&gt;             Fix For: 4.0.1, 4.1 Alpha1
&gt;
&gt;   Original Estimate: 1h
&gt;  Remaining Estimate: 1h
&gt;
&gt; UrlEncodedFormEntity sets the Content-Type header to:
&gt;    "application/x-www-form-urlencoded"
&gt; It should set the header to:
&gt;    "application/x-www-form-urlencoded; charset=" + charset
&gt; As a result, content can be misinterpreted by the recipient (e.g. if the entity content
includes multibyte Unicode characters encoded with the "UTF-8" charset).
&gt; For a correct example of specifying the charset in the Content-Type header, see StringEntity.java.
&gt; Here's the fix:
&gt;     public UrlEncodedFormEntity (
&gt;         final List &lt;? extends NameValuePair&gt; parameters, 
&gt;         final String encoding) throws UnsupportedEncodingException {
&gt;         super(URLEncodedUtils.format(parameters, encoding),  encoding);
&gt; -        setContentType(URLEncodedUtils.CONTENT_TYPE);
&gt; +        setContentType(URLEncodedUtils.CONTENT_TYPE + HTTP.CHARSET_PARAM +
&gt; +            (encoding != null ? encoding : HTTP.DEFAULT_CONTENT_CHARSET));
&gt;     }
&gt;     public UrlEncodedFormEntity (
&gt;         final List &lt;? extends NameValuePair&gt; parameters) throws UnsupportedEncodingException
{
&gt; -        super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET), 
&gt; -            HTTP.DEFAULT_CONTENT_CHARSET);
&gt; -        setContentType(URLEncodedUtils.CONTENT_TYPE);
&gt; +        this(parameters, HTTP.DEFAULT_CONTENT_CHARSET);
&gt;     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org



</pre>
</div>
</content>
</entry>
</feed>
