From aad0f3b8e0df319eb32292741b5ba81add5215f3 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: