]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(profile): make sure the app cannot be disabled as it was in core
authorskjnldsv <skjnldsv@protonmail.com>
Wed, 13 Nov 2024 09:45:01 +0000 (10:45 +0100)
committerskjnldsv <skjnldsv@protonmail.com>
Thu, 14 Nov 2024 09:25:10 +0000 (10:25 +0100)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
apps/profile/appinfo/info.xml
build/integration/features/provisioning-v1.feature
core/shipped.json
tests/lib/App/AppManagerTest.php
tests/lib/AppTest.php

index 6a192119285e8c3776986122cc794f2b09b41e54..293350a768e1e83ee423a225d1b5953f11c293bc 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!--
-  - SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
-  - SPDX-License-Identifier: AGPL-3.0-only
+  - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+  - SPDX-License-Identifier: AGPL-3.0-or-later
 -->
 <info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
@@ -11,7 +11,7 @@
        <description>Provides a customisable user profile interface.</description>
        <version>1.0.0</version>
        <licence>agpl</licence>
-       <author>Chris Ng</author>
+       <author>Nextcloud GmbH</author>
        <namespace>Profile</namespace>
        <category>social</category>
        <bugs>https://github.com/nextcloud/server/issues</bugs>
index 9e281fbd955b13733d59bbf9aa7c5447a64907e3..12498bedd7feda402c447d985e6ea8801fad2ec7 100644 (file)
@@ -599,6 +599,7 @@ Feature: provisioning
       | files_trashbin |
       | files_versions |
       | lookup_server_connector |
+      | profile |
       | provisioning_api |
       | settings |
       | sharebymail |
index 3583ce685464c0bd48d14b1cf9c6e02cb88ee1ee..79a88cf22f09cadb3847f3c3bf63e5c605650289 100644 (file)
@@ -34,8 +34,8 @@
     "provisioning_api",
     "recommendations",
     "related_resources",
-    "settings",
     "serverinfo",
+    "settings",
     "sharebymail",
     "support",
     "survey_client",
     "webhook_listeners"
   ],
   "alwaysEnabled": [
-    "files",
     "cloud_federation_api",
     "dav",
     "federatedfilesharing",
+    "files",
     "lookup_server_connector",
-    "provisioning_api",
     "oauth2",
+    "profile",
+    "provisioning_api",
     "settings",
     "theming",
     "twofactor_backupcodes",
index 266a60bf1596f48d5183637ae71fcb74cba5b63b..8169c25c1603d32a9880b7509266659fc5df849d 100644 (file)
@@ -542,6 +542,7 @@ class AppManagerTest extends TestCase {
                        'files',
                        'lookup_server_connector',
                        'oauth2',
+                       'profile',
                        'provisioning_api',
                        'settings',
                        'test1',
@@ -572,6 +573,7 @@ class AppManagerTest extends TestCase {
                        'files',
                        'lookup_server_connector',
                        'oauth2',
+                       'profile',
                        'provisioning_api',
                        'settings',
                        'test1',
@@ -603,6 +605,7 @@ class AppManagerTest extends TestCase {
                        'dav' => ['id' => 'dav'],
                        'files' => ['id' => 'files'],
                        'federatedfilesharing' => ['id' => 'federatedfilesharing'],
+                       'profile' => ['id' => 'profile'],
                        'provisioning_api' => ['id' => 'provisioning_api'],
                        'lookup_server_connector' => ['id' => 'lookup_server_connector'],
                        'test1' => ['id' => 'test1', 'version' => '1.0.1', 'requiremax' => '9.0.0'],
@@ -661,6 +664,7 @@ class AppManagerTest extends TestCase {
                        'dav' => ['id' => 'dav'],
                        'files' => ['id' => 'files'],
                        'federatedfilesharing' => ['id' => 'federatedfilesharing'],
+                       'profile' => ['id' => 'profile'],
                        'provisioning_api' => ['id' => 'provisioning_api'],
                        'lookup_server_connector' => ['id' => 'lookup_server_connector'],
                        'test1' => ['id' => 'test1', 'version' => '1.0.1', 'requiremax' => '8.0.0'],
@@ -711,6 +715,7 @@ class AppManagerTest extends TestCase {
                        'files',
                        'lookup_server_connector',
                        'oauth2',
+                       'profile',
                        'provisioning_api',
                        'settings',
                        'test1',
index 41643b49ddc14ca880d2e128672b9f8c2b4bb80f..98c3a6ff158b1985e7f44829a4a36d4df8b5a243 100644 (file)
@@ -345,6 +345,7 @@ class AppTest extends \Test\TestCase {
                                        'federatedfilesharing',
                                        'lookup_server_connector',
                                        'oauth2',
+                                       'profile',
                                        'provisioning_api',
                                        'settings',
                                        'theming',
@@ -368,6 +369,7 @@ class AppTest extends \Test\TestCase {
                                        'federatedfilesharing',
                                        'lookup_server_connector',
                                        'oauth2',
+                                       'profile',
                                        'provisioning_api',
                                        'settings',
                                        'theming',
@@ -392,6 +394,7 @@ class AppTest extends \Test\TestCase {
                                        'federatedfilesharing',
                                        'lookup_server_connector',
                                        'oauth2',
+                                       'profile',
                                        'provisioning_api',
                                        'settings',
                                        'theming',
@@ -416,6 +419,7 @@ class AppTest extends \Test\TestCase {
                                        'federatedfilesharing',
                                        'lookup_server_connector',
                                        'oauth2',
+                                       'profile',
                                        'provisioning_api',
                                        'settings',
                                        'theming',
@@ -440,6 +444,7 @@ class AppTest extends \Test\TestCase {
                                        'federatedfilesharing',
                                        'lookup_server_connector',
                                        'oauth2',
+                                       'profile',
                                        'provisioning_api',
                                        'settings',
                                        'theming',
@@ -523,11 +528,11 @@ class AppTest extends \Test\TestCase {
                        );
 
                $apps = \OC_App::getEnabledApps();
-               $this->assertEquals(['files', 'app3', 'cloud_federation_api', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'provisioning_api', 'settings', 'theming', 'twofactor_backupcodes', 'viewer', 'workflowengine'], $apps);
+               $this->assertEquals(['files', 'app3', 'cloud_federation_api', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'profile', 'provisioning_api', 'settings', 'theming', 'twofactor_backupcodes', 'viewer', 'workflowengine'], $apps);
 
                // mock should not be called again here
                $apps = \OC_App::getEnabledApps();
-               $this->assertEquals(['files', 'app3', 'cloud_federation_api', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'provisioning_api', 'settings', 'theming', 'twofactor_backupcodes', 'viewer', 'workflowengine'], $apps);
+               $this->assertEquals(['files', 'app3', 'cloud_federation_api', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'profile', 'provisioning_api', 'settings', 'theming', 'twofactor_backupcodes', 'viewer', 'workflowengine'], $apps);
 
                $this->restoreAppConfig();
                \OC_User::setUserId(null);