Skip to content

API Failure: Share with new user #28

@rpocklin

Description

@rpocklin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions