From 7962a4578db594f8c99ee9ddad772027abcf1b07 Mon Sep 17 00:00:00 2001 From: "Jonathan Nemry (ACSONE)" Date: Wed, 23 Nov 2016 16:21:38 +0100 Subject: [PATCH] [FIX] notice that the path can start without '/' in this case add it --- cmis/models/cmis_backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmis/models/cmis_backend.py b/cmis/models/cmis_backend.py index 84e26ba..c0fb966 100644 --- a/cmis/models/cmis_backend.py +++ b/cmis/models/cmis_backend.py @@ -100,6 +100,8 @@ def get_folder_by_path(self, path, create_if_not_found=True, path = repo.getObject( cmis_parent_objectid).getPaths()[0] + '/' + path traversed = [] + if not path.startswith('/'): + path = '/%s' % path try: return repo.getObjectByPath(path) except ObjectNotFoundException: