Ticket #165 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Missing VectorScaleRange in LayerDefinition causes Runtime Exception

Reported by: zspitzer Owned by: waltweltonlair
Priority: medium Milestone: 2.1
Component: Mapping Service Version: 2.0.0
Severity: major Keywords:
Cc: External ID: 939557

Description

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?),ExtendedData?1)'

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

Change History

Changed 5 years ago by zspitzer

I am using the java api on xp btw

Changed 5 years ago by waltweltonlair

Yep, having an empty VectorScaleRange? is allowed, according to the schema. The server needs to gracefully handle this case.

Changed 5 years ago by rexszeto

  • external_id set to 939557

Changed 5 years ago by tomfukushima

  • milestone changed from 1.2 to 1.3

Changed 4 years ago by tomfukushima

  • milestone 2.0 deleted

Changed 4 years ago by waltweltonlair

  • owner set to waltweltonlair

Changed 4 years ago by waltweltonlair

  • status changed from new to closed
  • version changed from 1.2.0 to 2.0.0
  • resolution set to fixed
  • milestone set to 2.1

This was fixed at some point in the 2.0 code stream.

Changed 4 years ago by waltweltonlair

I encountered no problems when testing with a layer definition with an empty VectorScaleRange element.

Note: See TracTickets for help on using tickets.