[Geoserver-devel] [JIRA] (GEOS-7747) JDBCStore stores style configuration files

Torben Barsballe created an issue

GeoServer / BugGEOS-7747

JDBCStore stores style configuration files

Issue Type:

BugBug

Affects Versions:

2.9.1, 2.10-M0

Assignee:

Unassigned

Components:

JDBCStore

Created:

19/Sep/16 8:45 PM

Priority:

MediumMedium

Reporter:

Torben Barsballe

JDBCStore tracks directories via include/exclude. JDBCStore includes the styles/ folder in order to store style (.sld) files and external graphics.

However, the styles/ folder already contains mixed xml configuration (for the StyleInfo objects) and style files. This means that in addition to storeing style files and external graphics (as expected) JDBCStore is also storing style configuration (NOT expected)

In addition, when jdbcconfig (which is intended to often be used alongside jdbcstore) installed and enabled (before enabling jdbcstore), both jdbcstore and jdbcconfig contain a copy of the <style>.xml for all the starting styles. Actuall changes seem to go through jdbcconfig consistently, so jdbcstore is holding invalid data (nothing is using this data, but it is still being stored). If you try to rename a style, this can result in having two differently named styles pointing to the same style file (such that edits to one are reflected in the other). I have only been able to reproduce this behavior when renaming style files included in the original data directory (before the JDBCStore ingest)

This seems problematic.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.319.1#100012-sha1:913341f)

Atlassian logo