If an error happens when creating an App-Schema data store, included data stores are not unregistered correctly.

Description

When creating an App-Schema datastore using a mappings file that includes another file on its "Include" tag like:

1 2 3 4 5 (...) <includedTypes> <Include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">includedTypes.xml</Include> </includedTypes> (...)

and some error occurs on main mapping file data store creation, the included file data store feature types aren't unregistered correctly. So when a new attempt to create the data store with main mapping fixed is done, app-schema data store factory throws an exception because included mappings (includedTypes.xml) store and types weren't unregistered and collides.

Environment

None

Status

Assignee

Fernando Miño

Reporter

Fernando Miño

Triage

None

Components

Fix versions

Priority

Medium
Configure