# HG changeset patch # User Alexandre Fayolle # Date 1320332501 -3600 # Node ID 41398fa1a90fe237bf4dd9c8e2e338c4ed0ccdb5 # Parent 0f3a54c37b057fdd5fe8e1f3b1ec42c60f5ba625 [rql, integrity] let ValidationError and Unauthorized pass during composite deletion (closes #2070042) diff -r 0f3a54c37b05 -r 41398fa1a90f server/repository.py --- a/server/repository.py Fri Oct 28 17:54:24 2011 +0200 +++ b/server/repository.py Thu Nov 03 16:01:41 2011 +0100 @@ -1213,6 +1213,13 @@ rql += ', NOT (Y cw_source S, S eid %(seid)s)' try: session.execute(rql, {'seid': scleanup}, build_descr=False) + except ValidationError: + raise + except Unauthorized: + self.exception('Unauthorized exception while cascading delete for entity %s ' + 'from %s. RQL: %s.\nThis should not happen since security is disabled here.', + entities, sourceuri, rql) + raise except Exception: if self.config.mode == 'test': raise