Issue Type: Bug Bug
Affects Versions: 2.2.2
Assignee: Andrea Aime
Components: WMS
Created: 15/Jan/13 11:23 PM
Description:

When I make a WMS request that causes an exception the exception is always returned in XML format, regardless of what I specify in the "exceptions" parameter. Eg. if I specify a layer name that doesn't exist:

http://localhost:8080/geoserver/aixm/wms?service=WMS&version=1.1.0&request=GetMap&exceptions=application/vnd.ogc.inimage&layers=badlayer&styles=&srs=EPSG:4326&format=image%2Fpng

The response I get is:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" > <ServiceException code="LayerNotDefined">
Could not find layer aixm:badlayer
</ServiceException></ServiceExceptionReport>

Based on the documentation I expect an image to be returned. The same happens no matter what I try as the "exceptions" value.

Environment: Windows 7 x64, JVM 1.6.0_31
Project: GeoServer
Priority: Major Major
Reporter: Evan Martin
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to