owncloud / owncloud/ocis

OCS response is not returned when a disabled user tries to enable himself

Open
#3,254 1 comment 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug
Related to https://github.com/owncloud/ocis/issues/1420

## Steps to reproduce

Steps to reproduce the behavior:

1. Create an user
2. Disable the user
3. Try to enable the user

## Expected behavior
With `core` backend the response ends with OCS status code `997` and http status code `401`

## Actual behavior
With `OCIS` backend the response does not contain OCS status
```console
PUT /ocs/v1.php/cloud/users/another-admin/enable HTTP/1.1
Host: localhost:9200
Content-Length: 0
User-Agent: GuzzleHttp/7
Authorization: Basic YW5vdGhlci1hZG1pbjoxMjM0NTY=
X-Request-ID: apiProvisioning-v1/enableUser.feature:62-66

HTTP/1.1 401 Unauthorized
Date: Thu, 03 Mar 2022 05:59:44 GMT
Content-Length: 0
```
## Setup

Please describe how you started the server and provide a list of relevant environment variables.

```console
OCIS_VERSION=latest
BRANCH=master
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.