Bug #57706
closed
When creating a new user, if the 'uid' is not provided, error reported as 'Permission denied'
Added by wang kevin over 1 year ago.
Updated 8 months ago.
Description
When creating a new user, if the 'uid' does not contain an error reporting 'Permission denied', we think it is reasonable to report an error related to parameter errors.
Files
- Assignee set to Ali Maredia
- Subject changed from When creating a new user, if the 'uid' does not contain an error reporting 'Permission denied' to When creating a new user, if the 'uid' is not provided, error reported as 'Permission denied'
On a branch close to the master branch from a vstart cluster when I try this same scenario I see:
[ali@acadia build]$ ./bin/radosgw-admin -c ceph.conf user create --display-name=test3 --access-key=test3 --secret-key=test3
2022-11-09T17:01:21.651-0500 7f60307a89c0 -1 WARNING: all dangerous and experimental features are enabled.
2022-11-09T17:01:21.657-0500 7f60307a89c0 -1 WARNING: all dangerous and experimental features are enabled.
2022-11-09T17:01:21.657-0500 7f60307a89c0 -1 WARNING: all dangerous and experimental features are enabled.
user.init failed: (22) Invalid argument
Having an 'Invalid Argument' instead of a 'Permission Denied' seems closer to feedback that could help whomever is trying to create a user understand the mistake they made.
Providing even more fine grained feedback like: 'uid not present, add --uid={user name}' in the error message could be helpful but would be not trivial to implement.
- Status changed from New to Need More Info
Hi Kevin Wang,
Could I get what version of Ceph this issue occurred on? The issue does seem to be resolved in the main branch but I can look to back port a fix to an older version of Ceph.
- Status changed from Need More Info to Can't reproduce
Also available in: Atom
PDF