You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Jeff Potts (JIRA)" <ji...@apache.org> on 2011/02/22 20:51:38 UTC
[jira] Resolved: (CMIS-282) createDocument('name:with:colon') fails
[ https://issues.apache.org/jira/browse/CMIS-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Potts resolved CMIS-282.
-----------------------------
Resolution: Not A Problem
A colon is not a valid character in an Alfresco folder name. Closing this as it is server-specific and not related to the client library.
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira