-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Steps to reproduce
Run these behat api test
Given using API version "2"
And user "user1" has been created
And user "user2" has been created
And user "user2" has been disabled
When user "user1" sends HTTP method "PUT" to API endpoint "/cloud/users/user2/enable"
Then the OCS status code should be "401"
Given using API version "2"
And user "user1" has been
And user "user2" has been created
When user "user1" sends HTTP method "PUT" to API endpoint "/cloud/users/user2/disable"
Then the OCS status code should be "401"
Given using API version "2"
And user "another-admin" has been created
And user "subadmin" has been created
And group "new-group" has been created
And user "another-admin" has been added to group "admin"
And user "subadmin" has been added to group "new-group"
And user "another-admin" has been added to group "new-group"
And user "subadmin" has been made a subadmin of group "new-group"
When user "subadmin" sends HTTP method "PUT" to API endpoint "/cloud/users/anotheradmin/disable"
Then the OCS status code should be "401"
Given using API version "2"
And user "subadmin" has been created
And user "user1" has been created
And group "new-group" has been created
And group "another-group" has been created
And user "subadmin" has been added to group "new-group"
And user "user1" has been added to group "another-group"
And user "subadmin" has been made a subadmin of group "new-group"
When user "subadmin" sends HTTP method "PUT" to API endpoint "/cloud/users/user1/disable"
Then the OCS status code should be "401"
Given using API version "2"
And user "brand-new-user" has been created
When user "brand-new-user" sends HTTP method "POST" to API endpoint "/cloud/users/brand-new-user/groups" with body
| groupid | new-group |
Then the OCS status code should be "401"
Expected behaviour
The endpoints are expected to return status code 401
Actual behaviour
The endpoints are returning status code 997
Server configuration
Operating system: Ubuntu 17.10
Web server: Apache
Database: MySQL
PHP version: 7.1
ownCloud version: (see ownCloud admin page) 10.0.8
Updated from an older ownCloud or fresh install: Fresh install
Where did you install ownCloud from: git