Hi Justin,
I know that today you want to release a beta but I think I've found a blocking
issue: all service exceptions are being served by the WMS 1.3 exception handler
now.
For example, I make a request with a mis-spelled layer:
http://localhost:8080/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=tiger:gant_polygon&styles=&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers
(giant_polygon -> gant_polygon)
and I get back:
<ServiceExceptionReport version="1.3.0"
xsi:schemaLocation="http://www.opengis.net/ogc
http://localhost:8080/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException code="LayerNotDefined">
Could not find layer tiger:gant_polygon
</ServiceException>
</ServiceExceptionReport>
(with text/xml mime type).
Now, this is not what I'd expect from WMS 1.1, the mime type should be
the odd one
and the version 1.2, and using a different schema location.
Now, I looked a bit i the code and it seems there can be only one
exception handler per
service. WFS in fact has just one that does the right thing based on
the version specified
in the request:
if ("1.0.0".equals(request.getVersion())) {
handle1_0(e, request.getHttpResponse());
} else {
super.handleServiceException(e, request);
}
I guess the WMS one should be modified to follow suit.
Alternatively we should make service exception handlers version
specific, but that would
make for a bigger change
Opinions?
Cheers
Andrea
-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584962313
fax: +39 0584962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-----------------------------------------------------