Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Invalid copy into descendant in different spaces #4293

Closed
Aitorbp opened this issue Jan 23, 2024 · 0 comments · Fixed by #4295
Closed

[BUG] Invalid copy into descendant in different spaces #4293

Aitorbp opened this issue Jan 23, 2024 · 0 comments · Fixed by #4295

Comments

@Aitorbp
Copy link
Contributor

Aitorbp commented Jan 23, 2024

Actual behaviour

when you copy a folder to a space inside another folder with the same name as the folder you want to copy, the invalid copy into descendant error occurs.

Expected behaviour

It should let us copy the folder since it is not a descendant because it belongs to a different space even though the folder name is the same.

Steps to reproduce

  1. Log in to an ocis server with spaces.
  2. Create a folder called test in your personal space, for example.
  3. Create another folder in another space B also called test.
  4. Go back to the personal space and try to copy the folder test into the test folder of space B.
  5. You will receive an Invalid copy into descendant error

Technical problem

Managing of the Invalid copy into a descendant error is handled in the CopyFileUseCase class in the validateOrThrowException function. But this method is not managing if the folder you are trying to copy are in the same space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants