@@ -394,6 +394,40 @@ Feature: sharees_user
394394 | Test One (Second displayname for user 1 ) | 0 | test1 | test1 |
395395 And "users" sharees returned is empty
396396
397+ Scenario : Search for displayname returns nothing without sharee enumeration and without full match displayname enumeration
398+ Given user "test" with displayname "foo" exists
399+ And user "test1" with displayname "Test One" exists
400+ And user "test2" with displayname "Test Two" exists
401+ And group "groupA" exists
402+ And user "test" belongs to group "groupA"
403+ And user "test1" belongs to group "groupA"
404+ And user "test2" belongs to group "groupA"
405+ And As an "test"
406+ And parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "no"
407+ And parameter "shareapi_restrict_user_enumeration_full_match_displayname" of app "core" is set to "no"
408+ When getting sharees for
409+ | search | Test One |
410+ | itemType | file |
411+ Then the OCS status code should be "100"
412+ And the HTTP status code should be "200"
413+ And "exact users" sharees returned is empty
414+ And "users" sharees returned is empty
415+
416+ Scenario : Search for exact userid returns exact user without sharee enumeration and without full match displayname enumeration
417+ Given user "test" with displayname "foo" exists
418+ And user "test1" with displayname "Test One" exists
419+ And As an "test"
420+ And parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "no"
421+ And parameter "shareapi_restrict_user_enumeration_full_match_displayname" of app "core" is set to "no"
422+ When getting sharees for
423+ | search | test1 |
424+ | itemType | file |
425+ Then the OCS status code should be "100"
426+ And the HTTP status code should be "200"
427+ And "exact users" sharees returned are
428+ | Test One | 0 | test1 | test1 |
429+ And "users" sharees returned is empty
430+
397431 Scenario : Search for exact userid with shared group returns exact user with sharee enumeration limited to group
398432 Given user "test" with displayname "foo" exists
399433 And user "test1" exists
0 commit comments