Skip to content

Enable/disable user over OCS behaves wrong #3890

Description

@MorrisJobke
  • fire curl according to documentation:
curl -u admin:password http://example.org/ocs/v1.php/cloud/users/abc/disable -i -X PUT -H "OCS-APIRequest:true"

this returns a 200 without body and doesn't disable the user:

HTTP/1.1 200 OK
Content-Length: 0
Content-Type: text/xml; charset=UTF-8


But sending it with -d key="disable" -d value="true"

It returns the correct body and also disables the user:

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message>OK</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data/>
</ocs>

cc @schiessle @rullzer

ref nextcloud/documentation#389

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions