You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The following proxy configuration parameters set in axis2.xml should work when added to axis2_blocking_client.xml in blocking scenarios. (<call blocking="true">)
Setting these parameters under org.apache.axis2.transport.http.CommonsHTTPTransportSender configuration doesn't work. They are being taken in as system parameters. Check [1] for more details.
As a solution, we can include code to read the above parameter values from the axis2_blocking_client.xml to method [2]. Also when validating nonProxyHosts, [3] should be modified to read from the configuration in addition to system properties. And [4] should be modified to reflect this logic of reading above parameters when checking if proxy is enabled.
Description:
The following proxy configuration parameters set in axis2.xml should work when added to axis2_blocking_client.xml in blocking scenarios. (<call blocking="true">)
<parameter locked="false" name="http.proxyHost">localhost</parameter>
<parameter locked="false" name="http.proxyPort">8080</parameter>
<parameter locked="false" name="http.nonProxyHosts">example.com</parameter>
Setting these parameters under org.apache.axis2.transport.http.CommonsHTTPTransportSender configuration doesn't work. They are being taken in as system parameters. Check [1] for more details.
As a solution, we can include code to read the above parameter values from the axis2_blocking_client.xml to method [2]. Also when validating nonProxyHosts, [3] should be modified to read from the configuration in addition to system properties. And [4] should be modified to reflect this logic of reading above parameters when checking if proxy is enabled.
[1] https://wso2.org/jira/browse/DOCUMENTATION-6914
[2] https://github.com/wso2/wso2-axis2/blob/master/modules/transport/http/src/org/apache/axis2/transport/http/util/HTTPProxyConfigurationUtil.java#L84
[3] https://github.com/wso2/wso2-axis2/blob/master/modules/transport/http/src/org/apache/axis2/transport/http/util/HTTPProxyConfigurationUtil.java#L277
[4] https://github.com/wso2/wso2-axis2/blob/master/modules/transport/http/src/org/apache/axis2/transport/http/util/HTTPProxyConfigurationUtil.java#L241
The text was updated successfully, but these errors were encountered: