[Geoserver-devel] [jira] (GEOS-6747) Layer preview error for GML3.2

Olle Markljung created an issue

GeoServer / BugGEOS-6747

Layer preview error for GML3.2

Issue Type:

BugBug

Affects Versions:

2.6.0.1, 2.7-beta

Assignee:

Andrea Aime

Components:

Wicket UI

Created:

01/Nov/14 4:51 PM

Environment:

Windows 7, Chrome, GeoServer 2.7-SNAPSHOT, Apache Tomcat/Jetty

Priority:

TrivialTrivial

Reporter:

Olle Markljung

When selecting GML3.2 from the list of available WFS preview formats a missformated URL is created that throws an error.

Selecting GML3.2 for tiger_roads creates the following URL:
http://localhost:8080/geoserver/tiger/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=tiger:tiger_roads&maxFeatures=50&outputFormat=application/gml+xml;%20version=3.2

And this gives the following error:

<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
	<ServiceException code="InvalidParameterValue" locator="outputFormat">
Failed to find response for output format application/gml xml; version=3.2
	</ServiceException>
</ServiceExceptionReport>

So, the error seems to be the + in gml+xml that is not encoded thus transformed by Chrome (or webserver?) into a space.
If the ‘+’ would be encoded as %2B it works as expected.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo