Hi,

when accessing the following endpoint

http://MYHOST/geoserver/rest/imports

we observed several signs of an issue:

1. The GeoServer log shows an IOException starting with:

java.io.IOException: Cannot flush a closed output stream
  at
org.geoserver.filters.GZIPResponseStream.flush(GZIPResponseStream.java:39)
(...)

2. When opening in a browser, the dev-console outputs (sometimes!):

net::ERR_INCOMPLETE_CHUNKED_ENCODING

3. When accessing the URL via curl [1] the output is completely
scrambled, but when removing the "Accept-Encoding" header, the output is
fine.

The tomcat (v8) that serves the GeoServer (v2.12.0) is a default
installation without having compression enabled. Other non-importer REST
endpoints are working fine.

Any clues where this could be fixed are greatly appreciated. We might be
able to provide a PR for this once someone points us to the right direction.

Cheers,
Daniel

[1]:
curl \
  -u USER:PASS \
  -H 'Accept-Encoding: gzip, deflate, br' \
  'http://localhost:9091/geoserver/rest/imports'

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to