Skip to content

Cover image fails to load on dataset detail page for private datasets #5283

@xuang7

Description

@xuang7

What happened?

On the dataset detail page, the cover image fails to load (broken image icon) when the dataset is private.

Image

The cover image is loaded via <img src="/dataset/{did}/cover">. The backend sees an anonymous request and returns 403 Forbidden for private datasets.

Owners and users with READ access should see the cover image of private datasets on the detail page, the same way they do for public datasets.

How to reproduce?

  1. Log in as any user
  2. Create a new dataset and set dataset visibility to private
  3. Upload an image file into the dataset
  4. Right-click the image in the file tree and set it as the cover
  5. Observe a broken image icon where the cover should be displayed

Branch

main

Commit Hash (Optional)

No response

What browsers are you seeing the problem on?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions