You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When accessing a Layer or a Mag with Layer._ensure_layer() or MagView._ensure_mag() the Dataset.open() method is always used. Even if the given path is a zarr path. This seems to work when the Dataset is public but leads to trouble when it isn't.
Expected Behavior
We should either ensure that Dataset.open() is not used for remote paths or check which kind of path it is and set the according authentication tokens of the webknossos context.
Current Behavior
Dataset.open_remote() currently only matches this pattern for remote paths: http(s)://<webknossos_url>/datasets/<orga_id>/<dataset_name>/view?token=<sharing_token>
Opening a Zarr streaming path does not work with open_remote.
Dataset.open() is able to open zarr streaming paths like: http(s)://<webknossos_url>/data/zarr/<orga_id>/<dataset_name>/... but it does not set the required x-auth-token for accessing not public zarr Datasets.
I think we should discuss which method should be capable of which kind of Dataset and add required assertions to avoid errors. Additionally, we might take a look at all places where UPaths are created from strings and add required authentication tokens etc.
The text was updated successfully, but these errors were encountered:
Context
When accessing a Layer or a Mag with
Layer._ensure_layer()
orMagView._ensure_mag()
theDataset.open()
method is always used. Even if the given path is a zarr path. This seems to work when the Dataset is public but leads to trouble when it isn't.Expected Behavior
We should either ensure that
Dataset.open()
is not used for remote paths or check which kind of path it is and set the according authentication tokens of the webknossos context.Current Behavior
Dataset.open_remote()
currently only matches this pattern for remote paths: http(s)://<webknossos_url>/datasets/<orga_id>/<dataset_name>/view?token=<sharing_token>Opening a Zarr streaming path does not work with open_remote.
Dataset.open()
is able to open zarr streaming paths like: http(s)://<webknossos_url>/data/zarr/<orga_id>/<dataset_name>/... but it does not set the required x-auth-token for accessing not public zarr Datasets.I think we should discuss which method should be capable of which kind of Dataset and add required assertions to avoid errors. Additionally, we might take a look at all places where UPaths are created from strings and add required authentication tokens etc.
The text was updated successfully, but these errors were encountered: