one more test (see mrambourg error report. We should ensure the previous fix fix his case as well which include security injection of the rql) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Sat, 27 Jun 2009 00:37:42 +0200
branchstable
changeset 2180 bf2e81fb52be
parent 2179 9d7bfbf70ed6
child 2181 94ca417b9b07
child 2182 488099333160
one more test (see mrambourg error report. We should ensure the previous fix fix his case as well which include security injection of the rql)
server/test/unittest_msplanner.py
--- a/server/test/unittest_msplanner.py	Fri Jun 26 23:38:23 2009 +0200
+++ b/server/test/unittest_msplanner.py	Sat Jun 27 00:37:42 2009 +0200
@@ -1949,6 +1949,14 @@
                      None, None, [self.system], {}, [])],
                    {'x': 999998, 'u': 999999})
 
+    def test_nonregr14_3(self):
+        repo._type_source_cache[999999] = ('CWUser', 'system', 999999)
+        repo._type_source_cache[999998] = ('CWUser', 'ldap', 999998)
+        self._test('Any X WHERE X eid %(x)s, X owned_by U, U eid %(u)s',
+                   [('OneFetchStep', [('Any 999998 WHERE 999998 owned_by 999999', [{}])],
+                     None, None, [self.system], {}, [])],
+                   {'x': 999998, 'u': 999999})
+
 
 class MSPlannerTwoSameExternalSourcesTC(BasePlannerTC):
     """test planner related feature on a 3-sources repository: