-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I have attempted using a sharing test with our Owncloud 10.1.1 instance (which already works for create / upload testcases in this repository).
but consistently to receive a 401 Unauthorized response, even when the headers included a valid Authorization header (basic auth).
The following was the response body returned:
<?xml version="1.0"?>
<ocs>
<meta>
<status>failure</status>
<statuscode>997</statuscode>
<message>Unauthorised</message>
</meta>
<data/>
</ocs>
Testcase
Share with new user
By comparing the request with that in the Owncloud web user interface, the frontend is also sending the header
OCS-APIREQUEST: true
Once I change share.ts to include this header specifically, and re-compile and re-run, the test passes without any issue.
Is this required to be added to specific endpoints, or at a global level? I'm unsure why this is required in this case and wanted to confirm more details before submitting a PR.