Skip to content

Commit 87d344f

Browse files
authored
Merge branch 'master' into master
2 parents d2e0b32 + e91840a commit 87d344f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+178
-146
lines changed

3rdparty

Submodule 3rdparty updated 34 files

apps/cloud_federation_api/lib/Controller/RequestHandlerController.php

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,16 @@ public function __construct(
108108
#[NoCSRFRequired]
109109
#[BruteForceProtection(action: 'receiveFederatedShare')]
110110
public function addShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $protocol, $shareType, $resourceType) {
111-
try {
112-
// if request is signed and well signed, no exception are thrown
113-
// if request is not signed and host is known for not supporting signed request, no exception are thrown
114-
$signedRequest = $this->getSignedRequest();
115-
$this->confirmSignedOrigin($signedRequest, 'owner', $owner);
116-
} catch (IncomingRequestException $e) {
117-
$this->logger->warning('incoming request exception', ['exception' => $e]);
118-
return new JSONResponse(['message' => $e->getMessage(), 'validationErrors' => []], Http::STATUS_BAD_REQUEST);
111+
if (!$this->appConfig->getValueBool('core', OCMSignatoryManager::APPCONFIG_SIGN_DISABLED, lazy: true)) {
112+
try {
113+
// if request is signed and well signed, no exception are thrown
114+
// if request is not signed and host is known for not supporting signed request, no exception are thrown
115+
$signedRequest = $this->getSignedRequest();
116+
$this->confirmSignedOrigin($signedRequest, 'owner', $owner);
117+
} catch (IncomingRequestException $e) {
118+
$this->logger->warning('incoming request exception', ['exception' => $e]);
119+
return new JSONResponse(['message' => $e->getMessage(), 'validationErrors' => []], Http::STATUS_BAD_REQUEST);
120+
}
119121
}
120122

121123
// check if all required parameters are set
@@ -356,14 +358,16 @@ public function receiveNotification($notificationType, $resourceType, $providerI
356358
);
357359
}
358360

359-
try {
360-
// if request is signed and well signed, no exception are thrown
361-
// if request is not signed and host is known for not supporting signed request, no exception are thrown
362-
$signedRequest = $this->getSignedRequest();
363-
$this->confirmNotificationIdentity($signedRequest, $resourceType, $notification);
364-
} catch (IncomingRequestException $e) {
365-
$this->logger->warning('incoming request exception', ['exception' => $e]);
366-
return new JSONResponse(['message' => $e->getMessage(), 'validationErrors' => []], Http::STATUS_BAD_REQUEST);
361+
if (!$this->appConfig->getValueBool('core', OCMSignatoryManager::APPCONFIG_SIGN_DISABLED, lazy: true)) {
362+
try {
363+
// if request is signed and well signed, no exception are thrown
364+
// if request is not signed and host is known for not supporting signed request, no exception are thrown
365+
$signedRequest = $this->getSignedRequest();
366+
$this->confirmNotificationIdentity($signedRequest, $resourceType, $notification);
367+
} catch (IncomingRequestException $e) {
368+
$this->logger->warning('incoming request exception', ['exception' => $e]);
369+
return new JSONResponse(['message' => $e->getMessage(), 'validationErrors' => []], Http::STATUS_BAD_REQUEST);
370+
}
367371
}
368372

369373
try {

apps/files/l10n/da.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ OC.L10N.register(
309309
"Move" : "Flyt",
310310
"Move or copy operation failed" : "Flytte- eller kopioperationen fejlede",
311311
"Move or copy" : "Flyt eller kopiér",
312-
"Open folder" : "Åben mappe",
312+
"Open folder" : "Åbn mappe",
313313
"Open folder {displayName}" : "Åben mappe {displayName}",
314314
"Open in Files" : "Åben i Filer",
315315
"Open locally" : "Åben lokalt",

apps/files/l10n/da.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
"Move" : "Flyt",
308308
"Move or copy operation failed" : "Flytte- eller kopioperationen fejlede",
309309
"Move or copy" : "Flyt eller kopiér",
310-
"Open folder" : "Åben mappe",
310+
"Open folder" : "Åbn mappe",
311311
"Open folder {displayName}" : "Åben mappe {displayName}",
312312
"Open in Files" : "Åben i Filer",
313313
"Open locally" : "Åben lokalt",

apps/oauth2/l10n/ga.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ OC.L10N.register(
1313
"OAuth 2.0 allows external services to request access to {instanceName}." : "Ligeann OAuth 2.0 do sheirbhísí seachtracha rochtain a iarraidh ar {instanceName}.",
1414
"Name" : "Ainm",
1515
"Redirection URI" : "Atreo URI",
16+
"Client identifier" : "Aitheantóir cliant",
1617
"Delete client" : "Scrios cliant",
1718
"Make sure you store the secret key, it cannot be recovered." : "Déan cinnte go stórálann tú an eochair rúnda, ní féidir í a aisghabháil.",
1819
"Add client" : "Cuir cliant leis",

apps/oauth2/l10n/ga.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"OAuth 2.0 allows external services to request access to {instanceName}." : "Ligeann OAuth 2.0 do sheirbhísí seachtracha rochtain a iarraidh ar {instanceName}.",
1212
"Name" : "Ainm",
1313
"Redirection URI" : "Atreo URI",
14+
"Client identifier" : "Aitheantóir cliant",
1415
"Delete client" : "Scrios cliant",
1516
"Make sure you store the secret key, it cannot be recovered." : "Déan cinnte go stórálann tú an eochair rúnda, ní féidir í a aisghabháil.",
1617
"Add client" : "Cuir cliant leis",

apps/oauth2/l10n/zh_TW.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ OC.L10N.register(
1313
"OAuth 2.0 allows external services to request access to {instanceName}." : "OAuth 2.0 讓外部服務請求能存取 {instanceName}。",
1414
"Name" : "名稱",
1515
"Redirection URI" : "重新導向 URI",
16+
"Client identifier" : "客戶端辨識字串",
1617
"Delete client" : "刪除客戶端",
1718
"Make sure you store the secret key, it cannot be recovered." : "請確定您儲存了私鑰,其無法還原。",
1819
"Add client" : "新增客戶端",

apps/oauth2/l10n/zh_TW.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"OAuth 2.0 allows external services to request access to {instanceName}." : "OAuth 2.0 讓外部服務請求能存取 {instanceName}。",
1212
"Name" : "名稱",
1313
"Redirection URI" : "重新導向 URI",
14+
"Client identifier" : "客戶端辨識字串",
1415
"Delete client" : "刪除客戶端",
1516
"Make sure you store the secret key, it cannot be recovered." : "請確定您儲存了私鑰,其無法還原。",
1617
"Add client" : "新增客戶端",

apps/settings/lib/Settings/Admin/Sharing.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function getForm() {
5555
'restrictUserEnumerationToPhone' => $this->getHumanBooleanConfig('core', 'shareapi_restrict_user_enumeration_to_phone'),
5656
'restrictUserEnumerationFullMatch' => $this->shareManager->allowEnumerationFullMatch(),
5757
'restrictUserEnumerationFullMatchUserId' => $this->shareManager->matchUserId(),
58+
'restrictUserEnumerationFullMatchDisplayname' => $this->shareManager->matchDisplayName(),
5859
'restrictUserEnumerationFullMatchEmail' => $this->shareManager->matchEmail(),
5960
'restrictUserEnumerationFullMatchIgnoreSecondDN' => $this->shareManager->ignoreSecondDisplayName(),
6061
'enforceLinksPassword' => Util::isPublicLinkPasswordRequired(false),

apps/settings/src/components/AdminSettingsSharingForm.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@
230230
<NcCheckboxRadioSwitch v-model="settings.restrictUserEnumerationFullMatchUserId">
231231
{{ t('settings', 'Also allow autocompletion on full match of the user ID') }}
232232
</NcCheckboxRadioSwitch>
233+
<NcCheckboxRadioSwitch v-model="settings.restrictUserEnumerationFullMatchDisplayname">
234+
{{ t('settings', 'Also allow autocompletion on full match of the display name') }}
235+
</NcCheckboxRadioSwitch>
233236
<NcCheckboxRadioSwitch v-model="settings.restrictUserEnumerationFullMatchEmail">
234237
{{ t('settings', 'Also allow autocompletion on full match of the user email') }}
235238
</NcCheckboxRadioSwitch>
@@ -291,6 +294,7 @@ interface IShareSettings {
291294
restrictUserEnumerationToPhone: boolean
292295
restrictUserEnumerationFullMatch: boolean
293296
restrictUserEnumerationFullMatchUserId: boolean
297+
restrictUserEnumerationFullMatchDisplayname: boolean
294298
restrictUserEnumerationFullMatchEmail: boolean
295299
restrictUserEnumerationFullMatchIgnoreSecondDN: boolean
296300
enforceLinksPassword: boolean

0 commit comments

Comments
 (0)