[Mapguide-trac] [mapguide-trac] #2480: MgReader.GetPropertyIndex() on an invalid property name should return -1

MapGuide Open Source trac_mapguide at osgeo.org
Wed Mar 14 09:59:14 PDT 2018


#2480: MgReader.GetPropertyIndex() on an invalid property name should return -1
---------------------+----------------------
 Reporter:  jng      |        Owner:  jng
     Type:  defect   |       Status:  closed
 Priority:  low      |    Milestone:  3.1.1
Component:  Web API  |      Version:  2.6.0
 Severity:  trivial  |   Resolution:  fixed
 Keywords:           |  External ID:
---------------------+----------------------

Comment (by jng):

 In [changeset:"9370" 9370]:
 {{{
 #!CommitTicketReference repository="" revision="9370"
 Merged revision(s) 9369 from trunk/MgDev:
 Don't throw on bad property name in GetPropertyIndex, just return -1. This
 is the expected contract that other reader types already fulfil. Why
 should MgFeatureReader be an exception?

 Fixes #2480
 ........
 }}}

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


More information about the mapguide-trac mailing list