I am working on a app where I want to share resources with other people. For this, I created a new folder which
is to contain my shared triples in /private/data. I managed to create an .acl file on /private/data/.acl and grant myself and my app, read, write and control access to the data folder and .acl file. When following the URL to the acl I can see that my permissions are there, yet I find myself unable to create new files in the private/data folder. I have tried adding the permission to the .acl file like this: /private/data/object1, but this does not seem to work and keep getting my access denied.
Does any of you have an idea what I am doing wrong?
Yes.
your reference to the container must either be relative to the pod, the folder or with full url.
You should have used :slight_smile @prefix data: </private/data/> or <./> or <yourPod/private/data/>
It is recommended to use <./> to be able to copy/move your folder with acl.
So I got it working this morning, trying to create automatic with the following code, now I do not have the rights to create a document which I was able to create yesterdayâŚ
Does your user have Control access of /private/data? And does your app have Control access in the trustedApps listing? Do you see any error in your browser console?
Also note that you cannot assume that .acl will be the location of the ACL file for the Container. Unfortunately, the method of ACL discovery isnât yet set in stone, and so the Tripledoc API below is still experimental (and hence not listed in the documentation), but youâd do it something like this:
Your trustedApp in your profile should not assign any modes, if it does, they will invalidate the modes in the .acl and will not apply. Basically you tell the .acl to give Control, but then in the trustedApp you have said, donât give it Control. So remove the mode statement from your profile. I am not sure this interaction between the profile trustedApp and the .acl origin statement is in the spec anywhere or if it will remain as is, but for now, thatâs how it appears to work.
It appears you may be right.
I have removed the modes in the trusted app, but now nothing has access to anything trough the app I made.
I get an error â403, Origin unauthorizedâ.
I added the origin to some of the local files, but this does not work and keep getting the 403, origin unautorized.
any ideas?
Edit: I heart there may be a bug in the acl authorization parts, can this be true?