[Geoserver-devel] [jira] (GEOS-5247) Json[p] WFS and WMS exceptionHandler

carlo cancellieri created ImprovementGEOS-5247
Json[p] WFS and WMS exceptionHandler

Issue Type:

ImprovementImprovement

Affects Versions:

2.2.x

Assignee:

Andrea Aime

Components:

WFS, WMS

Created:

02/Aug/12 4:24 AM

Description:

I’m going to provide exceptions in json format patching:

  • WMSExceptionHandler
  • WFSExceptionHandler

WFS -------- Example ---------

http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group
&outputFormat=text/javascript
&format_options=callback%3AgetLayerFeatures_MY
&EXCEPTIONS=text/javascript

-------- Result ---------

getLayerFeatures_MY({“ExceptionReport”: {
@version”: “1.1.0”,
“Exception”: {
@exceptionCode”: “noApplicableCode”,
@exceptionLocator”: “noLocator”,
“ExceptionText”: “Could not find type: {http://www.openplans.org/topp}group”
}
}})

WFS -------- Example ---------

http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group&outputFormat=text/javascript
&format_options=callback%3AgetLayerFeatures_MY
&EXCEPTIONS=application/json

-------- Result ---------

{“ExceptionReport”: {
@version”: “1.1.0”,
“Exception”: {
@exceptionCode”: “noApplicableCode”,
@exceptionLocator”: “noLocator”,
“ExceptionText”: “Could not find type: {http://www.openplans.org/topp}group”
}
}}

WFS -------- Example ---------

http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group
&outputFormat=text/javascript

-------- Result ---------

<ows:ExceptionReport xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:ows=“http://www.opengis.net/ows” version="1.0.0"xsi:schemaLocation=“http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd”>
<ows:Exception exceptionCode=“NoApplicableCode”>
<ows:ExceptionText>
Could not find type: {http://www.openplans.org/topp}group
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>


Patch incoming

Project:

GeoServer

Priority:

MajorMajor

Reporter:

carlo cancellieri

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)