Open
Description
Steps to reproduce
- create user "uu1"
- disable user "uu1"
- try to create a share as user "uu1"
curl -u uu1:uu1 -v http://localhost/owncloud-core/ocs/v2.php/apps/files_sharing/api/v1/shares -d "path=welcome.txt&shareWith=admin&shareType=0"
Expected behaviour
OSC status code should be the same as HTTP status code when using v2.php
Actual behaviour
OCS status code is 997
<?xml version="1.0"?>
<ocs>
<meta>
<status>failure</status>
<statuscode>997</statuscode>
<message>Unauthorised</message>
</meta>
<data/>
</ocs>
see https://github.com/owncloud/core/blob/master/lib/private/legacy/api.php#L503-L505