-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
the batch job result asset download logic currently works with the assumption that the asset key can directly be used as target file name.
While this is currently true for probably most backends, this is just based on a weak suggestion from openEO API:
Dictionary of asset objects for data that can be downloaded, each with a unique key. The keys MAY be used by clients as file names.
and this suggestion might be further weakened when further aligning with vanilla STAC.
Aspects to be taken into account here:
- key contains characters that are generally not filename-friendly
- key contains directory separators (which might break the download, or, worse, form a vector for security issues)
- key doesn't have expected file extension, while href does have a more useful extension (which might annoy users)