Hi list,
when issuing a GetMap request against Geoserver WMS (currently I only have
an old 1.3RC6 running) using an empty SLD_BODY parameter, Geoserver raises
the following exception:
org.xml.sax.SAXParseException: Premature end of file.
Should it not ignore the empty SLD_BODY parameter before passing it to the
XML parser?
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
If you are specifying layers in your request you do not need to include the SLD_BODY parameter.
If the SLD_BODY is empty I think it is appropriate that it throws an error because it then assumes that it is supposed to use the supplied SLD instead, and if it is empty it cannot continue.
Is there a special case where you are trying to use it?
cheers,
Brent Owens
(The Open Planning Project)
Bart van den Eijnden (OSGIS) wrote:
Hi list,
when issuing a GetMap request against Geoserver WMS (currently I only have
an old 1.3RC6 running) using an empty SLD_BODY parameter, Geoserver raises
the following exception:
org.xml.sax.SAXParseException: Premature end of file.
Should it not ignore the empty SLD_BODY parameter before passing it to the
XML parser?
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Well, even if we decide that throwing an error is the proper behavior then it should throw a more informative error message.
But what does the spec say? An empty Style param is supposed to just use the default style I believe, is an empty SLD_BODY supposed to do the same?
Is just using the default style the behavior you're expecting Bart?
Brent Owens wrote:
If you are specifying layers in your request you do not need to include the SLD_BODY parameter.
If the SLD_BODY is empty I think it is appropriate that it throws an error because it then assumes that it is supposed to use the supplied SLD instead, and if it is empty it cannot continue.
Is there a special case where you are trying to use it?
cheers,
Brent Owens
(The Open Planning Project)
Bart van den Eijnden (OSGIS) wrote:
Hi list,
when issuing a GetMap request against Geoserver WMS (currently I only have
an old 1.3RC6 running) using an empty SLD_BODY parameter, Geoserver raises
the following exception:
org.xml.sax.SAXParseException: Premature end of file.
Should it not ignore the empty SLD_BODY parameter before passing it to the
XML parser?
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,45b4e4c145591429667743!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
Hi Brent, Chris,
I believe the spec does not say anything explicit specific about empty parameter values. Mapserver just ignores an empty SLD_BODY.
My expectation would be to just get the default style, or if specified, the style specified in the STYLES parameter.
Best regards,
Bart
Chris Holmes schreef:
Well, even if we decide that throwing an error is the proper behavior then it should throw a more informative error message.
But what does the spec say? An empty Style param is supposed to just use the default style I believe, is an empty SLD_BODY supposed to do the same?
Is just using the default style the behavior you're expecting Bart?
Brent Owens wrote:
If you are specifying layers in your request you do not need to include the SLD_BODY parameter.
If the SLD_BODY is empty I think it is appropriate that it throws an error because it then assumes that it is supposed to use the supplied SLD instead, and if it is empty it cannot continue.
Is there a special case where you are trying to use it?
cheers,
Brent Owens
(The Open Planning Project)
Bart van den Eijnden (OSGIS) wrote:
Hi list,
when issuing a GetMap request against Geoserver WMS (currently I only have
an old 1.3RC6 running) using an empty SLD_BODY parameter, Geoserver raises
the following exception:
org.xml.sax.SAXParseException: Premature end of file.
Should it not ignore the empty SLD_BODY parameter before passing it to the
XML parser?
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,45b4e4c145591429667743!
--
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde@anonymised.com
http://www.osgis.nl