[ 
https://issues.apache.org/jira/browse/RAMPART-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17893289#comment-17893289
 ] 

Robert Lazarski commented on RAMPART-450:
-----------------------------------------

I am pretty sure the root cause is this axis2 issue that will be fixed in Axis2 
2.0.0 - however the next rampart 1.8.0 release will be based off of Axis2 1.8.2 
as requested by the community members who supplied code fixes.

AXIS2-5948 Proxy settings ignored if username not specified

I marked the issue for a fix in Rampart 2.0.0 that will be jakarta ee10 
compliant with Axis2 2.0.0. Most of the work is done so we don't expect a long 
2.0.0 release cycle.  

> Rampart prxoxy settings configuration
> -------------------------------------
>
>                 Key: RAMPART-450
>                 URL: https://issues.apache.org/jira/browse/RAMPART-450
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.7.1
>         Environment: jdk1.8
> rampart-dist-1.7.1
> axis2-1.7.9
>            Reporter: Kottas Alexandros
>            Assignee: Robert Lazarski
>            Priority: Major
>             Fix For: 2.0.0
>
>         Attachments: exampleTicket.java
>
>
> Hi all,
> I am filling up this issue since rampart core does not respect axis2 http 
> proxy configuration in the client. The service has a symmetric policy with 
> requesttokensecurity.
> In client level the configuration is :
> {noformat}
> ...
> // SET PROXY
> HttpTransportProperties.ProxyProperties httpProxy = new 
> HttpTransportProperties.ProxyProperties();
> httpProxy.setProxyName(proxyHost);
> httpProxy.setProxyPort(proxyPort);
> ...
> options.setProperty(org.apache.axis2.transport.http.HTTPConstants.PROXY,httpProxy);
> ...
> {noformat}
> The first call, which is is the STSClient.java in order to obtain the token, 
> does not inherit the proxy settings from axis2 client configuration and it 
> gets a connection time out.
> If we set the global paramater :
> {noformat}
> System.setProperty("http.proxyHost", proxyhost);
> System.setProperty("http.proxyPort", String.valueOf(proxyport));
> System.setProperty("https.proxyHost", proxyhost);
> System.setProperty("https.proxyPort", String.valueOf(proxyport));
> {noformat}
> Everything works as expected. 
>  
> Attached exampleTicket.java with the source code.
> Used the following components:
> rampart-dist-1.7.1
> axis2-1.7.9
>  
> Thank you



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to