-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSFS | NC | Add Limitation to Account Name #7818
Comments
@romayalon I didn't find a matching example for the account's name restriction in our code as we have for the bucket name - in NSFS we use noobaa-core/src/server/system_services/bucket_server.js Lines 1333 to 1339 in d1bf8c4
I tried to search |
@shirady The only limitation I found is in validate_create_account_params() -
I don't mind adding limitations but I can't think of a reason for it to be a must, is there a reason you think it's needed? |
@romayalon I thought that since we use the argv with minimist we don't need this trim, but I checked this and I think we should have it at constraint as well. My suggestions for naming constraints:
I also suggested to have the same constraint as bucket name, so it will be less confusing to remember the differences between them. |
Environment info
Actual behavior
Expected behavior
Steps to reproduce
sudo node src/cmd/manage_nsfs account add --name 0 --new_buckets_path /tmp/nsfs_root1 --uid 1003 --gid 1003
parietal output:
More information - Screenshots / Logs / Other output
noobaa-core/src/util/native_fs_utils.js
Lines 465 to 472 in cada310
The text was updated successfully, but these errors were encountered: