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
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:
- 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.
- 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
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-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