|
Given an app-schema data store whose mapping configuration involves multiple files (i.e. via the <includedTypes> directive), an attempt to delete and create it again via the REST API will throw a DataSourceException: "Duplicate mappingName or targetElement across FeatureTypeMapping instances detected..."
The problem is due to the fact that an hidden DataAccess instance is created for each included mapping file and never disposed of.
Automatic disposal of hidden DataAccesses when they are no longer needed would be desirable.
Related discussion: http://osgeo-org.1560.x6.nabble.com/App-schema-REST-data-access-containing-non-feature-types-is-not-removed-td5223155.html
|