[Geoserver-devel] [jira] Created: (GEOS-720) WMS GetFeatureInfo should work even if the SRS is not specified in the request

WMS GetFeatureInfo should work even if the SRS is not specified in the request
------------------------------------------------------------------------------

                 Key: GEOS-720
                 URL: http://jira.codehaus.org/browse/GEOS-720
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.4.0-M2
            Reporter: Andrea Aime
         Assigned To: Andrea Aime
             Fix For: 1.4.0-M2

With geoserver 1.4.0 trunk and basic.zip configuration, the following request:

http://localhost:8080/geoserver/wms?service=WMS&request=GetFeatureInfo&bbox=-130,24,-66,50&format=image/jpeg&layers=states&styles=&width=550&height=250&query_layers=states&x=170&y=160&info_format=text/plain

returns a service exception:

<?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&quot;&gt;
<ServiceExceptionReport version="1.1.1"> <ServiceException>Argument
&quot;sourceCRS&quot; should not be null.</ServiceException>
</ServiceExceptionReport>

this is because the code assumes SRS is always specified in the source request and triggers an error if it's not.
Since it's not mandatory according to wms 1.1.1, this is a bug.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira