You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps does it take to reproduce the issue?
When using this Native AP
If the user already has the role, the error message reads "{"status":"ERROR","message":"User already has this role for this dataset"}% instead of "collection"
When does this issue occur?
When a user already has the role type in question
Which page(s) does it occurs on?
What happens?
To whom does it occur (all users, curators, superusers)?
superuser, curators, anyone with permission to run this script on a collection level
What did you expect to happen?
correct error message: "User already has this role" remove "datasets" and no need to mention dataverse or collection
Which version of Dataverse are you using?
most recent
Any related open or closed issues to this bug report?
NO
Screenshots:
The text was updated successfully, but these errors were encountered:
sbarbosadataverse
changed the title
Collection Level "Assign role" API error message should specify: User already has this role, and not include "dataset" (which is the bug)
Collection Level "Assign role" API error message should specify: User already has this role, and not include "dataset" (which is incorrect)
Jan 27, 2025
As @sbarbosadataverse said, the easiest fix is to shorten the message to "User already has this role". One thing to note however, is that in the test above we are assigning a group rather than a user to a role. So "User or group already has this role" is a bit more accurate. We could also vary the messages, of course ("Group already has this role on this file" or whatever), but perhaps that's overkill. We could even simply say "Role has already been granted." 🤷
What steps does it take to reproduce the issue?
When using this Native AP
If the user already has the role, the error message reads "{"status":"ERROR","message":"User already has this role for this dataset"}% instead of "collection"
When does this issue occur?
When a user already has the role type in question
Which page(s) does it occurs on?
What happens?
To whom does it occur (all users, curators, superusers)?
superuser, curators, anyone with permission to run this script on a collection level
What did you expect to happen?
correct error message: "User already has this role" remove "datasets" and no need to mention dataverse or collection
Which version of Dataverse are you using?
most recent
Any related open or closed issues to this bug report?
NO
Screenshots:
The text was updated successfully, but these errors were encountered: