geosolutions-it / hale-appschema-plugin

GeoServer App-Schema plug-in for HALE
GNU Lesser General Public License v3.0
2 stars 3 forks source link

Fix empty prefix from property namespace. #5

Closed fernandor777 closed 5 years ago

fernandor777 commented 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.