Changing the name of a role is not possible
Nobody has claimed this yet.
- 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:
You can change the name (you may see it is misspelled) in the dialog box:
But then you get an error.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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