IQSS / IQSS/dataverse-frontend

Odd combination of 404 error and "Add Data" button with only Dataset Creator role on a collection

Open
#953 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
31
Forks
26
Avg merge
4d 13h
Merged PRs (30d)
4

Description

@sbarbosadataverse @scolapasta and I talked about this in the context of troubleshooting a problem for CAFE (ticket, googe group thread, Slack thread 1, Slack thread 2).

To troubleshoot, I asked for the Dataset Creator role on an unpublished collection. Here's how it looks in the SPA:

Image

This is actually much better than JSF which doesn't give you a button to add a dataset.

However, the combination of a 404 error and working buttons "Add Data" buttons makes for a strange user experience.

A workaround it to also give the read-only "Member" role to the user. However, this will, of course, let the user see the contents of the collection, which may not be desired.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the SPA view with only the Dataset Creator role on an unpublished collection, then trace the source of the 404 and the conditions that show the Add Data buttons. Compare the result with the Member-role workaround and the JSF behavior. Done means the collection view presents consistent access feedback without exposing restricted collection contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.