You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Sebastian Starke <sa...@googlemail.com> on 2012/06/28 18:42:51 UTC

[dotCMIS + SP2010] Cannot add user/group to permission list - what am I doing wrong?

Hi,

after reading about ACL and ACE (
http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html#_Toc243905406
) and checking some openCMIS examples (Access Control -
http://chemistry.apache.org/java/developing/guide.html) im still dont get
it.

Lets try this on a small example:

*OperationContext oc = new OperationContext();*
*oc.IncludeAcls = true;*
*
*
*List<string> permissions = new List<string>();*
*
*
*permissions.Add("cmis:read");*
*string principal = "myadmin";*
*
*
*List<IAce> aceListIn = new List<IAce>();*
*aceListIn.Add(aceIn);*
*
*
*Dictionary<String, Object> f = new D...;*
*f[PropertyIds.ObjectTypeId] = "cmis:folder";*
*f[PropertyIds.Name] = "testfolder";*
*
*
*rootFolder.CreateFolder(f, null, aceListIn, null, oc);*

After running this, the folder is there but no changes on the permission.
Cannot see anywhere "myadmin".
I tried also to use ApplyAcl() with aceListIn but its the same issue. Any
ideas? Thank you

PS: I dont get any exception and yes the user "myadmin" exists ;) Via
browser Im able to add him.

Re: [dotCMIS + SP2010] Cannot add user/group to permission list - what am I doing wrong?

Posted by Florian Müller <fm...@apache.org>.
 Hi,

 You may want to ask this on a SharePoint mailing list or forum.


 Florian


> Hi,
>
> after reading about ACL and ACE (
> 
> http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html#_Toc243905406
> ) and checking some openCMIS examples (Access Control -
> http://chemistry.apache.org/java/developing/guide.html) im still dont 
> get
> it.
>
> Lets try this on a small example:
>
> *OperationContext oc = new OperationContext();*
> *oc.IncludeAcls = true;*
> *
> *
> *List<string> permissions = new List<string>();*
> *
> *
> *permissions.Add("cmis:read");*
> *string principal = "myadmin";*
> *
> *
> *List<IAce> aceListIn = new List<IAce>();*
> *aceListIn.Add(aceIn);*
> *
> *
> *Dictionary<String, Object> f = new D...;*
> *f[PropertyIds.ObjectTypeId] = "cmis:folder";*
> *f[PropertyIds.Name] = "testfolder";*
> *
> *
> *rootFolder.CreateFolder(f, null, aceListIn, null, oc);*
>
> After running this, the folder is there but no changes on the 
> permission.
> Cannot see anywhere "myadmin".
> I tried also to use ApplyAcl() with aceListIn but its the same issue. 
> Any
> ideas? Thank you
>
> PS: I dont get any exception and yes the user "myadmin" exists ;) Via
> browser Im able to add him.