Summary: | Web Map Context document is invalid | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Bart van den Eijnden <bartvde@osgis.nl> |
Component: | Widget | Assignee: | chameleon-dev <chameleon-dev@lists.maptools.org> |
Status: | CLOSED WONTFIX | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 1.1 | ||
Target Milestone: | 1.99 beta 2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Why not just leave out the wms_style_list parameter in the mapfile?
That's a good point Daniel. This does solve the problem. Although I always think it is unpretty for an application to generate invalid XML. I have changed the resolution to WONTFIX.
Agreed that's not pretty, you may want to file a (low priority) MapServer bug about this specific issue: an empty list is an obvious case that should be handled better. Note that this whole parameter validation issue is a grey area, and there are many other ways to break the XML other than this one. The problem is that if we add too much validation in MapServer to catch all the possible invalid values then we make the code more complex than it needs to be, and eventually end up with something bloated, slow, and harder to maintain. Not an easy choice...
I have created a bug with a low priority in the Mapserver bugzilla for this. Reference is: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=595
Since this is a mapserver issue, I will close this bug and future comment I assume will be tracked under the mapserver bug. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=595
closing bug based on last comment