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

Jeff Potts commented on CMIS-479:
---------------------------------

Not sure if this is the back-end the reporter saw this problem with but I am 
seeing the issue when running against FileNet. All other back-ends seem to be 
fine.

Against FileNet, if you create a folder with a space in it, and then ask that 
object for its paths, it will return the space. If you then attempt to use 
getObjectByPath() and pass in the path, the repo chokes on the space as shown 
below:

>>> subFolder.getPaths()
[u'/cmislib/test space']
>>> someOtherFolder = repo.getObjectByPath(subFolder.getPaths()[0])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/src/chemistry/cmislib/src/cmislib/model.py", line 967, in 
getObjectByPath
    result = self._cmisClient.get(byObjectPathUrl.encode('utf-8'), **addOptions)
  File "/opt/src/chemistry/cmislib/src/cmislib/model.py", line 208, in get
    self._processCommonErrors(result)
  File "/opt/src/chemistry/cmislib/src/cmislib/model.py", line 312, in 
_processCommonErrors
    raise ObjectNotFoundException(error.status, error.url)
cmislib.exceptions.ObjectNotFoundException: Error 404 at 
http://cmis.dnsdojo.com:8080/p8cmis/resources/DaphneA/Content/cmislib/test+space?filter=&includeAllowableActions=false
                
> wrong url parse in the case __main__.RepositoryTest.testGetObjectByPath
> -----------------------------------------------------------------------
>
>                 Key: CMIS-479
>                 URL: https://issues.apache.org/jira/browse/CMIS-479
>             Project: Chemistry
>          Issue Type: Bug
>          Components: python-cmislib
>    Affects Versions: OpenCMIS 1.0.0
>            Reporter: shaoyuliang
>            Assignee: Jeff Potts
>             Fix For: OpenCMIS 1.0.0
>
>
> The folder name in the server is separated by the ' ',such as "cmislib 
> RepositoryTest 1322638268.0"
> The client request parameter is p=/Temp/cmislib+RepositoryTest+1322638268.0 , 
> so get 404 response.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to