From e88bc8a779170a73cf48769760e3ede7f297491b Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Fri, 28 Dec 2007 15:14:09 +0000
Subject: [PATCH] vault_path can be an empty string, which would causes
 category path to have a trailing slash, which is invalid with current
 category traversal.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18550 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5SyncML/Conduit/BaobabConduit.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5SyncML/Conduit/BaobabConduit.py b/product/ERP5SyncML/Conduit/BaobabConduit.py
index 8e41d2282a..80f8f30235 100644
--- a/product/ERP5SyncML/Conduit/BaobabConduit.py
+++ b/product/ERP5SyncML/Conduit/BaobabConduit.py
@@ -971,7 +971,7 @@ class BaobabConduit(ERP5Conduit):
       if inventory_path is not None:
         result_list.append(inventory_path)
         vault_path = self.vault_code_to_path.get(vault_code)
-        if vault_path is not None:
+        if vault_path not in (None, ''):
           result_list.append(vault_path)
         elif vault_code is not None:
           raise ValueError, '%s is not a known vault import codification' % (vault_code, )
-- 
2.30.9