MapGuide Open Source:  Home |  Download |  Internals

Ticket #363 (closed defect: fixed)

Opened 9 months ago

Last modified 8 months ago

Expected MgInvalidArgumentException is not thrown in MgFeatureQueryOptions::AddFeatureProperty() when adding an empty property name.

Reported by: jessicacao Assigned to: Tom Fukushima
Priority: medium Milestone: 2.0
Component: General Version:
Severity: major Keywords: MgFeatureQueryOptions::AddFeatureProperty
Cc: Trevor Wekel External ID: 985087

Description

Expected MgInvalidArgumentException? is not thrown in MgFeatureQueryOptions::AddFeatureProperty?() when adding an empty property name.

Step to recur:

1. Construct a MgFeatureQueryOptions? object.

2. Call AddFeatureProperty?() with an empty string as argument.

Sample code:

MgFeatureQueryOptions? featQueryOpt = new MgFeatureQueryOptions?();

//MgInvalidArgumentException expected.

featQueryOpt.AddFeatureProperty?("");

Expect result: MgInvalidArgumentException?

Actual result: No exception thrown

Change History

01/09/08 15:47:43 changed by trevorwekel

  • status changed from new to closed.
  • resolution set to fixed.

Patch submitted by Jessica Cao

http://trac.osgeo.org/mapguide/changeset/2697