webknossos icon indicating copy to clipboard operation
webknossos copied to clipboard

Uploading Annotation into dataset should also include overwritingOrganizationName

Open fm3 opened this issue 1 year ago • 0 comments

Uploaded an NML file with no organization name in the NML file, into the dataset view mode

This sends an overwritingDatasetName with the request to steer the NML into the open dataset and not into the dataset that was specified in the NML.

This failed, since the organization id is looked up by only the dataset name (comment says Disambiguation method for legacy URLs and NMLs: if the user has access to multiple datasets of the same name, use the oldest. This is reasonable, because the legacy URL/NML was likely created before this ambiguity became possible).

This resulted in the wrong organization’s dataset of that name. Instead, the frontend should also send an overwritingOrganizationName when uploading into an existing dataset, and the backend should use that.

Corresponding libs issue to always write out an organization name: https://github.com/scalableminds/webknossos-libs/issues/1015

fm3 avatar Mar 12 '24 09:03 fm3