-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
Cannot create role with :
in name
#1480
Comments
Thanks for opening this issue!
|
:
in text:
in name
Does the server allow a Lines 131 to 135 in e2bd6be
I remember the other SDKs having similar code when I was adding Role to the Swift SDK:
|
It doesn't allow it, trying to set an invalid key as a role name simply results in the name being unset, which causes |
Could you elaborate on this? |
Yes, the following code:
rejects on the server side with "Error: name is required" Where it should reject on the client side with "invalid role name" |
Got it, so the solution will still deny roles names with colon. |
New Issue Checklist
Issue Description
When creating a new role, using
:
in the string prevents "name" from being set. I am not sure why this is.Steps to reproduce
await new Parse.Role(
Test:Test, new Parse.ACL()).save(null, {useMasterKey: true});
Actual Outcome
Error: name is required.
Expected Outcome
Role to save
Environment
Server
FILL_THIS_OUT
FILL_THIS_OUT
FILL_THIS_OUT
Database
FILL_THIS_OUT
FILL_THIS_OUT
FILL_THIS_OUT
Client
FILL_THIS_OUT
Logs
The text was updated successfully, but these errors were encountered: