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/07/13 18:08:49 UTC

[jira] Commented: (CMIS-238) folder.getChildren() fails on Alfresco (3.2r2) if child has name with ampersand in it (&)

    [ https://issues.apache.org/jira/browse/CMIS-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887819#action_12887819 ] 

Jeff Potts commented on CMIS-238:
---------------------------------

Cannot yet re-create this issue:

>>> testFolder.createDocument('foo & bar')
<cmislib.model.Document object at 0x1017ba1d0>
>>> rs = testFolder.getChildren()
>>> for res in rs:
...     res.name
... 
u'acltest'
u'test & another'
u'foo & bar'

Maybe it is the XML parser that's being used on the reporter's test machine?

> folder.getChildren() fails on Alfresco (3.2r2) if child has name with ampersand in it (&)
> -----------------------------------------------------------------------------------------
>
>                 Key: CMIS-238
>                 URL: https://issues.apache.org/jira/browse/CMIS-238
>             Project: Chemistry
>          Issue Type: Bug
>          Components: cmislib
>            Reporter: Jeff Potts
>            Assignee: Jeff Potts
>            Priority: Minor
>
> Migrated from GC issue 17, Reported by bdkahn, Mar 30, 2010
> What steps will reproduce the problem?
> 1.Create a file with a & in its filename or title
> 2.Run getChildren() on the parent folder
> What is the expected output? What do you see instead?
> I expect the file title will be returned, but I see an error:
>   File "ra-update.py", line 45, in main
>     files = subfolder.getChildren()
>   File "/usr/lib/python2.6/site-packages/cmislib-0.3-
> py2.6.egg/cmislib/model.py", line 2737, in getChildren
>   File "/usr/lib/python2.6/site-packages/cmislib-0.3-
> py2.6.egg/cmislib/model.py", line 199, in get
>   File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/minidom.py", line 
> 1915, in parse
>     return expatbuilder.parse(file)
>   File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", 
> line 930, in parse
>     result = builder.parseFile(file)
>   File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", 
> line 207, in parseFile
>     parser.Parse(buffer, 0)
> xml.parsers.expat.ExpatError: not well-formed (invalid token): line 83, 
> column 39
> What version of the product are you using? On what operating system?
> cmislib-0.3-py2.6.egg

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.