Skip to content

[Bug] Cannot open file if referenced in multiple projects #9

@quinnwai

Description

@quinnwai

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:

  1. Create an ome-tiff with an offset in a remote bucket
  2. Do a g3t remote add and push of the tiff and offset in one project (say project A)
  3. Confirm that image viewer can access it via File tab explorer
  4. Do a g3t remote add and push of the tiff and offset in a different project (say project B)
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions