IQSS / IQSS/dataverse

Custom Roles: Cannot edit an existing custom role, either says it exists if default lang or cannot save null if lang bundle and not defined.

Open
#8,008 1 comment 0 reactions 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

While testing a change to roles, found some weird behavior when I tried to edit the name of a custom role or add a description after it was created:

  1. if languages are defined, eg. fr, en, and the bundles do not contain permission.role.not.created.alias.already.exists in the bundle file, then it throws a null exception.
  2. if default en language bundle, then throws exception that role already exists. I believe rather than updating it is trying to add new and detects itself, so fails to write.

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-editing behavior described for the default English bundle and for defined language bundles such as fr and en. Trace the existing custom-role edit flow and the permission.role.not.created.alias.already.exists bundle lookup. Done means changing a role name or adding a description saves successfully without a duplicate-role or null exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authorization, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.