[Geoserver-devel] [jira] (GEOS-5167) Metadata URL in WMS 1.3.0 capabilities is wrong host is localhost

Michael Romero created BugGEOS-5167
Metadata URL in WMS 1.3.0 capabilities is wrong host is localhost

Issue Type:

BugBug

Affects Versions:

2.2.x

Assignee:

Andrea Aime

Attachments:

metadataUrlPatch.diff

Components:

WMS

Created:

13/Jun/12 5:24 PM

Description:

There are two issues with the URL in the capabilities document if localhost is in the metadata URL for a layer. (1) The KVP query is chopped off and (2) if the URL path points somewhere different than the path of the Proxy Base URL then the URL is wrong. I attached a patch that addresses both issues.

Here is an example:

Proxy Base URL:
https://example.com/geoserver

Metadata URL (layer):
http://localhost:8080/metdata?key1=value1&key2=value2

Metadata URL (capabilities):
https://example.com/geoserver/metadata

Should Be:
https://example.com/metadata?key1=value1&key2=value2

Project:

GeoServer

Priority:

MinorMinor

Reporter:

Michael Romero

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)

Justin Deoliveira reopened BugGEOS-5167
Metadata URL in WMS 1.3.0 capabilities is wrong host is localhost

Change By:

Justin Deoliveira (12/Jul/12 9:07 AM)

Status:

Resolved Reopened

Resolution:

Fixed

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)