chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florent Guillaume (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CMIS-282) createDocument('name:with:colon') fails
Date Mon, 24 Jan 2011 15:37:44 GMT

    [ 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.


Mime
View raw message