Opened 15 years ago

Closed 15 years ago

#838 closed defect (worksforme)

"Coordinate system override" feature fails on MapGuide 1.0.9.15910 with exception

Reported by: danfrias Owned by: ksgeograf
Priority: medium Milestone:
Component: Maestro Version:
Severity: minor Keywords: SupplementalSpatialContextInfo coordinate system override
Cc: External ID:

Description

DESCRIPTION OF THE PROBLEM

When attempting to save a dataconnection after adding a Coordinate System Override (an FDO connection to PostGIS was where this error originally appeared), the following message appears (note the misspelled "retrive" word is how it appears in the error message):

Failed to retrive coordinate info: The remote server returned an error: (559) MgDbXmlException.: An exception occurred in DB XML component.  Error: XML Indexer: Parse error in document at line, 12, char 37. Parser message: Element 'SupplementalSpatialContextInfo' is not valid for content model: '((Name,CordinateSystem),ExtendData1)'
Exception occurred in method MgResourceDefinitionManager.UpdateDocument at line 601 in file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\ResourceDefinitionManager.cpp

SOLUTION

When looking at the XML created through this feature, the following two lines appear where the opening tag for the SupplementalSpatialContextInfo should be:

  <SupplementalSpatialContextInfo />
  <SupplementalSpatialContextInfo>

Deleting the first of these lines (the one ending with the stray forward slash) allows the dataconnection to be saved without an issue. This tag appears to be the source of this problem.

Change History (3)

comment:1 by ksgeograf, 15 years ago

Wow, that looks very odd. Did that invalid xml get created by Maestro?

comment:2 by ksgeograf, 15 years ago

Milestone: 2.2
Version: 2.0.1

comment:3 by ksgeograf, 15 years ago

Resolution: worksforme
Status: newclosed

Closing as I am unable to reproduce, and there has been no feedback for 6 months. If new info arrives, feel free to reopen.

Note: See TracTickets for help on using tickets.