Skip to content

Fix conflicting redirect search

Michael Kozono requested to merge mk-fix-case-insensitive-redirect-matching into master

What does this MR do?

Fixes query for conflicting redirects by matching case-insensitively.

Are there points in the code the reviewer needs to double check?

I used LOWER instead of ILIKE because we recently added an index for searching redirects by LOWER.

Why was this MR needed?

Reproduce bug

  1. Create group 'Foo'
  2. Create project 'Foo/bar'
  3. Rename group 'Foo' to 'baz'
  4. See redirect from 'Foo/bar' to 'baz/bar'
  5. Create group 'foo'
  6. Redirect from 'Foo/bar' to 'baz/bar' remains, but should have been destroyed

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Edited by Michael Kozono

Merge request reports