Images in the JDBC Resource Store cannot be used as an ExternalGraphic

Description

After setting up JDBCStore, I add a graphic to the GeoServer styles directory using

I then create a new style:

If I try to render this style on a layer, I just get grey boxes instead of images. Looking through the debugger, I have traced this issue down to GeoServerDataDirectory line: 1201 . Here, we explicitly convert the resource path into a file path, which causes GeoServer to look in the old data directory (instead of the JDBC Resource Store), which does not contain the image.

Debug stack:

Environment

None

Assignee

Unassigned

Reporter

Torben Barsballe

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure