HTTP POST returns schemaLocation with wrong server port
-------------------------------------------------------
Key: GEOS-4475
URL: http://jira.codehaus.org/browse/GEOS-4475
Project: GeoServer
Issue Type: Bug
Affects Versions: 2.0.1
Environment: Server: CentOS 5.4 with Apache Tomcat 6.0.26.
Client: Windows XP SP3 with XAMPP 1.6.2 (Apache/2.2.4 (Win32) PHP/5.2.2).
Reporter: João Batista
Assignee: Andrea Aime
Priority: Minor
Attachments: bug_httpPost.php
Sending queries using HTTP POST for a server listening on another port (spec. 8081) produces a XML response which specifies a schemaLocation indicating the correct URL except for the port (indicating :80 instead of the expected :8081).
A PHP example (running on the client machine) is attached; below is the relevant part of the returning HTTP response.
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml
Date: Thu, 07 Apr 2011 11:56:22 GMT
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:GsSoil.Portugal="http://www.mycompany.pt/gssoil" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mycompany.pt/gssoil http://192.168.123.210:80/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=GsSoil.Portugal%3ASoil_Usage_Capacity_Map http://www.opengis.net/wfs http://192.168.123.210:80/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd">
...
....
.....
However, querying a WFS server with the URL
http://192.168.123.210:8081/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=GsSoil.Portugal:Soil_Map&maxFeatures=50
gives the expected port specification in the schemaLocation:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:GsSoil.Portugal="http://www.mycompany.pt/gssoil" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mycompany.pt/gssoil http://192.168.123.210:8081/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=GsSoil.Portugal%3ASoil_Map http://www.opengis.net/wfs http://192.168.123.210:8081/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd">
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira