Redirect module crashes in redirect_path_update() with Integrity constraint violation: 1062 Duplicate entry '5WDyk0tILigTJ0G3fwSptWecGOuwGZuJJy_Nsmg3Ebk' for key 'hash' if a redirect exists already.
findMatchingRedirect() never finds duplicate because path alias always contains /.
Nice catch. Would be nice to have test coverage for this, we have existing tests that rename entities, so it shouldn't be hard to extend them to cover this scenario.
Redirect module crashes in
redirect_path_update()
withIntegrity constraint violation: 1062 Duplicate entry '5WDyk0tILigTJ0G3fwSptWecGOuwGZuJJy_Nsmg3Ebk' for key 'hash'
if a redirect exists already.findMatchingRedirect()
never finds duplicate because path alias always contains/
.