Skip to content

Commit

Permalink
Merge branch 'master' into fix/42480/user-admin-not-admin
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv authored Feb 24, 2024
2 parents c98b046 + 1d09dec commit b080113
Show file tree
Hide file tree
Showing 518 changed files with 9,266 additions and 6,420 deletions.
14 changes: 11 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,15 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
interval: monthly
timezone: Europe/Paris
groups:
github-actions:
patterns:
- "*"
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"

2 changes: 1 addition & 1 deletion .github/workflows/command-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
reactions: "+1"

- name: Parse command
uses: skjnldsv/parse-command-comment@d8c0034c481b791dd6348fcacd9c510dc3a4cb4f # v2
uses: skjnldsv/parse-command-comment@5c955203c52424151e6d0e58fb9de8a9f6a605a1 # v2
id: command

# Init path depending on which command is run
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ jobs:
with:
blueprint: tests/blueprints/basic.toml
ref: ${{ github.event.pull_request.head.ref }}

- name: Run before measurements
uses: nextcloud/profiler@1e66a9de5f76a01e9d1db4f0153bcc1cbf989b3d
uses: nextcloud/profiler@6801ee10fc80f10b444388fb6ca9b36ad8a2ea83
with:
run: |
curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
Expand All @@ -68,7 +69,7 @@ jobs:
- name: Run after measurements
id: compare
uses: nextcloud/profiler@1e66a9de5f76a01e9d1db4f0153bcc1cbf989b3d
uses: nextcloud/profiler@6801ee10fc80f10b444388fb6ca9b36ad8a2ea83
with:
run: |
curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/phpunit-oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
phpunit-oci:
runs-on: ubuntu-latest

needs: changes
if: needs.changes.outputs.src != 'false' && ${{ github.repository_owner != 'nextcloud-gmbh' }}

strategy:
Expand Down
2 changes: 1 addition & 1 deletion apps/admin_audit/lib/Actions/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

