Issue Type: Bug Bug
Affects Versions: 2.2.5
Assignee: Andrea Aime
Components: WFS
Created: 27/Jun/13 3:18 AM
Description:

Trying to use a remote WFS server i don't control for cascading it with my geoserver instance, i realized the WFS client within geoserver doesn't handle HTTP 302 redirections.

For some reason the remote server's (unfortunately key-in-service-url+user+password protected, otherwise it'd be much simpler to help debugging) get capabilities returns an http:// url for getFeature url, but the http:// url is redirected on the server to https:// via a 302 redirect.

Instead of following the 302 redirect, geoserver tries to parse the response sent by the remote server, and fails :

2013-06-27 10:01:35,964 ERROR [xml.sax] - FATAL The element type "hr" must be terminated by the matching end-tag "</hr>".

response captured via tcpdump:

HTTP/1.1 302 Moved Temporarily
Server: nginx/0.8.55
Date: Thu, 27 Jun 2013 08:03:03 GMT
Content-Type: text/html
Content-Length: 161
Connection: keep-alive
Location: https://wxs.ign.fr/<my-anonymized-service-key>/geoportail/wfs?request=GetFeature/&SERVICE=WFS&VERSION=1.0.0&BBOX=-8.150299629788703%2C39.124194803263876%2C12.244005506376501%2C52.17441128079787&TYPENAME=BDTOPO_BDD_FXX_RGF93G%3Atroncon_voie_ferree
Expires: Thu, 18 Jul 2013 08:03:03 GMT
Cache-Control: max-age=1814400

<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx/0.8.55</center>
</body>
</html>

Project: GeoServer
Priority: Major Major
Reporter: Landry Breuil
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to