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

MOVE a file from Project space (manager/editor) to Project space (manager/editor) returns 502 code #8116

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

Comments

@saw-jan
Copy link
Member

saw-jan commented Jan 3, 2024

Describe the bug

MOVE request of a file from one project space (manager/editor) to another (manager/editor) returns 502 status code

Steps to reproduce

  1. File path (502) ❌
curl -XMOVE "https://localhost:9200/remote.php/dav/spaces/<project-1-id>/spacefile.txt" \
-H"Destination: https://localhost:9200/remote.php/dav/spaces/<project-2-id>/spacefile.txt" \
-udemo:demo -vk
  1. File id (502) ❌
curl -XMOVE "https://localhost:9200/remote.php/dav/spaces/<spacefile.txt-file-id>" \
-H"Destination: https://localhost:9200/remote.php/dav/spaces/<project-2-id>/spacefile.txt" \
-udemo:demo -vk

Expected behavior

< HTTP/1.1 403 Forbidden

<?xml version="1.0" encoding="UTF-8"?>
<d:error
	xmlns:d="DAV"
	xmlns:s="http://sabredav.org/ns">
	<s:exception>Sabre\DAV\Exception\Forbidden</s:exception>
	<s:message>move: error: permission denied: 6503c992-0b92-4278-a579-22927d18f5cd$ad1316f6-bd8c-40f1-a74a-ea5805293b0c!ad1316f6-bd8c-40f1-a74a-ea5805293b0c/spacefile.txt</s:message>
</d:error>

Actual behavior

< HTTP/1.1 502 Bad Gateway

<?xml version="1.0" encoding="UTF-8"?>
<d:error
	xmlns:d="DAV"
	xmlns:s="http://sabredav.org/ns">
	<s:exception></s:exception>
	<s:message>move:error: not supported: cannot move across spaces</s:message>
</d:error>
@saw-jan
Copy link
Member Author

saw-jan commented Jan 3, 2024

CC @ScharfViktor @micbar

@saw-jan
Copy link
Member Author

saw-jan commented Jan 10, 2024

As per #8063 (comment), #8063 (comment) and #4087 (comment), the 502 statuscode is the correct code that server should respond. So closing this.

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