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 Personal space returns 502 code #7618

Closed
nabim777 opened this issue Oct 30, 2023 · 3 comments
Labels

Comments

@nabim777
Copy link
Member

nabim777 commented Oct 30, 2023

Describe the bug

When a user makes an API request to move a file from the project space to personal space and vice versa then it returns 502 status code

Steps to reproduce

Steps to reproduce the behavior:

  1. As admin, create a space project-space
  2. As admin, upload file file.txt inside space project-space
  3. As admin, move file file.txt from space Project-space to Personal space using curl command
curl -kv -XMOVE -uadmin:admin 'https://localhost:9200/remote.php/dav/spaces/<file-id>' \
-H 'Destination: https://localhost:9200/remote.php/dav/spaces/<personal-space-id>/file.txt' | xmllint --format -

Expected behavior

Expected to be returns between 400-405

Actual behavior

Returns 502
HTTP/1.1 502 Bad Gateway
< Access-Control-Allow-Origin: *
< Content-Length: 207
< Content-Security-Policy: default-src 'none';
< Content-Type: text/xml; charset=utf-8
< Date: Mon, 30 Oct 2023 08:43:58 GMT
< Vary: Origin
< X-Content-Type-Options: nosniff
< X-Download-Options: noopen
< X-Frame-Options: SAMEORIGIN
< X-Permitted-Cross-Domain-Policies: none
< X-Request-Id: nabin-OptiPlex-3050/6iKFbNOAye-003454
< X-Robots-Tag: none
< X-Xss-Protection: 1; mode=block
< 
{ [207 bytes data]
100   207  100   207    0     0   4215      0 --:--:-- --:--:-- --:--:--  4312
* Connection #0 to host localhost left intact
<?xml version="1.0" encoding="UTF-8"?>
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
  <s:exception/>
  <s:message>move:error: not supported: cannot move across spaces</s:message>
</d:error>
@saw-jan saw-jan changed the title MOVE a file from Project space to Share space returns 502 status code MOVE a file from Project space to Personal space returns 502 status code Jan 3, 2024
@saw-jan saw-jan changed the title MOVE a file from Project space to Personal space returns 502 status code MOVE a file from Project space (manager/editor) to Personal space returns 502 code Jan 3, 2024
@saw-jan
Copy link
Member

saw-jan commented Jan 3, 2024

CC @ScharfViktor @micbar
One of the 502 from #8063 (comment) is this one

@saw-jan
Copy link
Member

saw-jan commented Jan 3, 2024

Also same response for MOVE Personal/file to Project/file (manager/editor)

@saw-jan
Copy link
Member

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