Topic
1 reply Latest Post - ‏2012-06-19T20:00:39Z by jay.brown
SystemAdmin
SystemAdmin
76 Posts
ACCEPTED ANSWER

Pinned topic [FileNet]: CMIS- Getting folder permissions for current user

‏2012-06-19T08:26:26Z |
Hi,

We are using CMIS to create an application to get folders and upload documents to FileNet. I am trying to get the permissions for each folder. I need to know if the user has the “File in Folder” permission.
To get folder permissions I am using the URL:
http://bascanfilenet:9080/fncmis/resources/P8ConfigObjectStore/AllowableActions/<idf_folder_id>

I am getting the response XML:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<cmis:allowableActions xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:p8ext="http://www.ibm.com/xmlns/prod/ecm/cmis/p8extensions" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetFolderTree>true</cmis:canGetFolderTree>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetObjectRelationships>false</cmis:canGetObjectRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canApplyPolicy>false</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>false</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>false</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canCreateRelationship>false</cmis:canCreateRelationship>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
<cmis:canGetRenditions>false</cmis:canGetRenditions>
<cmis:canGetACL>false</cmis:canGetACL>
<cmis:canApplyACL>false</cmis:canApplyACL>
</cmis:allowableActions>

I am always getting the key:<cmis:canCreateDocument> as true. Actually the users permissions for “File in Folder” does not affect the xml at all. Even if I deny the "File in Folder" permission for the user, I am getting <cmis:canCreateDocument> as true.

In the response for the URL: http://bascanfilenet:9080/fncmis/resources/P8ConfigObjectStore/Type/cmis:folder?includePropertyDefinitions=true I am getting the cmis:controllableACL as false. I don’t know how this key affects me, I just thought of mentioning it, in case its useful.

How can I get the user permissions for a folder?

I am attaching my test Application along with this query.

Thanks and Regards,
Aakanksha
Updated on 2012-06-19T20:00:39Z at 2012-06-19T20:00:39Z by jay.brown
  • jay.brown
    jay.brown
    41 Posts
    ACCEPTED ANSWER

    Re: [FileNet]: CMIS- Getting folder permissions for current user

    ‏2012-06-19T20:00:39Z  in response to SystemAdmin
    This is a (recently discovered) issue that we have fixed in internal builds but the fix will not be public until we issue another release which is not yet scheduled. Currently canCreateDocument and canCreateFolder are returning the values for AccessRight.CREATE_INSTANCE instead of .LINK and .CREATECHILD respectively.

    There is no known workaround for this so, if this is blocking you and you are running this in production you should open a PMR so that we can issue a test fix.