By doing
permissions.add("{
http://www.alfresco.org/model/content/1.0}cmobject.Collaborator");
//permissions.add(BasicPermissions.WRITE)
my Unit test did work .
But like this I'm putting in a dependency on Alfresco. I thought the point
of using CMIS was to be able to write vendor agnostic code?
Yours,
Nick
On Tue, Dec 4, 2012 at 12:23 PM, Nick Burch <[email protected]> wrote:
> On Tue, 4 Dec 2012, Nick De Graeve wrote:
>
>> In the JUnit test below I create, as administrator, a text file in the
>>> rootfolder and add a write permission to it for the normal user. When I
>>> try
>>> to check out the document as a normal user I get
>>> CmisPermissionDeniedException: Forbidden.
>>>
>>
> I think that a simple write permissions isn't enough. Alfresco has special
> permissions CheckIn, CheckOut and CancelCheckOut. I'd suggest you try
> either granting those, or give your use one of the more general sets of
> permissions (Collaborator or Editor ought to do it)
>
> Nick
>