Skip to content

COG S3: image mosaic with objects in folders on S3 not working #300

Description

@mhn17

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions