[Geoserver-devel] [jira] Created: (GEOS-1696) wms reflector does not work with pure remote slds

wms reflector does not work with pure remote slds
-------------------------------------------------

                 Key: GEOS-1696
                 URL: http://jira.codehaus.org/browse/GEOS-1696
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 1.6.0-RC3
            Reporter: Chris Holmes
            Assignee: Arne Kepp
            Priority: Minor
             Fix For: 1.6.1

http://geo.openplans.org:8080/geoserver/wms/reflect?Format=application/kml+xml&sld=http://artois.openplans.org/slds/population.sld no longer works. Or indeed

http://geo.openplans.org:8080/geoserver/wms/reflect?sld=http://artois.openplans.org/slds/population.sld

This is very minor because its a seldom known option, to have the layer defined within the sld.

java.lang.NullPointerException
        at org.geoserver.wms.DefaultWebMapService.autoSetBoundsAndSize(DefaultWebMapService.java:227)
        at org.geoserver.wms.DefaultWebMapService.getMapReflect(DefaultWebMapService.java:165)
        at org.geoserver.wms.DefaultWebMapService.reflect(DefaultWebMapService.java:137)

is the error. Obviously the code's expecting the layer param to be there.

I don't know that it is even worth supporting this option. If it's easy to then sure, if not we should just make a better error message for the reflector.

--
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