[mapguide-internals] GETIDENTITYPROPERTIES for classes without identity properties

Bruce Dechant bruce.dechant at autodesk.com
Mon Jul 12 12:13:55 EDT 2010


Jackie,

That looks like a bug :)

I agree that the response should not be a MgClassNotFoundException in the case where the class really does exist.

Can you please create a trac ticket for this?

Thanks,
Bruce

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Monday, July 12, 2010 1:02 AM
To: mapguide-internals at lists.osgeo.org
Subject: [mapguide-internals] GETIDENTITYPROPERTIES for classes without identity properties


Hi All,

I think something is wrong with the GETIDENTITYPROPERTIES mapagent call. If
I call the command feeding it a class that has no identity properties, the
server will throw MgClassNotFoundException.

Now looking at the server-side code, I see that it is calling an internal
MgFeatureService API that returns a collection of MgClassDefinition objects,
whose name matches the given class name and has identity properties. If the
actual class definition has no identity properties, it won't be included in
the resulting collection even if the class name matches.

I think this is sending the wrong message to client applications. The class
*does* exist, it just doesn't have identity properties. As such I believe
the API should be returning an empty <PropertyDefinitions/> XML response
instead of throwing an exception.

Thoughts?

- Jackie
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GETIDENTITYPROPERTIES-for-classes-without-identity-properties-tp5281842p5281842.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list