NCEAS / z-test-issues

Test issue imports from redmine
0 stars 0 forks source link

Data Manager throws exception for otherEntity when attributeList is optionally omitted #487

Closed mbjones closed 7 years ago

mbjones commented 7 years ago

Author Name: Duane Costa (Duane Costa) Original Redmine Issue: 5431, https://projects.ecoinformatics.org/ecoinfo/issues/5431 Original Date: 2011-06-27 Original Assignee: Duane Costa


The EML schema (2.x.y) specifies that all data entities be classified as one of six different DatasetType types:

dataTable spatialRaster spatialVector storedProcedure view otherEntity

Of these, only 'otherEntity' is allowed to optionally specify an 'attributeList' element; the other five entity types are required to specify an 'attributeList' element.

The Data Manager Library assumes that all data entities are required to include the 'attributeList' element, throwing an exception whenever it is not specified. The DML should change its behavior in accordance with the EML schema, allowing 'attributeList' to be an optional element when the DatasetType is 'otherEntity'.

mbjones commented 7 years ago

Original Redmine Comment Author Name: Duane Costa (Duane Costa) Original Date: 2011-06-28T21:59:41Z


Fixed with the following update:

Author: costa Date: 2011-06-28 10:15:25 -0700 (Tue, 28 Jun 2011) New Revision: 2198

Modified: trunk/src/org/ecoinformatics/datamanager/DataManager.java trunk/src/org/ecoinformatics/datamanager/parser/Entity.java trunk/src/org/ecoinformatics/datamanager/parser/generic/GenericDataPackageParser.java Log: Fix for Bug 5431 - Data Manager throws exception for otherEntity when attributeList is optionally omitted.

mbjones commented 7 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:30:24Z


Original Bugzilla ID was 5431