Opened 20 years ago

Closed 19 years ago

#646 closed defect (fixed)

Mapserver outputs invalid GML if layer name starts with number

Reported by: wbronsema@… Owned by: jmckenna@…
Priority: high Milestone: 4.4 release
Component: WFS Server Version: unspecified
Severity: normal Keywords:
Cc: jmckenna@…

Description

If a layer name starts with a number, the GML output from something like a
getfeature request is invalid GML.

Steps to reproduce:
1) Create a WFS layer called "123_test".
2) Execute a getfeature request and view the GML.
3) Look for tag entries of <123_test>.

No errors occur, but it is against XML specifications to start a tag with a number.

Change History (5)

comment:1 by wbronsema@…, 20 years ago

Cc: morissette@… added

comment:2 by dmorissette, 20 years ago

Component: MapServer CGIWFS Server
Owner: changed from sdlime to mapserverbugs

comment:3 by dmorissette, 20 years ago

Cc: mckenna@… added; morissette@… removed
Milestone: 4.4 release
The following actions should be taken:

1- Document the fact that layer names must start with a letter when setting up a
WMS or WFS server (in the WMS server howto and WFS server howto)

2- Produce a warning in GetCapabilities (both WMS and WFS) if a layer name is
invalid

3- Produce an exception if a GetFeature or GetFeatureInfo is ever performed on a
layer with an invalid name

comment:4 by assefa, 19 years ago

Cc: mapserver-bugs@… added
Owner: changed from mapserverbugs to jmckenna@…
This is similar to bug 486.

Send warning in the capabilities wms/wfs document for "invalid" layer names.

There are also warning in the gml docuemtn for example for invalid xml tags. I 
think it should be enough.

Valid layer names should be mentionned in the wms/wfs docs (layer names should 
not start with a digit or have spaces in them). Reassign to Jeff.

comment:5 by jmckenna@…, 19 years ago

Resolution: fixed
Status: newclosed
wms and wfs server docs now include a warning about this layer name rule.
comitted to cvs.
Note: See TracTickets for help on using tickets.