I have solved it: ProxyPass on its own does not re-write 302 (non-permanent redirect). A matching ProxyPassReverse setting has to be used.
We never hit this before because previous versions did not use redirects, just straight 200s with response content.
Hope this helps anyone else.
Justin.
From: Justin Rowles (C)
Sent: 18 November 2010 15:25
To: Justin Rowles (C); ‘geonetwork-devel@lists.sourceforge.net’
Subject: RE: Forward to localhost:8080?
This appears to be a change so that the POST request to user.login no longer gets a 200 + content response, but instead a 302 response (non-permanent redirect), and the content of that redirect is not compatible with a proxy.
Does that ring a bell to anyone?
(All my prior testing was on localhost:8080, so I didn’t see this problem till doing a practice run for go-live!)
Justin.
From: Justin Rowles (C)
Sent: 18 November 2010 14:13
To: geonetwork-devel@lists.sourceforge.net
Subject: Forward to localhost:8080?
Hi all,
I am testing 2.6.1 for release and hitting a very strange effect that doesn’t happen with 2.6.0.
I am using the Jetty container fronted by Apache on port 80 with a ProxyPass for /geonetwork to localhost:8080/geonetwork.
If I start the 2.6.0 server everything is fine.
Stop the 2.6.0 server and start the 2.6.1 server (pointing at the same database – config.xml is identical apart from the uploadDir and the additional SQL Server block).
The front page is returned correctly, but the log in button forwards to “http://localhost:8080/geonetwork/…”.
Stop the 2.6.1 server and restart the 2.6.0 (then restart Apache) and everything is fine again.
I cannot imagine what the problem might be. Any suggestions?
Justin.
This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.
Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice.
Thank you for your cooperation.
Ordnance Survey
Romsey Road
Southampton SO16 4GU
Tel: 08456 050505
http://www.ordnancesurvey.co.uk