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.

prioritynormal
typebug
done in3.15.11
load0.100
load left0.000
closed by#dbffb6959564 server/source/native: fix wrong usage of .lstrip that produce garbled error messages (closes #2777641)
patchserver/source/native: fix wrong usage of .lstrip that produce garbled error messages (closes #2777641) [applied]