When creating an image mosaic where the COGs are stored in a folder on S3, the layer is broken. The layer preview shows a black image and the logs contain the error message:
SEVERE [http-nio-8080-exec-6] it.geosolutions.imageioimpl.plugins.cog.S3RangeReader.readHeader Error reading header for ...
Hi,
When creating an image mosaic where the COGs are stored in a folder on S3, the layer is broken. The layer preview shows a black image and the logs contain the error message:
SEVERE [http-nio-8080-exec-6] it.geosolutions.imageioimpl.plugins.cog.S3RangeReader.readHeader Error reading header for ...
The problem is the creation of the GeoTIFF URL which is returned as "https://##BUCKET_NAME##/##OBJECT_ID##", omitting the path section.
Example: Object S3 URI: s3://bucket-name/path/to/object/file1.tiff Created URL: https://bucket-name/file.tiff