Project

General

Profile

Actions

Bug #31141

open

Users can't edit their profile

Added by Adam Winberg over 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When a user tries to edit their profile they get an error message:

Validation failed: Taxonomy has already been taken

This does not happen to every user and it seems to be related to permissions. I, as an admin, can edit any profile without problems.

Looking at the log the the user edit request contains:

"location_ids"=>["3", "3", ""], "default_location_id"=>"", "organization_ids"=>["1", "1", ""],

as compared to when an admin performs the same operation (on the same user):

"location_ids"=>["3", ""], "default_location_id"=>"", "organization_ids"=>["1", ""],

I suspect that the duplicate 'location_ids' and 'organization_ids' are the cause of this error, but why are there duplicate values?


Files

foreman-debug-ETzn0.tar.xz foreman-debug-ETzn0.tar.xz 1.37 MB Adam Winberg, 01/29/2021 01:34 PM
Actions

Also available in: Atom PDF