Closed fernandor777 closed 5 years ago
createNamespacesForPath method is unable to get the proper prefix for the required namespace and passing an empty string.
So having an empty string as prefix, other part of the code replace such empty prefix with an auto generated prefix.
See: https://github.com/geosolutions-it/hale-appschema-plugin/blob/2f9ea047142af8f9a11e153f7b4c3fe8ce6807a8/io/plugins/it.geosolutions.hale.io.appschema/src/it/geosolutions/hale/io/appschema/writer/AppSchemaMappingGenerator.java#L542
This PR fix this bug by getting former prefix from parent group if available.
createNamespacesForPath method is unable to get the proper prefix for the required namespace and passing an empty string.
So having an empty string as prefix, other part of the code replace such empty prefix with an auto generated prefix.
See: https://github.com/geosolutions-it/hale-appschema-plugin/blob/2f9ea047142af8f9a11e153f7b4c3fe8ce6807a8/io/plugins/it.geosolutions.hale.io.appschema/src/it/geosolutions/hale/io/appschema/writer/AppSchemaMappingGenerator.java#L542
This PR fix this bug by getting former prefix from parent group if available.