Skip to content

Commit 7b26873

Browse files
Merge pull request #57675 from nextcloud/backport/57511/stable32
2 parents 514a95c + 5a08b83 commit 7b26873

File tree

7 files changed

+624
-1039
lines changed

7 files changed

+624
-1039
lines changed

build/integration/collaboration_features/autocomplete.feature

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ Feature: autocomplete
7171
Then get autocomplete for "autocomplete@example.com"
7272
| id | source |
7373
| autocomplete | users |
74-
| autocomplete | users |
7574

7675
Scenario: getting autocomplete from address book without enumeration
7776
Given As an "admin"
@@ -96,7 +95,6 @@ Feature: autocomplete
9695
Then get autocomplete for "autocomplete@example.com"
9796
| id | source |
9897
| autocomplete | users |
99-
| autocomplete | users |
10098

10199
Scenario: getting autocomplete emails from address book with enumeration
102100
Given As an "admin"

build/integration/features/bootstrap/ShareesContext.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,17 @@ class ShareesContext implements Context, SnippetAcceptingContext {
1919
use AppConfiguration;
2020

2121
protected function resetAppConfigs() {
22-
$this->deleteServerConfig('core', 'shareapi_only_share_with_group_members');
23-
$this->deleteServerConfig('core', 'shareapi_allow_share_dialog_user_enumeration');
2422
$this->deleteServerConfig('core', 'shareapi_allow_group_sharing');
23+
$this->deleteServerConfig('core', 'shareapi_allow_share_dialog_user_enumeration');
2524
$this->deleteServerConfig('core', 'shareapi_exclude_groups');
2625
$this->deleteServerConfig('core', 'shareapi_exclude_groups_list');
26+
$this->deleteServerConfig('core', 'shareapi_only_share_with_group_members');
27+
$this->deleteServerConfig('core', 'shareapi_only_share_with_group_members_exclude_group_list');
28+
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match');
29+
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_email');
30+
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_ignore_second_dn');
31+
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_userid');
32+
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_to_group');
33+
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_to_phone');
2734
}
2835
}

build/integration/sharees_features/sharees.feature

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ Feature: sharees
291291
| itemType | file |
292292
Then the OCS status code should be "100"
293293
And the HTTP status code should be "200"
294-
Then "exact users" sharees returned are
295-
| Sharee1 | 0 | Sharee1 | Sharee1 |
294+
Then "exact users" sharees returned is empty
296295
Then "users" sharees returned is empty
297296
Then "exact groups" sharees returned is empty
298297
Then "groups" sharees returned is empty
@@ -354,12 +353,9 @@ Feature: sharees
354353
| shareType | 0 |
355354
Then the OCS status code should be "100"
356355
And the HTTP status code should be "200"
357-
# UserPlugin provides two identical results (except for the field order, but
358-
# that is hidden by the check).
359356
# MailPlugin does not add a result if there is already one for that user.
360357
And "exact users" sharees returned are
361358
| Sharee2 | 0 | Sharee2 | sharee2@system.com |
362-
| Sharee2 | 0 | Sharee2 | sharee2@system.com |
363359
And "users" sharees returned is empty
364360
And "exact groups" sharees returned is empty
365361
And "groups" sharees returned is empty
@@ -546,11 +542,8 @@ Feature: sharees
546542
| shareTypes | 0 4 |
547543
Then the OCS status code should be "100"
548544
And the HTTP status code should be "200"
549-
# UserPlugin provides two identical results (except for the field order, but
550-
# that is hidden by the check)
551545
And "exact users" sharees returned are
552546
| Sharee2 | 0 | Sharee2 | sharee2@system.com |
553-
| Sharee2 | 0 | Sharee2 | sharee2@system.com |
554547
And "users" sharees returned is empty
555548
And "exact groups" sharees returned is empty
556549
And "groups" sharees returned is empty
@@ -570,11 +563,8 @@ Feature: sharees
570563
| shareTypes | 0 4 |
571564
Then the OCS status code should be "100"
572565
And the HTTP status code should be "200"
573-
# UserPlugin provides two identical results (except for the field order, but
574-
# that is hidden by the check)
575566
And "exact users" sharees returned are
576567
| Sharee2 | 0 | Sharee2 | sharee2@system.com |
577-
| Sharee2 | 0 | Sharee2 | sharee2@system.com |
578568
And "users" sharees returned is empty
579569
And "exact groups" sharees returned is empty
580570
And "groups" sharees returned is empty

build/integration/sharees_features/sharees_provisioningapiv2.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ Feature: sharees_provisioningapiv2
189189
| itemType | file |
190190
Then the OCS status code should be "200"
191191
And the HTTP status code should be "200"
192-
Then "exact users" sharees returned are
193-
| Sharee1 | 0 | Sharee1 | Sharee1 |
192+
Then "exact users" sharees returned is empty
194193
Then "users" sharees returned is empty
195194
Then "exact groups" sharees returned is empty
196195
Then "groups" sharees returned is empty

0 commit comments

Comments
 (0)