[mapguide-internals] does the featureService setResource method do
full xml validation?
zspitzer
zac.spitzer at gmail.com
Thu May 24 05:52:48 EDT 2007
I have been playing with creating creating some resources with SetResource.
It seems i can pass XML which causes server crashes.
for example not having <VectorScaleRange>.....</VectorScaleRange> in a
layer definition for example throws
An exception occurred in DB XML component. Error: XML Indexer: Parse error
in document at line, 9, char 28. Parser message: Not enough elements to
match content model :
'(ResourceId,Opacity,(FeatureName,FeatureNameType,Filter,PropertyMapping,Geometry,Url,ToolTip,VectorScaleRange),ExtendedData1)'
however having an empty <VectorScaleRange></VectorScaleRange> ie no styling
or scale ranges
will case a runtime error and a console dialog on xp.
the following is listed in the logs
- MgStylizationUtil.StylizeLayers line 923 file
c:\build_bond_area\mapguide_open_source_v1.2\build_13.7\mgdev\server\src\services\mapping\StylizationUtil.cpp
Failed to stylize layer: Datasets_ABORIG_NT
I have also experienced crashes which return a 500 server error with
incorrect xml for resources which were successfully uploaded via SetResource
--
View this message in context: http://www.nabble.com/does-the-featureService-setResource-method-do-full-xml-validation--tf3809086s16610.html#a10780641
Sent from the MapGuide Internals mailing list archive at Nabble.com.
More information about the mapguide-internals
mailing list