Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

[OCIS] trying to list the trashbin of another user gives 405 #257

@dpakach

Description

@dpakach

Try to list the trashbin of another user,

The expected response: 401 unauthorized with body and proper error message
Actual response: 405 Method Not Allowed (no body )

curl 'https://localhost:9200/remote.php/dav/trash-bin/4c510ada-c86b-4815-8820-42cdf82c3d51/' \
  -X 'PROPFIND' \
  --data-binary $'<?xml version="1.0"?>\n<d:propfind  xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">\n  <d:prop>\n    <oc:trashbin-original-filename />\n    <oc:trashbin-original-location />\n    <oc:trashbin-delete-datetime />\n    <d:getcontentlength />\n    <d:resourcetype />\n  </d:prop>\n</d:propfind>' \
  --compressed \
  --insecure -u richard:superfluidity -v
...
< HTTP/1.1 405 Method Not Allowed
< Access-Control-Allow-Origin: *
< Content-Length: 0
...
< 
* Connection #0 to host localhost left intact

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions