This UniqueTogetherValidator has incorrect logic. Namely, if a root folder exists with a given name, that name cannot be used for any other folder, regardless of whether it's a root or not.
Steps to reproduce:
Create root folder named "foo".
Create a non-root folder anywhere else named "foo".
Expectation: operation succeeds.
Actual result: HTTP 400 with error "A root folder with that name already exists."
This
UniqueTogetherValidator
has incorrect logic. Namely, if a root folder exists with a given name, that name cannot be used for any other folder, regardless of whether it's a root or not.Steps to reproduce: