You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a difference when you add an ACL to a class object from the Parse dashboard and when you add the ACL from cloud code (locally hosted).
In both cases, I am removing public read access and granting read access to the "Administrator" role and the owning user (in this case user id: 7sT0tCqA25).
From the Parse Dashboard, I see this added to my object:
Interesting, because neither of those formats is how it actually goes in the database. ACLs are split in to 2 columns, _rperm and _wperm, one for read permissions, and one for write permissions. Older objects (>1 yr old) have an even older ACL format... take a look at transform.js and also spec/ParseACL.spec.js to see what is implemented and how it is tested.
Thanks. Although it seems that the Dashboard is looking for the "_acl" entry. Even when I added the _wperm entry, I still get the wrong ACL on the Dashboard.
Perhaps, since this is an 1+ year old app, my Dashboard has an internal config setting to look at "_acl" instead of the newer format?
It may be that the dashboard expects Parse to write the ACL both ways, and so the dashboard depends on the _acl field. Are you experiencing a failure in ACL security, i.e. can you test that write permissions are failing?
Is there any way to support the newer _wperm and _rperm structure when viewing ACL on the Dashboard or would we have to hack it to also output the "_acl" entry?
I got the same problem here. When I change the ACL in parse-server, only _rperm and _wperm are changed, _acl will keep the old value. Parse.com dashboard will show the old value, and Parse Server Dashboard will show the updated ACL _rperm and _wperm. But the problem is when I update the ACL in parse.com, _rperm and _wperm will be overwritten to the old value.
Is this behavior expected?
_acl will be deprecated after migrate to parse-server?
Activity
gfosco commentedon Feb 2, 2016
Interesting, because neither of those formats is how it actually goes in the database. ACLs are split in to 2 columns,
_rpermand_wperm, one for read permissions, and one for write permissions. Older objects (>1 yr old) have an even older ACL format... take a look attransform.jsand alsospec/ParseACL.spec.jsto see what is implemented and how it is tested.mtalma commentedon Feb 2, 2016
Ok just did the comparison again. I am seeing
_rpermand_wperm. Here are the two full objects:Setting permissions on Dashboard:
Through cloud code:
gfosco commentedon Feb 2, 2016
Ah, one of the recent changes around
nullbehaviors may have interacted here... Looks like the _wperm entry is missed.[-]Setting ACL on Class Objects[/-][+]Empty write permissions ACL issue[/+]mtalma commentedon Feb 2, 2016
Thanks. Although it seems that the Dashboard is looking for the "_acl" entry. Even when I added the _wperm entry, I still get the wrong ACL on the Dashboard.
Perhaps, since this is an 1+ year old app, my Dashboard has an internal config setting to look at "_acl" instead of the newer format?
gfosco commentedon Feb 2, 2016
It may be that the dashboard expects Parse to write the ACL both ways, and so the dashboard depends on the _acl field. Are you experiencing a failure in ACL security, i.e. can you test that write permissions are failing?
mtalma commentedon Feb 3, 2016
All ParseACL test passed:
Is there any way to support the newer _wperm and _rperm structure when viewing ACL on the Dashboard or would we have to hack it to also output the "_acl" entry?
Merge pull request parse-community#171 from sahanh/patch-1
gfosco commentedon Feb 20, 2016
Just wanted to alert @drew-gross of this because of dashboard work.
[-]Empty write permissions ACL issue[/-][+]Parse.com dashboard ACL display[/+]drew-gross commentedon Mar 5, 2016
Hey @mtalma, please try this from the Parse Server Dashboard (https://github.com/ParsePlatform/parse-dashboard) and if you have issues, open an issue on the repository.
carmenlau commentedon Mar 21, 2016
I got the same problem here. When I change the ACL in parse-server, only
_rpermand_wpermare changed,_aclwill keep the old value. Parse.com dashboard will show the old value, and Parse Server Dashboard will show the updated ACL_rpermand_wperm. But the problem is when I update the ACL in parse.com,_rpermand_wpermwill be overwritten to the old value.Is this behavior expected?
_aclwill be deprecated after migrate to parse-server?Thanks!:)