You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Baruah Montoo-CMB035 <mo...@motorola.com> on 2004/06/24 17:32:52 UTC

PROXY: User credentials Not updated in AXIS

Hi,
Does anyone know if there is a bug with proxy authentication code in axis. We are using axis 1.1 in unix env with a Microsoft IS as a proxy server. We have also replaced the transport layer to CommonsHTTPSender instead of HTTPSender. 
When a user tries to send a request for the first time, the code behaves as expected. ie sends 407 for bad pwd and lets through for good password. But somehow if another request is sent with different user credentials, axis layers seems to behave exactly as before. If it let the request through then it will let the other request through too. It seems axis layer is not updating the user credentials. We dumped the user credentials in axis and see that it maintains the old user credentials. We also dumped the system user credentials using System.getProperty("https.proxyPassword") in CommonsHTTPSender code which  has been updated with the correct credentials. I cant figure out where axis updates the credentials. Does anyone know how this works. Where should i be looking for the update code.
 
Here's my debug info:
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: In here now
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: In here now 2
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: getKey = https
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: getValue = class org.apache.axis.components.net.DefaultHTTPSTransportClientProperties
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: In here now 2
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: getKey = http
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: getValue = class org.apache.axis.components.net.DefaultHTTPTransportClientProperties
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: In here now 3
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: In here now 4
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: getKey = https
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: getValue = org.apache.axis.components.net.DefaultHTTPSTransportClientProperties@6335605a
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.TransportClientPropertiesFactory create
INFO: Leaving create()
Jun 22, 2004 6:08:49 PM org.apache.axis.transport.http.CommonsHTTPSender getHostConfiguration
INFO: port = 8443
Jun 22, 2004 6:08:49 PM org.apache.axis.transport.http.CommonsHTTPSender getHostConfiguration
INFO: targetURL.getProtocol = https
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.DefaultHTTPSTransportClientProperties getProxyUser
INFO: return proxyUser = montoo
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.DefaultHTTPSTransportClientProperties getProxyUser
INFO: return proxyUser = montoo
Jun 22, 2004 6:08:49 PM org.apache.axis.transport.http.CommonsHTTPSender getHostConfiguration
INFO: CommonsHTTPSender: tcp.getProxyUser() = montoo
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.DefaultHTTPSTransportClientProperties getProxyPassword
INFO: return proxyPassword = wsnonline
Jun 22, 2004 6:08:49 PM org.apache.axis.transport.http.CommonsHTTPSender getHostConfiguration
INFO: CommonsHTTPSender: tcp.getProxyPassword() = wsnonline
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.DefaultHTTPSTransportClientProperties getProxyUser
INFO: return proxyUser = montoo
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.DefaultHTTPSTransportClientProperties getProxyPassword
INFO: return proxyPassword = wsnonline
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.DefaultHTTPSTransportClientProperties getProxyUser
INFO: return proxyUser = montoo
Jun 22, 2004 6:08:49 PM org.apache.axis.transport.http.CommonsHTTPSender getHostConfiguration
INFO: CommonsHTTPSender: tcp.getProxyUser() = montoo
Jun 22, 2004 6:08:49 PM org.apache.axis.components.net.DefaultHTTPSTransportClientProperties getProxyPassword
INFO: return proxyPassword = wsnonline
Jun 22, 2004 6:08:49 PM org.apache.axis.transport.http.CommonsHTTPSender getHostConfiguration
INFO: CommonsHTTPSender: tcp.getProxyPassword() = wsnonline
Jun 22, 2004 6:08:49 PM org.apache.axis.transport.http.CommonsHTTPSender getHostConfiguration
INFO: SYSTEM INFO system ProxyUser = montoo
Jun 22, 2004 6:08:49 PM org.apache.axis.transport.http.CommonsHTTPSender getHostConfiguration
INFO: System Password = badpassword