[mapguide-trac] #623: Fusion Error When Selecting From Search Results

MapGuide Open Source trac_mapguide at osgeo.org
Wed Jul 9 18:40:21 EDT 2008


#623: Fusion Error When Selecting From Search Results
------------------------+---------------------------------------------------
 Reporter:  poulet1212  |         Owner:        
     Type:  defect      |        Status:  closed
 Priority:  medium      |     Milestone:        
Component:  Fusion      |       Version:  2.0.1 
 Severity:  blocker     |    Resolution:  fixed 
 Keywords:              |   External_id:        
------------------------+---------------------------------------------------
Changes (by poulet1212):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 I Found the problem:

 '''the featureset contained in "selection" parameter is javascript-escaped
 twice.'''

 Looking to the sample above and doing an javascript "unescape" return
 this:


 ''%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3CFeatureSet%20xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%
 2FXMLSchema-
 instance%22%20xsi%3AnoNamespaceSchemaLocation%3D%22FeatureSet-1.0.0.xsd%22%3E%20%3CLayer%20id%3D%
 223cd8a1cc-0000-1000-8002-
 001560c2f391%22%3E%20%20%3CClass%20id%3D%22Default%3APARC%22%3E%20%20%20%3CID%3E1gEAAA%3D%3D%3C%2FID%3E%20%20%3C%2FClass%3E%20%3C%2FLayer%3E%3C%2FFeatureSet%3E
 ''

 Doing once again an unsecape would return this:

 ''
 <?xml version="1.0" encoding="UTF-8"?><FeatureSet
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd"> <Layer id="3cd8a1cc-
 0000-1000-8002-001560c2f391">  <Class id="Default:PARC">
 <ID>1gEAAA==</ID>  </Class> </Layer></FeatureSet>
 ''

 Hacking the params with firebug make the widget work.

 We must figure out where it was escaped twice to solve the problem.


 Rémy

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/623#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list