[Geoserver-devel] [JIRA] (GEOS-9810) [Backup & Restore] Restore will fail if two workspaces have a store with the same name

Nuno Oliveira created an issue

GeoServer / New FeatureGEOS-9810

[Backup & Restore] Restore will fail if two workspaces have a store with the same name

Issue Type:

New FeatureNew Feature

Affects Versions:

2.18.1

Assignee:

Unassigned

Created:

26/Nov/20 5:37 PM

Priority:

MediumMedium

Reporter:

Nuno Oliveira

To reproduce:

  1. Create two workspaces, and one store whit the same name on each workspace, and publish on layer from each store.
  2. Perform a backup using Backup and Restore.
  3. Restore the backup, the restore will fail with catalog validation error.

If the original workspaces are still around, the GeoServer data directory will be corrupted.

This happens because Backup and Restore always retrieves the resources by name when restoring, this happens here. It should instead retrive them by name and workspace.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100151-sha1:c8fcc1e)

Atlassian logo