Compare commits

...

4 Commits

Author SHA1 Message Date
Josh 255ceb6bac chore(provisioning_api): drop unused public/remote handler code from tests
Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-08-18 12:19:15 -04:00
Josh cd64a9cd6e chore(provisioning_api): drop unused public/remote handler code
Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-08-18 12:15:02 -04:00
Josh 1ebd1aee2f chore(OC_App): drop unused public/remote handler code
Also drops long ago deprecated and removed ocsid support (nextcloud/server#6928 & nextcloud/appstore#489).

Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-08-18 12:12:54 -04:00
Josh 59a24c4f1a chore(Installer): drop unused public/remote handler code
Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-08-18 12:06:11 -04:00
4 changed files with 0 additions and 39 deletions
@@ -196,10 +196,6 @@ class AppConfigController extends OCSController {
throw new \InvalidArgumentException('The given key can not be set');
}
if ($app === 'core' && (strpos($key, 'public_') === 0 || strpos($key, 'remote_') === 0)) {
throw new \InvalidArgumentException('The given key can not be set');
}
if ($app === 'files'
&& $key === 'default_quota'
&& $value === 'none'
@@ -359,8 +359,6 @@ class AppConfigControllerTest extends TestCase {
public static function dataVerifyConfigKey(): array {
return [
['activity', 'abc', ''],
['dav', 'public_route', ''],
['files', 'remote_route', ''],
['core', 'encryption_enabled', 'yes'],
];
}
@@ -379,10 +377,6 @@ class AppConfigControllerTest extends TestCase {
['contacts', 'types', ''],
['core', 'encryption_enabled', 'no'],
['core', 'encryption_enabled', ''],
['core', 'public_files', ''],
['core', 'public_dav', ''],
['core', 'remote_files', ''],
['core', 'remote_dav', ''],
];
}
-16
View File
@@ -123,14 +123,6 @@ class Installer {
$config->setAppValue($info['id'], 'installed_version', \OCP\Server::get(IAppManager::class)->getAppVersion($info['id'], false));
$config->setAppValue($info['id'], 'enabled', 'no');
//set remote/public handlers
foreach ($info['remote'] as $name => $path) {
$config->setAppValue('core', 'remote_' . $name, $info['id'] . '/' . $path);
}
foreach ($info['public'] as $name => $path) {
$config->setAppValue('core', 'public_' . $name, $info['id'] . '/' . $path);
}
OC_App::setAppTypes($info['id']);
return $info['id'];
@@ -616,14 +608,6 @@ class Installer {
$config->setAppValue($app, 'ocsid', $info['ocsid']);
}
//set remote/public handlers
foreach ($info['remote'] as $name => $path) {
$config->setAppValue('core', 'remote_' . $name, $app . '/' . $path);
}
foreach ($info['public'] as $name => $path) {
$config->setAppValue('core', 'public_' . $name, $app . '/' . $path);
}
OC_App::setAppTypes($info['id']);
return $info['id'];
-13
View File
@@ -682,19 +682,6 @@ class OC_App {
self::setupBackgroundJobs($appData['background-jobs']);
//set remote/public handlers
if (array_key_exists('ocsid', $appData)) {
\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
} elseif (\OC::$server->getConfig()->getAppValue($appId, 'ocsid') !== '') {
\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
}
foreach ($appData['remote'] as $name => $path) {
\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
}
foreach ($appData['public'] as $name => $path) {
\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
}
self::setAppTypes($appId);
$version = Server::get(\OCP\App\IAppManager::class)->getAppVersion($appId);