cubicweb #3306607 crash within rqlrewriter [open]

ERROR: unexpected error while executing Any N,D,STA,STO,P,E,L,SP,MA,ACT,CPHO,CMAIL WHERE S is Session,S name N, S description D?, S starttime STA, S endtime STO, S at_place P?, S use_equipment E?, S level L, S spirit SP, S max_attendees MA?, S activity ACT?, S contact_phone CPHO?, S contact_email CMAIL? with None

Traceback (most recent call last):
 File "/home/auc/confs/unlish/cubicweb/web/application.py", line 449, in core_handle
   ctrlid, rset = self.url_resolver.process(req, path)
 File "/home/auc/confs/unlish/cubicweb/web/views/urlpublishing.py", line 125, in process
   pmid, rset = evaluator.evaluate_path(req, parts[:])
 File "/home/auc/confs/unlish/cubicweb/web/views/urlpublishing.py", line 202, in evaluate_path
   return self.handle_etype(req, cls)
 File "/home/auc/confs/unlish/cubes/unlish/views/__init__.py", line 54, in handle_etype
   rset = req.execute(rql)
 File "/home/auc/confs/unlish/cubicweb/dbapi.py", line 525, in execute
   build_descr=build_descr, **self._txid())
 File "/home/auc/confs/unlish/cubicweb/server/repository.py", line 790, in execute
   build_descr)
 File "/home/auc/confs/unlish/cubicweb/server/querier.py", line 629, in execute
   self._planner.build_plan(plan)
 File "/home/auc/confs/unlish/cubicweb/server/ssplanner.py", line 138, in build_plan
   for step in build_plan(plan, plan.rqlst):
 File "/home/auc/confs/unlish/cubicweb/server/ssplanner.py", line 147, in build_select_plan
   plan.preprocess(rqlst)
 File "/home/auc/confs/unlish/cubicweb/server/querier.py", line 231, in preprocess
   noinvariant = self._insert_security(union)
 File "/home/auc/confs/unlish/cubicweb/server/querier.py", line 251, in _insert_security
   select, self.args, localchecks, restricted, noinvariant)
 File "/home/auc/confs/unlish/cubicweb/rqlrewrite.py", line 330, in insert_local_checks
   self.rewrite(myrqlst, lcheckdef, kwargs)
 File "/home/auc/confs/unlish/cubicweb/rqlrewrite.py", line 355, in rewrite
   self.insert_snippets(snippets)
 File "/home/auc/confs/unlish/cubicweb/rqlrewrite.py", line 383, in insert_snippets
   self.insert_varmap_snippets(varmap, rqlexprs, varexistsmap)
 File "/home/auc/confs/unlish/cubicweb/rqlrewrite.py", line 427, in insert_varmap_snippets
   new = self.insert_snippet(varmap, rqlexpr.snippet_rqlst, previous)
 File "/home/auc/confs/unlish/cubicweb/rqlrewrite.py", line 449, in insert_snippet
   return self._insert_snippet(varmap, previous, new)
 File "/home/auc/confs/unlish/cubicweb/rqlrewrite.py", line 494, in _insert_snippet
   self._cleanup_inserted(new)
 File "/home/auc/confs/unlish/cubicweb/rqlrewrite.py", line 678, in _cleanup_inserted
   del self.select.defined_vars[vref.name]
KeyError: 'F'

Any N,D,STA,STO,P,E,L,SP,MA,ACT,CPHO,CMAIL WHERE S is Session, S name N, S description D?, S starttime STA, S endtime STO, S at_place P?, S use_equipment E?, S level L, S spirit SP, S max_attendees MA?, S activity ACT?, S contact_phone CPHO?, S contact_email CMAIL?, A eid %(B)s WITH CMAIL BEING (Any CMAIL WHERE EXISTS(A use_email CMAIL), A eid %(C)s, CMAIL is EmailAddress),CPHO BEING (Any CPHO WHERE (EXISTS(C phone CPHO, C identity A)) OR (EXISTS(CPHO visibility "friends2", E phone CPHO, EXISTS(E friendship F, F friendship A))), A eid %(D)s, CPHO is PhoneNumber)

prioritynormal
typebug
done in<not specified>
closed by<not specified>