-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Describe the bug
When I try to reference the same offsets in two different projects, say project A uploaded first then project B I am unable to open up the image in either project.
500: Could not find object with file_name bucket/some.offsets.json [{'did': '067547f3-00ee-5766-a4db-3826506fcb1f', 'urls': ['s3://bucket/some.offsets.json']}, {'did': '0e34608c-273b-51f0-accb-8d82ca5f3e6a', 'urls': ['s3://bucket/some.offsets.json']}]
This is because it's hardcoded to fail if a url has more than one indexd record
To Reproduce
Steps to reproduce the behavior:
- Create an ome-tiff with an offset in a remote bucket
- Do a g3t remote add and push of the tiff and offset in one project (say project A)
- Confirm that image viewer can access it via File tab explorer
- Do a g3t remote add and push of the tiff and offset in a different project (say project B)
- Image viewer cannot access the offsets with the above error
Resolved by deleting all other indexd records for that particular URL.
Expected behavior
Image viewer should find the right indexd file according to "authz".
Current workaround is to delete the indexd record ad-hoc
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- Environment: [eg. Mac]
- Version: [e.g. v0.1.0]
Additional context
Add any other context about the problem here.