Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 19886 invoked from network); 24 Jan 2011 15:38:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2011 15:38:11 -0000 Received: (qmail 13957 invoked by uid 500); 24 Jan 2011 15:38:11 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 13229 invoked by uid 500); 24 Jan 2011 15:38:10 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 12471 invoked by uid 99); 24 Jan 2011 15:38:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 15:38:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 15:38:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0OFbi67013827 for ; Mon, 24 Jan 2011 15:37:45 GMT Message-ID: <4933558.156171295883464818.JavaMail.jira@thor> Date: Mon, 24 Jan 2011 10:37:44 -0500 (EST) From: "Florent Guillaume (JIRA)" To: chemistry-dev@incubator.apache.org Subject: [jira] Commented: (CMIS-282) createDocument('name:with:colon') fails In-Reply-To: <25217487.283571290593413683.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CMIS-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985738#action_12985738 ] Florent Guillaume commented on CMIS-282: ---------------------------------------- It's not forbidden by the spec but any server is free to add its own restriction to the path segments it allows. (And a path segment is not necessarily a filename). The error returned should probably be cleaner though. > createDocument('name:with:colon') fails > --------------------------------------- > > Key: CMIS-282 > URL: https://issues.apache.org/jira/browse/CMIS-282 > Project: Chemistry > Issue Type: Bug > Components: python-cmislib > Reporter: Bernhard Reutner-Fischer > Attachments: cmislib-testcase-documentName_colon.patch > > > Attached testcase gives this error for createDocument('some:thing.txt') > ERROR: Create a new doc with a colon character (':') in the name > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "./cmislibtest.py", line 268, in testCreateDocumentColon > newDoc = self._repo.createDocument(documentName, parentFolder=self._testFolder) > File "./../cmislib/model.py", line 1138, in createDocument > contentType, contentEncoding) > File "./../cmislib/model.py", line 2785, in createDocument > result = self._cmisClient.post(postUrl, xmlDoc.toxml(encoding='utf-8'), ATOM_XML_ENTRY_TYPE) > File "./../cmislib/model.py", line 254, in post > return minidom.parse(result) > File "/opt/python-init/lib/python2.6/xml/dom/minidom.py", line 1918, in parse > return expatbuilder.parse(file) > File "/opt/python-init/lib/python2.6/xml/dom/expatbuilder.py", line 929, in parse > result = builder.parseFile(file) > File "/opt/python-init/lib/python2.6/xml/dom/expatbuilder.py", line 208, in parseFile > parser.Parse(buffer, 0) > ExpatError: junk after document element: line 80, column 8 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.