class Console extends Action {
/**
* @param $arguments
* @param array $arguments
*/
public function runCommand(array $arguments): void {
if (!isset($arguments[1]) || $arguments[1] === '_completion') {
Expand Down
1 change: 0 additions & 1 deletion apps/admin_audit/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
use Psr\Log\LoggerInterface;

class Application extends App implements IBootstrap {

/** @var LoggerInterface */
protected $logger;

Expand Down
21 changes: 10 additions & 11 deletions apps/admin_audit/lib/AuditLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
*/
class AuditLogger implements IAuditLogger {

/** @var LoggerInterface */
private $parentLogger;
private LoggerInterface $parentLogger;

public function __construct(ILogFactory $logFactory, IConfig $config) {
$auditType = $config->getSystemValueString('log_type_audit', 'file');
Expand All @@ -50,39 +49,39 @@ public function __construct(ILogFactory $logFactory, IConfig $config) {
$this->parentLogger = $logFactory->getCustomPsrLogger($logFile, $auditType, $auditTag);
}

public function emergency($message, array $context = array()) {
public function emergency($message, array $context = array()): void {
$this->parentLogger->emergency($message, $context);
}

public function alert($message, array $context = array()) {
public function alert($message, array $context = array()): void {
$this->parentLogger->alert($message, $context);
}

public function critical($message, array $context = array()) {
public function critical($message, array $context = array()): void {
$this->parentLogger->critical($message, $context);
}

public function error($message, array $context = array()) {
public function error($message, array $context = array()): void {
$this->parentLogger->error($message, $context);
}

public function warning($message, array $context = array()) {
public function warning($message, array $context = array()): void {
$this->parentLogger->warning($message, $context);
}

public function notice($message, array $context = array()) {
public function notice($message, array $context = array()): void {
$this->parentLogger->notice($message, $context);
}

public function info($message, array $context = array()) {
public function info($message, array $context = array()): void {
$this->parentLogger->info($message, $context);
}

public function debug($message, array $context = array()) {
public function debug($message, array $context = array()): void {
$this->parentLogger->debug($message, $context);
}

public function log($level, $message, array $context = array()) {
public function log($level, $message, array $context = array()): void {
$this->parentLogger->log($level, $message, $context);
}
}
10 changes: 4 additions & 6 deletions apps/admin_audit/tests/Actions/SecurityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,15 @@
use OCA\AdminAudit\AuditLogger;
use OCP\Authentication\TwoFactorAuth\IProvider;
use OCP\IUser;
use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;

class SecurityTest extends TestCase {
/** @var AuditLogger|\PHPUnit\Framework\MockObject\MockObject */
private $logger;
private AuditLogger|MockObject $logger;

/** @var Security */
private $security;
private Security $security;

/** @var IUser|\PHPUnit\Framework\MockObject\MockObject */
private $user;
private MockObject|IUser $user;

protected function setUp(): void {
parent::setUp();
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/src/DashboardApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ export default {
background-position: center;
float: left;
margin-top: -6px;
margin-left: 6px;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions apps/dav/appinfo/v1/caldav.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use OC\KnownUser\KnownUserService;
use OCA\DAV\CalDAV\CalDavBackend;
use OCA\DAV\CalDAV\CalendarRoot;
use OCA\DAV\CalDAV\Security\RateLimitingPlugin;
use OCA\DAV\Connector\LegacyDAVACL;
use OCA\DAV\Connector\Sabre\Auth;
use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin;
Expand Down Expand Up @@ -116,6 +117,7 @@
$server->addPlugin(\OC::$server->query(\OCA\DAV\CalDAV\Schedule\IMipPlugin::class));
}
$server->addPlugin(new ExceptionLoggerPlugin('caldav', $logger));
$server->addPlugin(\OCP\Server::get(RateLimitingPlugin::class));

// And off we go!
$server->exec();
2 changes: 2 additions & 0 deletions apps/dav/composer/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\PropFilter' => $baseDir . '/../lib/CalDAV/Search/Xml/Filter/PropFilter.php',
'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\SearchTermFilter' => $baseDir . '/../lib/CalDAV/Search/Xml/Filter/SearchTermFilter.php',
'OCA\\DAV\\CalDAV\\Search\\Xml\\Request\\CalendarSearchReport' => $baseDir . '/../lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php',
'OCA\\DAV\\CalDAV\\Security\\RateLimitingPlugin' => $baseDir . '/../lib/CalDAV/Security/RateLimitingPlugin.php',
'OCA\\DAV\\CalDAV\\Sharing\\Backend' => $baseDir . '/../lib/CalDAV/Sharing/Backend.php',
'OCA\\DAV\\CalDAV\\Sharing\\Service' => $baseDir . '/../lib/CalDAV/Sharing/Service.php',
'OCA\\DAV\\CalDAV\\Status\\StatusService' => $baseDir . '/../lib/CalDAV/Status/StatusService.php',
Expand Down Expand Up @@ -316,6 +317,7 @@
'OCA\\DAV\\Migration\\Version1027Date20230504122946' => $baseDir . '/../lib/Migration/Version1027Date20230504122946.php',
'OCA\\DAV\\Migration\\Version1029Date20221114151721' => $baseDir . '/../lib/Migration/Version1029Date20221114151721.php',
'OCA\\DAV\\Migration\\Version1029Date20231004091403' => $baseDir . '/../lib/Migration/Version1029Date20231004091403.php',
'OCA\\DAV\\Migration\\Version1030Date20240205103243' => $baseDir . '/../lib/Migration/Version1030Date20240205103243.php',
'OCA\\DAV\\Profiler\\ProfilerPlugin' => $baseDir . '/../lib/Profiler/ProfilerPlugin.php',
'OCA\\DAV\\Provisioning\\Apple\\AppleProvisioningNode' => $baseDir . '/../lib/Provisioning/Apple/AppleProvisioningNode.php',
'OCA\\DAV\\Provisioning\\Apple\\AppleProvisioningPlugin' => $baseDir . '/../lib/Provisioning/Apple/AppleProvisioningPlugin.php',
Expand Down
2 changes: 2 additions & 0 deletions apps/dav/composer/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class ComposerStaticInitDAV
'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\PropFilter' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Filter/PropFilter.php',
'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\SearchTermFilter' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Filter/SearchTermFilter.php',
'OCA\\DAV\\CalDAV\\Search\\Xml\\Request\\CalendarSearchReport' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php',
'OCA\\DAV\\CalDAV\\Security\\RateLimitingPlugin' => __DIR__ . '/..' . '/../lib/CalDAV/Security/RateLimitingPlugin.php',
'OCA\\DAV\\CalDAV\\Sharing\\Backend' => __DIR__ . '/..' . '/../lib/CalDAV/Sharing/Backend.php',
'OCA\\DAV\\CalDAV\\Sharing\\Service' => __DIR__ . '/..' . '/../lib/CalDAV/Sharing/Service.php',
'OCA\\DAV\\CalDAV\\Status\\StatusService' => __DIR__ . '/..' . '/../lib/CalDAV/Status/StatusService.php',
Expand Down Expand Up @@ -331,6 +332,7 @@ class ComposerStaticInitDAV
'OCA\\DAV\\Migration\\Version1027Date20230504122946' => __DIR__ . '/..' . '/../lib/Migration/Version1027Date20230504122946.php',
'OCA\\DAV\\Migration\\Version1029Date20221114151721' => __DIR__ . '/..' . '/../lib/Migration/Version1029Date20221114151721.php',
'OCA\\DAV\\Migration\\Version1029Date20231004091403' => __DIR__ . '/..' . '/../lib/Migration/Version1029Date20231004091403.php',
'OCA\\DAV\\Migration\\Version1030Date20240205103243' => __DIR__ . '/..' . '/../lib/Migration/Version1030Date20240205103243.php',
'OCA\\DAV\\Profiler\\ProfilerPlugin' => __DIR__ . '/..' . '/../lib/Profiler/ProfilerPlugin.php',
'OCA\\DAV\\Provisioning\\Apple\\AppleProvisioningNode' => __DIR__ . '/..' . '/../lib/Provisioning/Apple/AppleProvisioningNode.php',
'OCA\\DAV\\Provisioning\\Apple\\AppleProvisioningPlugin' => __DIR__ . '/..' . '/../lib/Provisioning/Apple/AppleProvisioningPlugin.php',
Expand Down
5 changes: 3 additions & 2 deletions apps/dav/l10n/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ OC.L10N.register(
"dav",
{
"Calendar" : "التقويم",
"To-dos" : "قائمة المهام",
"Tasks" : "المهام",
"Personal" : "شخصي",
"{actor} created calendar {calendar}" : "{actor} قام بإنشاء تقويم {calendar}",
"You created calendar {calendar}" : "قمت بإنشاء التقويم {calendar}",
Expand Down Expand Up @@ -143,7 +143,6 @@ OC.L10N.register(
"Configures a CalDAV account" : "تكوين حساب CalDAV",
"Configures a CardDAV account" : "تكوين حساب CardDAV",
"Events" : "أحداث",
"Tasks" : "المهام",
"Untitled task" : "مهمة بدون اسم",
"Completed on %s" : "تمّ الانتهاء منه في %s",
"Due on %s by %s" : "مطلوبٌ في %s من قِبَل%s",
Expand Down Expand Up @@ -171,6 +170,7 @@ OC.L10N.register(
"Delete slot" : "حذف فُرَضَةٍ slot زمنيّةٍ",
"No working hours set" : "لم يتم تحديد ساعات العمل",
"Add slot" : "أضِف فُرَضَةً slot زمنيّةً",
"Weekdays" : "أيام الأسبوع",
"Monday" : "الإثنين",
"Tuesday" : "الثلاثاء",
"Wednesday" : "الأربعاء",
Expand Down Expand Up @@ -205,6 +205,7 @@ OC.L10N.register(
"Are you accepting the invitation?" : "هل تقبل الدعوة؟",
"Tentative" : "مبدئي",
"Your attendance was updated successfully." : "حضورك تم تحديثه بنجاحٍ",
"To-dos" : "قائمة المهام",
"If you configure your working hours, other users will see when you are out of office when they book a meeting." : "إذا قمت بتهيئة ساعات العمل الخاصة بك، فسيظهر للمستخدمين الآخرين عندما يحجزون معك موعداً إذا ما كنت في المكتب أو خارجه."
},
"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;");
5 changes: 3 additions & 2 deletions apps/dav/l10n/ar.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ "translations": {
"Calendar" : "التقويم",
"To-dos" : "قائمة المهام",
"Tasks" : "المهام",
"Personal" : "شخصي",
"{actor} created calendar {calendar}" : "{actor} قام بإنشاء تقويم {calendar}",
"You created calendar {calendar}" : "قمت بإنشاء التقويم {calendar}",
Expand Down Expand Up @@ -141,7 +141,6 @@
"Configures a CalDAV account" : "تكوين حساب CalDAV",
"Configures a CardDAV account" : "تكوين حساب CardDAV",
"Events" : "أحداث",
"Tasks" : "المهام",
"Untitled task" : "مهمة بدون اسم",
"Completed on %s" : "تمّ الانتهاء منه في %s",
"Due on %s by %s" : "مطلوبٌ في %s من قِبَل%s",
Expand Down Expand Up @@ -169,6 +168,7 @@
"Delete slot" : "حذف فُرَضَةٍ slot زمنيّةٍ",
"No working hours set" : "لم يتم تحديد ساعات العمل",
"Add slot" : "أضِف فُرَضَةً slot زمنيّةً",
"Weekdays" : "أيام الأسبوع",
"Monday" : "الإثنين",
"Tuesday" : "الثلاثاء",
"Wednesday" : "الأربعاء",
Expand Down Expand Up @@ -203,6 +203,7 @@
"Are you accepting the invitation?" : "هل تقبل الدعوة؟",
"Tentative" : "مبدئي",
"Your attendance was updated successfully." : "حضورك تم تحديثه بنجاحٍ",
"To-dos" : "قائمة المهام",
"If you configure your working hours, other users will see when you are out of office when they book a meeting." : "إذا قمت بتهيئة ساعات العمل الخاصة بك، فسيظهر للمستخدمين الآخرين عندما يحجزون معك موعداً إذا ما كنت في المكتب أو خارجه."
},"pluralForm" :"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;"
}
4 changes: 2 additions & 2 deletions apps/dav/l10n/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ OC.L10N.register(
"dav",
{
"Calendar" : "Календар",
"To-dos" : "Задачи за изпълнение",
"Tasks" : "Задачи",
"Personal" : "Личен",
"{actor} created calendar {calendar}" : "{actor} направи календар {calendar}",
"You created calendar {calendar}" : "Създадохте календара {calendar}",
Expand Down Expand Up @@ -141,7 +141,6 @@ OC.L10N.register(
"Configures a CalDAV account" : "Конфигурира профил в CalDAV",
"Configures a CardDAV account" : "Конфигурира профил в CalDAV",
"Events" : "Събития",
"Tasks" : "Задачи",
"Untitled task" : "Задача без заглавие",
"Completed on %s" : "Завършен на %s",
"Due on %s by %s" : "Краен срок на %s от %s",
Expand Down Expand Up @@ -187,6 +186,7 @@ OC.L10N.register(
"Are you accepting the invitation?" : "Приемате ли поканата?",
"Tentative" : "Несигурно",
"Your attendance was updated successfully." : "Вашето присъствие е актуализирано успешно.",
"To-dos" : "Задачи за изпълнение",
"If you configure your working hours, other users will see when you are out of office when they book a meeting." : "Ако конфигурирате работното си време, другите потребители ще виждат кога сте извън офиса, при резервиране на среща."
},
"nplurals=2; plural=(n != 1);");
4 changes: 2 additions & 2 deletions apps/dav/l10n/bg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ "translations": {
"Calendar" : "Календар",
"To-dos" : "Задачи за изпълнение",
"Tasks" : "Задачи",
"Personal" : "Личен",
"{actor} created calendar {calendar}" : "{actor} направи календар {calendar}",
"You created calendar {calendar}" : "Създадохте календара {calendar}",
Expand Down Expand Up @@ -139,7 +139,6 @@
"Configures a CalDAV account" : "Конфигурира профил в CalDAV",
"Configures a CardDAV account" : "Конфигурира профил в CalDAV",
"Events" : "Събития",
"Tasks" : "Задачи",
"Untitled task" : "Задача без заглавие",
"Completed on %s" : "Завършен на %s",
"Due on %s by %s" : "Краен срок на %s от %s",
Expand Down Expand Up @@ -185,6 +184,7 @@
"Are you accepting the invitation?" : "Приемате ли поканата?",
"Tentative" : "Несигурно",
"Your attendance was updated successfully." : "Вашето присъствие е актуализирано успешно.",
"To-dos" : "Задачи за изпълнение",
"If you configure your working hours, other users will see when you are out of office when they book a meeting." : "Ако конфигурирате работното си време, другите потребители ще виждат кога сте извън офиса, при резервиране на среща."
},"pluralForm" :"nplurals=2; plural=(n != 1);"
}
5 changes: 3 additions & 2 deletions apps/dav/l10n/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ OC.L10N.register(
"dav",
{
"Calendar" : "Calendari",
"To-dos" : "Tasques pendents",
"Tasks" : "Tasques",
"Personal" : "Personal",
"{actor} created calendar {calendar}" : "{actor} ha creat el calendari {calendar}",
"You created calendar {calendar}" : "Heu creat el calendari {calendar}",
Expand Down Expand Up @@ -143,7 +143,6 @@ OC.L10N.register(
"Configures a CalDAV account" : "Configura un compte CalDAV",
"Configures a CardDAV account" : "Configura un compte CardDAV",
"Events" : "Esdeveniments",
"Tasks" : "Tasques",
"Untitled task" : "Tasca sense títol",
"Completed on %s" : "Completada el %s",
"Due on %s by %s" : "Venç el %s a les %s",
Expand Down Expand Up @@ -171,6 +170,7 @@ OC.L10N.register(
"Delete slot" : "Suprimeix la franja",
"No working hours set" : "No s'ha definit cap horari laboral",
"Add slot" : "Afegeix una franja",
"Weekdays" : "Dies de la setmana",
"Monday" : "Dilluns",
"Tuesday" : "Dimarts",
"Wednesday" : "Dimecres",
Expand Down Expand Up @@ -205,6 +205,7 @@ OC.L10N.register(
"Are you accepting the invitation?" : "Accepteu la invitació?",
"Tentative" : "Provisional",
"Your attendance was updated successfully." : "S'ha actualitzat correctament l'assistència.",
"To-dos" : "Tasques pendents",
"If you configure your working hours, other users will see when you are out of office when they book a meeting." : "Si configureu el vostre horari laboral, la resta d'usuaris veuran quan sou fora de l'oficina quan planifiquin una reunió."
},
"nplurals=2; plural=(n != 1);");
5 changes: 3 additions & 2 deletions apps/dav/l10n/ca.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ "translations": {
"Calendar" : "Calendari",
"To-dos" : "Tasques pendents",
"Tasks" : "Tasques",
"Personal" : "Personal",
"{actor} created calendar {calendar}" : "{actor} ha creat el calendari {calendar}",
"You created calendar {calendar}" : "Heu creat el calendari {calendar}",
Expand Down Expand Up @@ -141,7 +141,6 @@
"Configures a CalDAV account" : "Configura un compte CalDAV",
"Configures a CardDAV account" : "Configura un compte CardDAV",
"Events" : "Esdeveniments",
"Tasks" : "Tasques",
"Untitled task" : "Tasca sense títol",
"Completed on %s" : "Completada el %s",
"Due on %s by %s" : "Venç el %s a les %s",
Expand Down Expand Up @@ -169,6 +168,7 @@
"Delete slot" : "Suprimeix la franja",
"No working hours set" : "No s'ha definit cap horari laboral",
"Add slot" : "Afegeix una franja",
"Weekdays" : "Dies de la setmana",
"Monday" : "Dilluns",
"Tuesday" : "Dimarts",
"Wednesday" : "Dimecres",
Expand Down Expand Up @@ -203,6 +203,7 @@
"Are you accepting the invitation?" : "Accepteu la invitació?",
"Tentative" : "Provisional",
"Your attendance was updated successfully." : "S'ha actualitzat correctament l'assistència.",
"To-dos" : "Tasques pendents",
"If you configure your working hours, other users will see when you are out of office when they book a meeting." : "Si configureu el vostre horari laboral, la resta d'usuaris veuran quan sou fora de l'oficina quan planifiquin una reunió."
},"pluralForm" :"nplurals=2; plural=(n != 1);"
}
Loading

0 comments on commit b080113

Please sign in to comment.