Bug #46548
mgr/dashboard: Unable to create user with non-ASCII chars using CLI
Status:
Closed
Priority:
Normal
Assignee:
Category:
Component - Users & Roles
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
When I try to create a user with `Umlauts` using dashboard CLI, I see the following error:
# ceph dashboard ac-user-create mööö adminpassword Invalid command: invalid chars ö in mööö dashboard ac-user-create <username> [<password>] [<rolename>] [<name>] [<email>] [--enabled] [--force-password] [<pwd_expiration_date:int>] [--pwd-update-required] : Create a user Error EINVAL: invalid command
But if I use the WebUI, I can create that user:
History
#1 Updated by Lenz Grimmer about 3 years ago
- Assignee set to Tatjana Dehler
#2 Updated by Tatjana Dehler almost 3 years ago
The responsible methods to create users in the dashboard are:
- REST-API: https://github.com/ceph/ceph/blob/master/src/pybind/mgr/dashboard/controllers/user.py#L84 <- String inputs are "normal" strings
- CLI: https://github.com/ceph/ceph/blob/master/src/pybind/mgr/dashboard/services/access_control.py#L706 <- String inputs are CephStrings
The question is now if we should either:
- Disallow the invalid chars for the REST-API (my preference)
- Allow invalid chars for CephStrings
#3 Updated by Tatjana Dehler almost 3 years ago
- Status changed from New to Resolved
- Pull request ID set to 37740
#4 Updated by Ernesto Puerta almost 3 years ago
- Status changed from Resolved to Closed
#5 Updated by Ernesto Puerta over 2 years ago
- Project changed from mgr to Dashboard
- Category changed from 150 to Component - Users & Roles