[
https://issues.apache.org/activemq/browse/AMQ-1514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42592#action_42592
]
j0llyr0g3r edited comment on AMQ-1514 at 5/8/08 7:36 AM:
------------------------------------------------------------
Hey folks,
i believe the applied patch above will NOT work with current proxy-Servers
(tested with squid 2.6.14 running on Ubuntu 7.10)
I think that this is due to the fact that the patch uses a quite dated
authentication method. Connection requests using this method are denied by
squid.
I wrote a patch which uses
org.apache.commons.httpclient.UsernamePasswordCredentials;
and
org.apache.commons.httpclient.auth.AuthScope;
I tested it and it works fine.....
Furthermore i am not sure if the http-connector worked at all, because in AMQ
5.1 i had to add the two libs:
- xstream-1.3.jar
- common-codecs
to the classpath to get it working.
To apply the patch, simply do something like:
cd $unpacked_amq_source
patch -p1 <amq-proxy-cred.patch
For the patch itself -> see the attachment amq-proxy-cred.patch
was (Author: j0llyr0g3r):
Hey folks,
i believe the applied patch above will NOT work with current proxy-Servers
(tested with squid 2.6.14 running on Ubuntu 7.10)
I think that this is due to the fact that the patch uses a quite dated
authentication method. Connection requests using this method are denied by
squid.
I wrote a patch which uses
org.apache.commons.httpclient.UsernamePasswordCredentials;
and
org.apache.commons.httpclient.auth.AuthScope;
I tested it and it works fine.....
Furthermore i am not sure if the http-connector worked at all, because in AMQ
5.1 i had to add the two libs:
- xstream-1.3.jar
- common-codecs
to the classpath to get it working.
To apply the patch, simply do something like:
cd $unpacked_amq_source
patch -p1 <amq-proxy-cred.patch
For the patch itself -> see the attachment.
> patch HTTP connector to support proxy authentication if proxyUsername and
> proxyPassword provided.
> -------------------------------------------------------------------------------------------------
>
> Key: AMQ-1514
> URL: https://issues.apache.org/activemq/browse/AMQ-1514
> Project: ActiveMQ
> Issue Type: Improvement
> Components: Connector
> Affects Versions: 4.1.1
> Environment: windows xp, java 1.5, servicemix 3.1.1 and activemq 4.1.1
> Reporter: Sam Zhou
> Priority: Minor
> Attachments: amq-proxy-cred.patch, HttpClientTransport.java,
> HttpTransportSupport.java
>
>
> Could not find a way to configure an http proxy host/port with user/pass
> authentication.
> I am supplying a patch to allow this to be part of the options specified as
> part of the URI, for example,
> uri="static://(http://myserver:80?proxyHost=my.proxy.com%26proxyPort=80%26proxyUsername=username%26proxyPassword=password)"
> This is an enhancement based on #AMQ-1099.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.