Opened 15 years ago

Closed 15 years ago

#177 closed defect (fixed)

Proxy authentication not working with WxS harvesting

Reported by: dwyera Owned by: simonp
Priority: minor Milestone:
Component: General Version: v2.4.2
Keywords: Cc: andrew.dwyer@…

Description

GeoNetwork 2.4.2 doesn't use the user supplied proxy credentials for WxS harvesting. GeoNetwork is sending it's requests through the specified proxy but doesn't appear to be supplying the credentials.

This bug was identified using both Tomcat 6 and Jetty running on Windows Server 2003.

I have reported this bug on the user forums. http://n2.nabble.com/Proxy-authentication-with-W-S-harvesting-SEC-UNCLASSIFIED-td3936188.html

Attachments (1)

proxy_auth.diff (2.3 KB ) - added by dwyera 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by simonp, 15 years ago

Owner: changed from geonetwork-devel@… to simonp

Hi Andrew,

Try applying the changes in svn commit 5588 - sometimes the credentials were not actually being used.

Cheers, Simon

in reply to:  1 comment:2 by dwyera, 15 years ago

Replying to simonp:

Hi Simon,

I tried your change but found one small problem. GeoNetwork now sends the proxy credentials but attempts to use NTLM authentication (because the proxy I'm using supports it) and fails with an exception. The problem is that according to the apache documentation, some changes need to be made to the code to support NTLM, I.e. the use of the UsernamePasswordCredentials class needs to be replaced with NTCredentials.

The way I've fixed the problem for my version is to instruct HttpClient not to use NTLM, which means the client should fall back to Basic or Digest authentication. The alternative would be to replace UsernamePasswordCredentials with NTCredentials.

I've attached my changes in a diff file.

Thanks for your help

Andrew

by dwyera, 15 years ago

Attachment: proxy_auth.diff added

comment:3 by simonp, 15 years ago

Thanks Andrew! I'll commit this in early January as I haven't had a chance to test it fully.

comment:4 by simonp, 15 years ago

Resolution: fixed
Status: newclosed

Applied in svn rev 5861

Note: See TracTickets for help on using tickets.