You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Bernhard Reutner-Fischer (JIRA)" <ji...@apache.org> on 2010/11/24 11:10:13 UTC
[jira] Created: (CMIS-282) createDocument('name:with:colon') fails
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.
[jira] Commented: (CMIS-282) createDocument('name:with:colon')
fails
Posted by "Bernhard Reutner-Fischer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984626#action_12984626 ]
Bernhard Reutner-Fischer commented on CMIS-282:
-----------------------------------------------
I'm saying that it should be a valid pathSegment (filename). I don't see where in the spec a colon is forbidden as pathSegment?
> 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.
[jira] Commented: (CMIS-282) createDocument('name:with:colon')
fails
Posted by "Florent Guillaume (JIRA)" <ji...@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.
[jira] Updated: (CMIS-282) createDocument('name:with:colon') fails
Posted by "Bernhard Reutner-Fischer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernhard Reutner-Fischer updated CMIS-282:
------------------------------------------
Attachment: cmislib-testcase-documentName_colon.patch
testcase testCreateDocumentColon for createDocument('name:with:colon.txt')
> 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.
[jira] Commented: (CMIS-282) createDocument('name:with:colon')
fails
Posted by "Jeff Potts (JIRA)" <ji...@apache.org>.
[ 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.