[Geoserver-devel] [jira] Created: (GEOS-4740) Trying to update a FeatureTypeInfo to point to a new StoreInfo leads to error

Trying to update a FeatureTypeInfo to point to a new StoreInfo leads to error
-----------------------------------------------------------------------------

                 Key: GEOS-4740
                 URL: https://jira.codehaus.org/browse/GEOS-4740
             Project: GeoServer
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 2.1.1
            Reporter: Milton Jonathan
            Assignee: Justin Deoliveira
         Attachments: geos.update_featuretype.patch

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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira