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 2010/11/24 15:04:15 UTC
[jira] Commented: (CMIS-282) createDocument('name:with:colon')
fails
[ https://issues.apache.org/jira/browse/CMIS-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935326#action_12935326 ]
Jeff Potts commented on CMIS-282:
---------------------------------
The server I'm testing with (Alfresco Community 3.4a) throws an error because that's not a valid file name. Are you saying that should be a valid file name or are you saying the client should detect that as the reason and provide a more reasonable error message?
> 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.