cubicweb #3013554 bad rql generated on read security of ambiguous optional relation (#2/2) [in-progress]

schema:

SubjType concerne ObjType1
SubjType concerne ObjType2

where ObjType1 and ObjType2 *use different ERQLExpression* for 'read' permission

rql:

Any A,AR,X,CD WHERE A concerne X?, A ref AR, A eid %(a)s, X creation_date CD

leads to unexpected duplicated results

prioritynormal
typebug
done in<not specified>
load0.200
load left0.200
closed by<not specified>
patchadd failing test case related to #3013554 [applied]add failing test case related to #3013554 [folded]