IQSS / IQSS/dataverse

Changing the name of a role is not possible

Open
#11,307 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
Java
Stars
1.1k
Forks
564
Avg merge
2d 2h
Merged PRs (30d)
29

Description

Steps to reproduce the issue

User-created dataverse roles can (in theory) be edited (pencil icon on screenshot) on any dataverse or dataset permission edit screen:
Image

You can change the name (you may see it is misspelled) in the dialog box:
Image

But then you get an error.
Image

Which version of Dataverse are you using?

v. 6.1 with some minor modifications, but those do not concern with the role/permission system.

Are you thinking about creating a pull request for this issue?
We may try to address this, but we do not know when we will have the time.

Currently, this can be worked around with a direct SQL query:
UPDATE dataverserole SET name='' WHERE alias = '';

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

Reproduce the role rename through the pencil icon on a dataverse or dataset permission edit screen using Dataverse v6.1, then trace the error from the dialog submission. Identify why changing a user-created role name fails and add coverage for the rename path. Done means the name can be changed through the interface without relying on a direct SQL update.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
authorization, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.