我正在尝试通过 CMIS 获取服务(SAP 移动文档)。
在服务网络客户端中,我可以创建文件夹并添加文件。
通过 CMIS,我可以验证并获取 repo 的列表,但仅此而已。对于我得到的其他方法cmislib.exceptions.PermissionDeniedException: Error 403
我使用了这个文档http://chemistry.apache.org/python/docs/
from cmislib import *
client = CmisClient('https://service/mcm/b/atom', 'user', 'pwd')
print client.getRepositories()
#REPO
#repo = client.defaultRepository
repo = client.getRepository('573f7fc4-2c76-49a2-b63c-d39e370edfde')
print repo.name
#FOLDER
rFolder = repo.rootFolder
print rFolder.id
#denied
#rFolder.getChildren()
#acl = rFolder.getACL()
#print rFolder.getName()
#newFolder = rFolder.createFolder('testfolder')
拒绝退货
cmislib.exceptions.PermissionDeniedException: Error 403 at https://url/mcm/b/atom/573f7fc4-2c76-49a2-b63c-d39e370edfde/id?id=906f3ae3-a4c9-3210-7292-c840e0cff769&filter=&includeAllowableActions=false&includeACL=false&includePolicyIds=false&includeRelationships=&renditionFilter=
*默认回购同样的错误
#repo = client.defaultRepository