[Checkins] SVN: zc.zk/trunk/src/zc/zk/testing.py Create didn't detect attempts to create foo//bar (especially //bar)

Jim Fulton jim at zope.com
Sat Dec 10 16:41:46 UTC 2011


Log message for revision 123661:
  Create didn't detect attempts to create foo//bar (especially //bar)
  

Changed:
  U   zc.zk/trunk/src/zc/zk/testing.py

-=-
Modified: zc.zk/trunk/src/zc/zk/testing.py
===================================================================
--- zc.zk/trunk/src/zc/zk/testing.py	2011-12-10 14:00:45 UTC (rev 123660)
+++ zc.zk/trunk/src/zc/zk/testing.py	2011-12-10 16:41:45 UTC (rev 123661)
@@ -356,6 +356,8 @@
         with self.lock:
             self._check_handle(handle)
             base, name = path.rsplit('/', 1)
+            if base.endswith('/'):
+                raise zookeeper.BadArgumentsException('bad arguments')
             node = self._traverse(base)
             if name in node.children:
                 raise zookeeper.NodeExistsException()



More information about the checkins mailing list