Repository navigation
fix: remove Oracle/OCI support from installer and setup - #41555
Merged
Merged
Conversation
Oracle is no longer a supported database. Remove the --database-connection-string option from maintenance:install, drop OCI from the setup class registry and supported databases list, clean up the web installer template and JS, and update the SetupTest assertions accordingly. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
Oracle is no longer supported, so the setup class used during installation is no longer needed. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
- Drop dbconnectionstring and dbConnectionString from AbstractDatabase - Remove dbtablespace default from SetupController - Remove oci from DBCONFIGS, Oracle docker spin-up, and oci notes in autotest.sh and autotest-external.sh - Remove plugin_wait_for_oracle(), oracle) case, and --database-connection-string branch from install-server.sh Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
phil-davis
approved these changes
May 20, 2026
phil-davis
left a comment
Contributor
There was a problem hiding this comment.
Looks reasonable, they are all Oracle things that are deleted.
jvillafanez
approved these changes
May 20, 2026
Member
|
There is still some code related to oracle in multiple places that we should remove sooner than later. We probably need to come up with a removal strategy if we don't want to wipe it in one go. |
Contributor
Author
absolutly true - for the time being we keep other code elements .... |
DeepDiver1975
added a commit
to owncloud/migrate_to_ocis
that referenced
this pull request
Jul 27, 2026
ownCloud Classic 11 supports sqlite, mysql/mariadb and pgsql only - Oracle was removed from the installer and setup in owncloud/core#41555, which deleted OC\Setup\OCI and dropped 'oci' from getSupportedDatabases(). Since v3 of this app requires oc11, no installation can reach the Oracle code path any more, so asserting on it only pins down dead behaviour. The size-column assertion becomes unconditional: the oracle-style quoting of the reserved `size` word is the only platform-specific part, so every supported platform now expects SUM(f.size). Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
DeepDiver1975
added a commit
to owncloud/migrate_to_ocis
that referenced
this pull request
Jul 27, 2026
* feat: support ownCloud Server 11 (drop ownCloud 10) Target the ownCloud 11 runtime baseline: - require PHP 8.3+ in composer.json and pin the platform to 8.3; regenerate composer.lock accordingly (drops the php80/php81 polyfills) - pin the appinfo dependency range to ownCloud 11 only (min/max 11); the app no longer installs on ownCloud 10, which stays on the 2.0.x line - build CI against core v11.0.0-rc2 on PHP 8.3 (core-ref replaces the core-ref-php74 input used for 7.4) - sign the release with the standalone ocsign CLI and a G2 leaf certificate, since oc11 removed occ integrity:sign-app and mandates a valid signature Co-Authored-By: Claude Opus 4.8 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * fix: adapt to ownCloud 11 runtime (DBAL 3, Symfony 7, signing) CI against core v11.0.0-rc2 surfaced runtime breakages that PHP 8.3 syntax checks alone did not catch: - Doctrine DBAL 3 renamed MySqlPlatform to MySQLPlatform. Use the new name in Storage::getUsedTotalSpace(); MariaDBPlatform still extends it, so the instanceof check keeps covering MariaDB. - Symfony Console 7 types getHelper() as HelperInterface, which does not expose formatBlock(). Instantiate FormatterHelper directly in CommandMigration::printException(). Acceptance suite: - run against the owncloud/server:11.0.0-rc2 image (the app now requires oc11). - oc11 enforces app code-signing, so disable the integrity check before enabling the unsigned dev checkout under test. Released tarballs are signed with the G2 certificate. Co-Authored-By: Claude Opus 4.8 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * fix: instantiate QuestionHelper directly for Symfony 7 Symfony Console 7 types Command::getHelper() as HelperInterface, which does not expose ask(), so phan rejects $this->getHelper('question')->ask(...) even with an inline @var override. Instantiate QuestionHelper directly, matching the FormatterHelper change; both helpers work standalone. Co-Authored-By: Claude Opus 4.8 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * ci: run the acceptance suite on PHP 8.3 The acceptance workflow still provisioned PHP 7.4 while composer.json pins config.platform.php to 8.3. Since tests/acceptance/run.sh installs the app's composer dependencies on the runner host, that resolved an 8.3 lock file against a 7.4 interpreter - ramsey/collection 2.1.1 requires ^8.1 and brick/math 0.18.0 requires ^8.2, so the install only succeeded because the platform override suppressed the check. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * test: cover platform-specific SQL in Storage::getUsedTotalSpace() The helper branches on the database platform twice - CONCAT() vs || for string concatenation, and oracle-style quoting of the reserved `size` column - but had no unit test guarding either branch. A wrong platform check would not raise an error, it would silently return a wrong total (MySQL reads || as logical OR), so the branch needs pinning down. Mock IDBConnection/IQueryBuilder to record the select alias and where conditions, then assert the expected dialect per platform, plus the SUM() over no rows case which yields NULL and must map to 0. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * chore: regenerate composer.lock with composer 2.9+ The oc11 lock file was regenerated with an older composer, which downgraded plugin-api-version from 2.9.0 to 2.6.0 and re-encoded the empty stability-flags/platform-dev maps as JSON arrays. No package changes; this just stops the metadata from flip-flopping on every regeneration. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * docs: update the PHP baseline in AGENTS.md to 8.3 Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * test: drop the Oracle cases from StorageTest ownCloud Classic 11 supports sqlite, mysql/mariadb and pgsql only - Oracle was removed from the installer and setup in owncloud/core#41555, which deleted OC\Setup\OCI and dropped 'oci' from getSupportedDatabases(). Since v3 of this app requires oc11, no installation can reach the Oracle code path any more, so asserting on it only pins down dead behaviour. The size-column assertion becomes unconditional: the oracle-style quoting of the reserved `size` word is the only platform-specific part, so every supported platform now expects SUM(f.size). Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> --------- Signed-off-by: Thomas Müller <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--database-connection-stringoption and all OCI-specific logic frommaintenance:installcommandocifrom the supported databases list,$dbSetupClasses, andgetSystemInfo()inSetup.phpOC\Setup\OCIclass entirelySetupTestassertions to reflect Oracle's removalCloses #41554
Test plan
php occ maintenance:install --helpand confirm--database-connection-stringandociare gonetests/lib/SetupTest.phpin CI to confirm updated assertions pass🤖 Generated with Claude Code