[mapguide-trac] #460: MgFeatureService.GetIdentityProperties returns wrong properties for 2nd class.

MapGuide Open Source trac_mapguide at osgeo.org
Tue Feb 26 11:09:28 EST 2008


#460: MgFeatureService.GetIdentityProperties returns wrong properties for 2nd
class.
-------------------------------+--------------------------------------------
   Reporter:  brucedechant     |       Owner:       
       Type:  defect           |      Status:  new  
   Priority:  medium           |   Milestone:  2.0  
  Component:  Feature Service  |     Version:  2.0.0
   Severity:  minor            |    Keywords:       
External_id:  1052276          |  
-------------------------------+--------------------------------------------
 The identity properties for the 1st class are always returned because of a
 defect in the code.

 This defect is caused by the following lines of code in:

 MgFeatureServiceCache::GetFeatureClassIdentityProperties:

 if (NULL != data.p
 && entry->GetFeatureSchemaName() != featureSchemaName
 && entry->GetFeatureClassName() != featureClassName)

 The fix would be to change the 2nd && to an ||:

 if (NULL != data.p
 &&
 (entry->GetFeatureSchemaName() != featureSchemaName
 || entry->GetFeatureClassName() != featureClassName))

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/460>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list