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.