cubicweb #3013535 bad rql generated on read security of ambiguous optional relation (#1/2) [validation pending]

schema:

SubjType concerne ObjType1
SubjType concerne ObjType2

where ObjType1 and ObjType2 both use the same 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 in3.17.4
load0.200
load left0.000
closed by#0fb4b67bde58 [schema/security] add __hash__ to rql expression. Closes #3013535
patch[schema/security] add __hash__ to rql expression. Closes #3013535 [folded][schema/security] add __hash__ to rql expression. Closes #3013535 [applied]