geoserver/geoserver-cloud

zip style import: missing support for images formats

danduk82 opened this issue · 3 comments

see attached zip files for testing

rest call:

export GEOSERVER_URL="${GEOSERVER_URL:-http://localhost:8085/geoserver/}"

curl -u admin:geoserver curl -v -u admin:geoserver -POST -H "Content-type: text/xml"  -d "<workspace><name>ag</name></workspace>"  "${GEOSERVER_URL}rest/workspaces"

curl -vf -u admin:geoserver -X POST "${GEOSERVER_URL}rest/workspaces/ag/styles/?name=test_style" \
-H 'Content-Type: application/zip' \
--data-binary '@ch_ag_geo_avk_parkpool_01.zip'

curl -vf -u admin:geoserver -X POST "${GEOSERVER_URL}rest/workspaces/ag/styles/?name=test_style2" \
-H 'Content-Type: application/zip' \
--data-binary '@ch_ag_geo_alg_fledermausquar_02.zip'

2022-09-02 12:48:40.686  WARN 1 --- [nio-8080-exec-6] org.geotools.styling                     : can't parse e0803661-fa71-46c3-9842-84fee3279a8b.bmp as a java resource present in the classpath

ch_ag_geo_alg_fledermausquar_02.zip
ch_ag_geo_avk_parkpool_01.zip

I can confirm the problem with the .bmp image happens in vanilla geoserver too. WIP.

Fix upstream:

JIRA issue https://osgeo-org.atlassian.net/browse/GEOS-10676
Pull request geoserver/geoserver#6204

Integration with gs-cloud:

5ddd394

Fixed.