01-30-2012 12:55 PM
02-16-2012 05:04 AM
02-16-2012 12:20 PM
test (Test User has no access)
|—– subFolder (Test User has Collaborator access)
|——subSubFolder (Test User has Consumer access)
>>> folder = repo.getObjectByPath('/test/subFolder/subSubFolder', filter='cmis:objectId,cmis:objectTypeId,cmis:name')
>>> folder.properties
{u'cmis:objectId': 'workspace://SpacesStore/3ac7873d-0400-48ad-84d3-887c7b040377', u'cmis:name': u'subSubFolder', u'cmisra:object': None, u'cmis:objectTypeId': 'cmis:folder', u'cmis:baseTypeId': 'cmis:folder'}
>>> folder.getAllowableActions()
{u'canDeleteContentStream': False, u'canSetContentStream': False, u'canCreateRelationship': False, u'canDeleteTree': False, u'canGetDescendants': True, u'canCheckIn': False, u'canApplyACL': False, u'canGetFolderParent': True, u'canDeleteObject': False, u'canGetAllVersions': False, u'canGetObjectParents': True, u'canGetProperties': True, u'canCreateDocument': False, u'canGetRenditions': False, u'canApplyPolicy': False, u'canUpdateProperties': False, u'canGetAppliedPolicies': True, u'canGetContentStream': False, u'canMoveObject': False, u'canAddObjectToFolder': False, u'canRemoveObjectFromFolder': False, u'canRemovePolicy': False, u'canGetObjectRelationships': True, u'canGetChildren': True, u'canCancelCheckOut': False, u'canGetFolderTree': True, u'canCheckOut': False, u'canCreateFolder': False, u'canGetACL': False}
>>> folder = repo.getObjectByPath('/test/subFolder/subSubFolder')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/src/chemistry/cmislib/src/cmislib/model.py", line 969, in getObjectByPath
result = self._cmisClient.get(byObjectPathUrl.encode('utf-8'), **addOptions)
File "/opt/src/chemistry/cmislib/src/cmislib/model.py", line 209, in get
self._processCommonErrors(result)
File "/opt/src/chemistry/cmislib/src/cmislib/model.py", line 315, in _processCommonErrors
raise PermissionDeniedException(error.status, error.url)
cmislib.exceptions.PermissionDeniedException: Error 403 at http://localhost:8080/alfresco/cmisatom/558e5b3c-71a0-42ac-b420-eda16e93e95b/path?path=/test/subFold...
02-16-2012 01:12 PM
includeACL=true
was preventing my request to work properly (I assume it tries to retrieve ACL info for parent folders). Once changed includeACL to false, it works!02-22-2012 04:44 PM
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Object Info is missing!
http://localhost:8080/alfresco/cmisatom/f05d5224-0f52-484c-a14c-eba64c2f3345/children?id=workspace%3...
{"Content-Type"=>"application/atom+xml;type=entry"}
<?xml version="1.0"?>
<at:entry xmlns:cra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:at="http://www.w3.org/2005/Atom" xmlns:c="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:cm="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:app="http://www.w3.org/2007/app">
<at:author>
<at:name>admin</at:name>
</at:author>
<at:title>heaherhrettr</at:title>
<at:id>random-garbage</at:id>
<cra:object>
<c:properties>
<c:propertyId propertyDefinitionId="cmis:objectTypeId">
<c:value>cmis:folder</c:value>
</c:propertyId>
<c:propertyString propertyDefinitionId="cmis:name">
<c:value>NewFolder</c:value>
</c:propertyString>
</c:properties>
</cra:object>
</at:entry>
02-24-2012 03:14 PM
02-27-2012 05:52 AM
https://issues.alfresco.com/jira/browse/ALF-13077
05-27-2014 07:47 AM
05-27-2014 11:06 AM
05-29-2014 02:07 AM
05-29-2014 05:09 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.