@@ -426,6 +426,40 @@ Feature: sharees
426426 And "exact emails" sharees returned is empty
427427 And "emails" sharees returned is empty
428428
429+ Scenario : Search user by system e-mail address with e-mail full match disabled
430+ Given As an "test"
431+ And parameter "shareapi_restrict_user_enumeration_full_match_email" of app "core" is set to "no"
432+ When getting sharees for
433+ | search | sharee2 @system .com |
434+ | itemType | file |
435+ | shareType | 0 |
436+ Then the OCS status code should be "100"
437+ And the HTTP status code should be "200"
438+ And "exact users" sharees returned is empty
439+ # With enumeration allowed the user is still found as non-exact match, as
440+ # enumeration also searches in the e-mail address
441+ And "users" sharees returned are
442+ | Sharee2 | 0 | Sharee2 | sharee2 @system .com |
443+ And "exact emails" sharees returned is empty
444+ And "emails" sharees returned is empty
445+
446+ Scenario : Search user by system e-mail address with e-mail full match and user enumeration disabled
447+ Given As an "test"
448+ And parameter "shareapi_restrict_user_enumeration_full_match_email" of app "core" is set to "no"
449+ And parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "no"
450+ When getting sharees for
451+ | search | sharee2 @system .com |
452+ | itemType | file |
453+ | shareType | 0 |
454+ Then the OCS status code should be "100"
455+ And the HTTP status code should be "200"
456+ # The user id full match must not resolve e-mail addresses through the user
457+ # backends (login via e-mail address)
458+ And "exact users" sharees returned is empty
459+ And "users" sharees returned is empty
460+ And "exact emails" sharees returned is empty
461+ And "emails" sharees returned is empty
462+
429463 Scenario : Search e-mail
430464 Given As an "test"
431465 When getting sharees for
0 commit comments