Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Users' email, username, password can be updated to empty values #51

Closed
dpakach opened this issue Sep 4, 2020 · 0 comments · Fixed by owncloud/ocis#709
Closed

Users' email, username, password can be updated to empty values #51

dpakach opened this issue Sep 4, 2020 · 0 comments · Fixed by owncloud/ocis#709
Labels
bug Something isn't working

Comments

@dpakach
Copy link
Contributor

dpakach commented Sep 4, 2020

Actual behavior

When we update an users username, email or password to empty value, it is successful

❯ curl -XPUT http://localhost:9110/ocs/v2.php/cloud/users/hello\?format\=json -d key="email" -d value="" | jq          
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    83  100    67  100    16    632    150 --:--:-- --:--:-- --:--:--   775
{
  "meta": {
    "status": "ok",
    "statuscode": 200,
    "message": "OK"
  },
  "data": {}
}

expected behavior

It should not be possible to update such fields to empty values and it should give a proper error message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant