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.

Reply via email to