-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
UXAffects usability of the systemAffects usability of the systemzarrIssues with Zarr hosting/processing/etc.Issues with Zarr hosting/processing/etc.
Description
ATM trying to hit /download/ endpoint for an asset with zarr instead of blob would result in 400 Bad Request.
e.g.
- go to sample dandiset with zarr folder: https://dandiarchive.org/dandiset/000719/draft/files?location=sub-1214579789_ses-1214621812_icephys&page=1
- click on a zarr and get to https://api.dandiarchive.org/api/assets/ee648ce0-fda7-44c4-816b-6a80bbcbf850/download/?content_disposition=inline with
400 Bad Request
instead, since this asset ee648ce0-fda7-44c4-816b-6a80bbcbf850 points to zarr id (in this case fd01fe56-9c26-4da3-9c78-e57e85d34033) we already can do two alternatives
- (less preferred) as provided for the current version of dandiset (draft) from webdav: i.e. https://webdav.dandiarchive.org/dandisets/000719/draft/sub-1214579789_ses-1214621812_icephys/sub-1214579789_ses-1214621812_icephys.nwb.zarr/ solely based on the dandiset id, and path within it.
- it does have advantage that folder name corresponds to the zarr asset path, hence possibly could be used by
wgetetc as the name of the folder to download under
- it does have advantage that folder name corresponds to the zarr asset path, hence possibly could be used by
- (IMHO preferred/future proofed) since we already know the checksum for zarr and we rely on zarr checksum for manifest names and webdav hierarchy, redirect to https://webdav.dandiarchive.org/zarrs/fd0/1fe/fd01fe56-9c26-4da3-9c78-e57e85d34033/52d161bf4654abf2b88f28c479066b6e-20609--25837557.zarr/ , which is pretty much
https://webdav.dandiarchive.org/zarrs/{zarr_id[:3]}/{zarr_id[3:6]}/{zarr_id}/{zarr_checksum}.zarr/.- It is more preferred since it likely to remain working without changes upon implementation of versioning support within archive (as being designed within design PR#1892)
- cons is that path of the asset is lost.
attn @jwodder who might see the shortcomings etc.
Metadata
Metadata
Assignees
Labels
UXAffects usability of the systemAffects usability of the systemzarrIssues with Zarr hosting/processing/etc.Issues with Zarr hosting/processing/etc.