Opened 8 years ago

Closed 8 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@…


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.

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by simonp

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

comment:2 in reply to:  1 Changed 8 years ago by dwyera

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


Changed 8 years ago by dwyera

Attachment: proxy_auth.diff added

comment:3 Changed 8 years ago by simonp

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

comment:4 Changed 8 years ago by simonp

Resolution: fixed
Status: newclosed

Applied in svn rev 5861

Note: See TracTickets for help on using tickets.