Closed groldan closed 4 months ago
Creating COG layers from the REST API works in 1.5.0 but is broken in 1.7.3 at least.
1.5.0
1.7.3
The store can be created, but when creating the layer:
org.geotools.api.data.DataSourceException: org.geoserver.cloud.autoconfigure.geotools.SpringEnvironmentAwareGeoToolsHttpClientFactory incompatible with HTTP_CLIENT_FACTORY rest-1 | at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:289) ~[gt-geotiff-31.0.jar:na] rest-1 | at org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:335) ~[gt-geotiff-31.0.jar:na] rest-1 | at org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:77) ~[gt-geotiff-31.0.jar:na] rest-1 | at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1689) ~[gs-main-2.25.0-CLOUD.jar:2.25.0-CLOUD] rest-1 | at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1629) ~[gs-main-2.25.0-CLOUD.jar:2.25.0-CLOUD] rest-1 | at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1617) ~[gs-main-2.25.0-CLOUD.jar:2.25.0-CLOUD] rest-1 | at org.geoserver.catalog.CatalogBuilder.buildCoverageByName(CatalogBuilder.java:965) ~[gs-main-2.25.0-CLOUD.jar:2.25.0-CLOUD] rest-1 | at org.geoserver.rest.catalog.CoverageController.handleObjectPost(CoverageController.java:330) ~[gs-restconfig-2.25.0-CLOUD.jar:2.25.0-CLOUD] rest-1 | at org.geoserver.rest.catalog.CoverageController.coveragePost(CoverageController.java:188) ~[gs-restconfig-2.25.0-CLOUD.jar:2.25.0-CLOUD] ...
Something's changed upstream that results in SpringEnvironmentAwareGeoToolsHttpClientFactory incompatible with HTTP_CLIENT_FACTORY.
SpringEnvironmentAwareGeoToolsHttpClientFactory incompatible with HTTP_CLIENT_FACTORY
As a workaround, add the following system property to the geoserver pods: geotools.httpclient.proxy.enabled=false
geotools.httpclient.proxy.enabled=false
Creating COG layers from the REST API works in
1.5.0
but is broken in1.7.3
at least.The store can be created, but when creating the layer:
Something's changed upstream that results in
SpringEnvironmentAwareGeoToolsHttpClientFactory incompatible with HTTP_CLIENT_FACTORY
.As a workaround, add the following system property to the geoserver pods:
geotools.httpclient.proxy.enabled=false