[Geoserver-devel] [JIRA] (GEOS-8625) Enabling CSW in workspace does not work

Joerg Roth created an issue

GeoServer / BugGEOS-8625

Enabling CSW in workspace does not work

Issue Type:

BugBug

Affects Versions:

2.11.5, 2.12.1, 2.12.2, 2.13-beta

Assignee:

Unassigned

Components:

CSW

Created:

08/Mar/18 12:36 PM

Environment:

Linux Ubuntu 16.04 amd64 with tomcat 8.0.32, Geoserver as war.

Priority:

HighHigh

Reporter:

Joerg Roth

If one enables CSW in a workspace (e.g. test) and fills out the form, an almost correct csw.xml will be created in the data/workspace/test/ but with the same <name></name>-tag as the csw.xml in the data-root (e.g. ‘My GeoServer CSW’).

Restarting geoserver throws an error in the log:

Failed to load the service configuration in directory: /var/lib/tomcat8/apps/geoserver-2.11.5/data/workspaces/test with loader for interface org.geoserver.csw.CSWInfo
java.lang.IllegalArgumentException: service with name ‘My GeoServer CSW’ already exists in workspace ‘null’

When one stops tomcat and changes the <name></name>-tag of the workspace-csw.xml to a valid name, geoserver starts, does not complain, but CSW is not enabled in the workspace even when the workspace-csw.xml shows <enabled>true</enabled>.

The csw-getCapabilites-request shows the information of the data-root-csw.xml and the data-root-global.xml in both requests (root 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#100081-sha1:75480ba)

Atlassian logo