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

API Test cases for MOVE between project/personal/shares spaces #8121

Closed
saw-jan opened this issue Jan 4, 2024 · 3 comments
Closed

API Test cases for MOVE between project/personal/shares spaces #8121

saw-jan opened this issue Jan 4, 2024 · 3 comments
Labels

Comments

@saw-jan
Copy link
Member

saw-jan commented Jan 4, 2024

Continued and extended form of #4087

Updated: There will be change in statuscode expectation.
See #8063 (comment)

We should treat a "Cross-Storage" MOVE in ocis like a cross-server move in the RFC like ...when the destination is on another sub-section of the same server namespace. This has the implication that we need to roll back the changes and respond with a 502 Status code like described in the RFC:

MOVE

1. Using file path (Updated)

Test cases

from from (role) to to (role) expected result
project manager/editor project(same) 201 201 👍
project viewer project(same) 403 403 👍
project manager/editor project manager/editor 502 502 👍
project manager/editor project viewer 502 403 👍 (#8315 (comment))
project viewer project manager/editor/viewer 502 403 👍 (#8315 (comment))
project manager/editor personal   502 502 👍
project viewer personal   502 403 👍 (#8315 (comment))
project manager/editor/viewer share jail all/editor/viewer 502 502 👍
personal   personal(same) 201 201 👍
personal   personal(subfolder) 201 201 👍
personal   project manager/editor 502 502 👍
personal   project viewer 502 403 👍 (#8315 (comment))
personal   share jail all/editor/viewer 502 502 👍
share jail all/editor/viewer personal   502 502 👍
share jail all/editor/viewer project manager/editor/viewer 502 502 👍
share jail all/editor/viewer share jail all/editor/viewer 502 502 👍
share jail all/editor share jail(same) 201 201 👍
share jail viewer share jail(same) 403 403 👍 (#8315 (comment))

Bug Reports

2. Using file id (Updated)

Test Cases

from from (role) to to (role) expected result
project manager/editor project(same) 201 201 👍
project viewer project(same) 403 403 👍 (#8315 (comment))
project manager/editor project manager/editor 502 502 👍
project manager/editor project viewer 502 403 👍 (#8315 (comment))
project viewer project manager/editor/viewer 502 403 👍 (#8315 (comment))
project manager/editor personal   502 502 👍
project viewer personal   502 403 👍 (#8315 (comment))
project manager/editor/viewer share jail all/editor/viewer 502 502 👍
personal   personal(same) 201 201 👍
personal   personal(subfolder) 201 201 👍
personal   project manager/editor 502 502 👍
personal   project viewer 502 403 👍 (#8315 (comment))
personal   share jail all/editor/viewer 502 502 👍
share jail all/editor share jail(same) 201 403 ❌
share jail viewer share jail(same) 403 403 👍
share jail all/editor personal   502 502 👍
share jail viewer personal   502 403 👍 (#8315 (comment))
share jail all/editor/viewer share jail all/editor/viewer 502 502 👍
share jail all/editor project manager/editor 502 502 👍
share jail all/editor project viewer 502 403 👍 (#8315 (comment))
share jail viewer project manager/editor/viewer 502 403 👍 (#8315 (comment))

Bug Reports

Edge cases:

@saw-jan
Copy link
Member Author

saw-jan commented Jan 10, 2024

There will be change in statuscode expectation.

See #8063 (comment)

We should treat a "Cross-Storage" MOVE in ocis like a cross-server move in the RFC like ...when the destination is on another sub-section of the same server namespace. This has the implication that we need to roll back the changes and respond with a 502 Status code like described in the RFC:

@saw-jan
Copy link
Member Author

saw-jan commented Jan 26, 2024

@ishabaral
Copy link
Contributor

All test cases are added and there is coverage for all bug reports. So closing this issue.

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

No branches or pull requests

2 participants