Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.1
-
Component/s: Configuration
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
Use case is: trying to update a LayerInfo to point to a new StoreInfo. Internally, the correct procedure seems to be to update the LayerInfo's FeatureTypeInfo resource. However, if you try to do that you'll end up with file path problems because changing the store also changes the path where the 'featuretype.xml' and 'layer.xml' are expected to be.
A patch is provided to fix this in GeoServerPersister.java: it follows the same approach used when updating a given StoreInfo's workspace.
Hi Milton, thanks for the patch, it makes sense. Any chance you could update GEoServerPersisterTest as well and add a quick test case?