[Geoserver-devel] [jira] Created: (GEOS-4190) Non-conformant OnlineResource in WMS GetCapabilities response

Non-conformant OnlineResource in WMS GetCapabilities response
-------------------------------------------------------------

                 Key: GEOS-4190
                 URL: http://jira.codehaus.org/browse/GEOS-4190
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.1-beta1, 2.0.2
         Environment: Linux, default web.xml
            Reporter: Torsten Heinen
            Assignee: Andrea Aime
            Priority: Minor

I notices that with Geoserver 2.0.2 and 2.1-beta1 the WMS
GetCapabilities response contains a strange OnlineResource link, see e.g.
the OpenPlans.org demo server (http://sigma.openplans.org/geoserver/wms?SERVICE=WMS&REQUEST=GetCapabilities):

    <GetCapabilities>
      <Format>application/vnd.ogc.wms_xml</Format>
      <DCPType>
        <HTTP>
          <Get>
            <OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple"
xlink:href="http://sigma.openplans.org:80/geoserver/wms?SERVICE=WMS&amp;&quot;/&gt;
          </Get>
          <Post>
            <OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple"
xlink:href="http://sigma.openplans.org:80/geoserver/wms?SERVICE=WMS&amp;&quot;/&gt;
          </Post>
        </HTTP>
      </DCPType>
    </GetCapabilities>

At least POSTing requests to this url results in errors. Looking at OGC 01-068r3 (p48) it looks like this needs to be "http://sigma.openplans.org:80/geoserver/wms&quot;:

<Capability>
<Request>
<GetCapabilities>
<Format>application/vnd.ogc.wms_xml</Format>
<DCPType>
<HTTP>
<Get>
<!-- The URL here for invoking GetCapabilities using HTTP GET
is only a prefix to which a query string is appended. -->
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xlink:type="simple"
xlink:href="http://hostname:port/path" />
</Get>
<Post>
<!-- The URL here for invoking GetCapabilities using HTTP POST
includes the complete address to which a query would be sent in
XML format. This is here for future expansion; no POST encoding
has yet been defined. -->
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xlink:type="simple"
xlink:href="http://hostname:port/path" />
</Post>
</HTTP>
</DCPType>
</GetCapabilities>

--
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