Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EBD011010B for ; Mon, 16 Dec 2013 17:23:32 +0000 (UTC) Received: (qmail 76081 invoked by uid 500); 16 Dec 2013 17:23:17 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 76011 invoked by uid 500); 16 Dec 2013 17:23:12 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 75989 invoked by uid 99); 16 Dec 2013 17:23:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Dec 2013 17:23:07 +0000 Date: Mon, 16 Dec 2013 17:23:07 +0000 (UTC) From: "Jeff Potts (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CMIS-743) Cannot checkout a document MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Potts resolved CMIS-743. ----------------------------- Resolution: Fixed Fixed and checked in to head. If you need this fix for 0.5.1, use the attached patch. Thanks for the bug report, ROb > Cannot checkout a document > -------------------------- > > Key: CMIS-743 > URL: https://issues.apache.org/jira/browse/CMIS-743 > Project: Chemistry > Issue Type: Bug > Components: python-cmislib > Affects Versions: cmislib 0.5.1 > Environment: Python 2.7.6 > Alfresco 4.2.d on Ubuntu Linux Server 12.04 > Client running cmislib Ubuntu Linux Desktop 12.04 > Reporter: Roberto Rossi > Assignee: Jeff Potts > Labels: checkout, python > Attachments: checkout-patch.diff > > > Using cmislib I cannot checkout any documents (both simple and versionable). Here the code I'm using: > obj = self._repo.getObject(objectId) > pwc = obj.checkout() > in the model.py file I'm receiving this error: > HTTPError: HTTP Error 400: Bad Request > and then: > InvalidArgumentException: Error 400 at http://teamtest:8080/alfresco/cmisatom/000fb4b4-d4b6-4ef7-a049-67939b9d70c8/checkedout > during: > result = self._cmisClient.post(checkoutUrl.encode('utf-8'), > entryXmlDoc.toxml(encoding='utf-8'), > ATOM_XML_ENTRY_TYPE) > I verified that canCheckOut is in the allowable actions for the document. > I also verified that the obj can be fetch correctly from the repository. > Something I'm doing wrong? > Thank in advance for your support. -- This message was sent by Atlassian JIRA (v6.1.4#6159)