Yervand ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A464ebeca-87da-49b6-a6cb-978355f71f67
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiNDRkZTMwNmIwZWVmNGEyMzlhYzNlODFlN2M4MzZiOTkiLCJwIjoiaiJ9
 ) / Improvement ( 
https://osgeo-org.atlassian.net/browse/GEOS-10951?atlOrigin=eyJpIjoiNDRkZTMwNmIwZWVmNGEyMzlhYzNlODFlN2M4MzZiOTkiLCJwIjoiaiJ9
 ) GEOS-10951 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10951?atlOrigin=eyJpIjoiNDRkZTMwNmIwZWVmNGEyMzlhYzNlODFlN2M4MzZiOTkiLCJwIjoiaiJ9
 ) Support S3 path style access ( 
https://osgeo-org.atlassian.net/browse/GEOS-10951?atlOrigin=eyJpIjoiNDRkZTMwNmIwZWVmNGEyMzlhYzNlODFlN2M4MzZiOTkiLCJwIjoiaiJ9
 )

Issue Type: Improvement Assignee: Unassigned Created: 21/Apr/23 8:02 PM 
Priority: Medium Reporter: Yervand ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A464ebeca-87da-49b6-a6cb-978355f71f67
 )

Currently Geoserver does not support working with COGs stored on S3 like 
storage solutions such as Minio or Ceph. The reason being that S3 path style 
access is impossible to enable.

The underlying issue is that the library that that handles COGs, 
https://github.com/geosolutions-it/imageio-ext , does not have this 
functionality. In GitHub issues there is some talk about implementing this but 
it doesn’t not look like this has any priority 
https://github.com/geosolutions-it/imageio-ext/issues/223.

The fix in Imageio-ext is really easy. In this file: 
https://github.com/geosolutions-it/imageio-ext/blob/6728446fc05e715359a654a5bab9e5d591b22a5f/plugin/cog/cog-rangereader-s3/src/main/java/it/geosolutions/imageioimpl/plugins/cog/S3ClientFactory.java#L24

one method call should be added to the ClientBuilder: forcePathStyle(true). 
This can be enabled and disabled via an environment variable.

If someone from Geoserver or Imageio-ext can confirm that enabling this 
functionality via an env var is okay, and also probably specify the name of the 
variable ot be used, I can contribute the PR.

( 
https://osgeo-org.atlassian.net/browse/GEOS-10951#add-comment?atlOrigin=eyJpIjoiNDRkZTMwNmIwZWVmNGEyMzlhYzNlODFlN2M4MzZiOTkiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10951#add-comment?atlOrigin=eyJpIjoiNDRkZTMwNmIwZWVmNGEyMzlhYzNlODFlN2M4MzZiOTkiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100223- 
sha1:bddbaa2 )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to