cubicweb #3196891 attribute error when inserting read security [validation pending]

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cubicweb/server/repository.py", line 790, in execute
build_descr)
File "/usr/lib/python2.7/dist-packages/cubicweb/server/querier.py", line 629, in execute
self._planner.build_plan(plan)
File "/usr/lib/python2.7/dist-packages/cubicweb/server/ssplanner.py", line 138, in build_plan
for step in build_plan(plan, plan.rqlst):
File "/usr/lib/python2.7/dist-packages/cubicweb/server/ssplanner.py", line 147, in build_select_plan
plan.preprocess(rqlst)
File "/usr/lib/python2.7/dist-packages/cubicweb/server/querier.py", line 231, in preprocess
noinvariant = self._insert_security(union)
File "/usr/lib/python2.7/dist-packages/cubicweb/server/querier.py", line 251, in _insert_security
select, self.args, localchecks, restricted, noinvariant)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 329, in insert_local_checks
self.rewrite(myrqlst, lcheckdef, kwargs)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 354, in rewrite
self.insert_snippets(snippets)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 382, in insert_snippets
self.insert_varmap_snippets(varmap, rqlexprs, varexistsmap)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 407, in insert_varmap_snippets
subselect.solutions, self.kwargs)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 354, in rewrite
self.insert_snippets(snippets)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 382, in insert_snippets
self.insert_varmap_snippets(varmap, rqlexprs, varexistsmap)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 426, in insert_varmap_snippets
new = self.insert_snippet(varmap, rqlexpr.snippet_rqlst, previous)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 444, in insert_snippet
new = snippetrqlst.where.accept(self)
File "/usr/lib/pymodules/python2.7/rql/utils.py", line 166, in accept
return visit_method(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 773, in visit_and
return self._visit_binary(node, n.And)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 754, in _visit_binary
new = c.accept(self)
File "/usr/lib/pymodules/python2.7/rql/utils.py", line 166, in accept
return visit_method(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 773, in visit_and
return self._visit_binary(node, n.And)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 754, in _visit_binary
new = c.accept(self)
File "/usr/lib/pymodules/python2.7/rql/utils.py", line 166, in accept
return visit_method(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 773, in visit_and
return self._visit_binary(node, n.And)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 754, in _visit_binary
new = c.accept(self)
File "/usr/lib/pymodules/python2.7/rql/utils.py", line 166, in accept
return visit_method(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 802, in visit_relation
if not self.keep_var(lhs.name):
File "/usr/lib/python2.7/dist-packages/cubicweb/rqlrewrite.py", line 789, in keep_var
vargraph = self.current_expr.vargraph
AttributeError: 'ERQLExpression' object has no attribute 'vargraph'

priorityimportant
typebug
done in3.17.9
load0.500
load left0.000
closed by#7fc54e02291f [security] fix dumb attribute error when inserting read security. Closes #3196891
patch[security] fix dumb attribute error when inserting read security. Closes #3196891 [applied]