chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Potts (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-1005) CMIS PermissionDeniedException
Date Thu, 15 Dec 2016 17:53:59 GMT

    [ https://issues.apache.org/jira/browse/CMIS-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15752021#comment-15752021
] 

Jeff Potts commented on CMIS-1005:
----------------------------------

As it stands you can pass in additional key-value pairs into the CmisClient constructor, and
those will just get passed along to the server as URL params. But the library doesn't handle
cookies natively.

I'll close this as "not a bug".

> CMIS PermissionDeniedException
> ------------------------------
>
>                 Key: CMIS-1005
>                 URL: https://issues.apache.org/jira/browse/CMIS-1005
>             Project: Chemistry
>          Issue Type: Task
>          Components: python-cmislib
>    Affects Versions: cmislib 0.5.1
>         Environment: Trying to connect SAP mobile development 
> I used this doca http://chemistry.apache.org/python/docs/
>            Reporter: roman
>              Labels: beginner
>             Fix For: cmislib 0.5.1
>
>
> I'm trying to get service(SAP mobile document) via .Chemistry
> In service web client i can create folder and add file.
> Via CMIS I can auth and get repo's list, but that's all. For other methods I get {code}cmislib.exceptions.PermissionDeniedException:
Error 403{code}
> code below
> {code}
> 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')
> {code}
> denied returns
> {code}
> 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=
> {code}
> *the same error for default repo
> {code}
> #repo = client.defaultRepository
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message