cubicweb #2777641 unique together violation sometimes yields an erroneous message with sqlite [done]
as the code currently does (server/source/native.py ~766):
rtypes = [c.strip().lstrip('cw_') for c in mo.group(1).split(',')]
It will actually eat any 'c', 'w' or '_' characters in leading position of the stripped strings (yes, .lstrip() is a false friend).
This is hardly critical as only the sqlite path is affected, but it can be surprising.
|closed by||#dbffb6959564 server/source/native: fix wrong usage of .lstrip that produce garbled error messages (closes #2777641)|
|patch||server/source/native: fix wrong usage of .lstrip that produce garbled error messages (closes #2777641) [applied]|