Skip to content

fix: remove Oracle/OCI support from installer and setup - #41555

Merged
DeepDiver1975 merged 3 commits into
masterfrom
fix/oci
May 20, 2026
Merged

DeepDiver1975 merged 3 commits into
masterfrom
fix/oci

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Summary

  • Removes --database-connection-string option and all OCI-specific logic from maintenance:install command
  • Drops oci from the supported databases list, $dbSetupClasses, and getSystemInfo() in Setup.php
  • Removes Oracle UI elements (hidden field, tablespace fieldset, JS handlers) from the web installer
  • Deletes OC\Setup\OCI class entirely
  • Updates SetupTest assertions to reflect Oracle's removal

Closes #41554

Test plan

  • Run php occ maintenance:install --help and confirm --database-connection-string and oci are gone
  • Verify the web installer no longer shows Oracle as a database option
  • Run tests/lib/SetupTest.php in CI to confirm updated assertions pass

🤖 Generated with Claude Code

DeepDiver1975 and others added 2 commits May 19, 2026 22:49
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]>
@update-docs

update-docs Bot commented May 20, 2026

Copy link
Copy Markdown

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 phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, they are all Oracle things that are deleted.

@jvillafanez

Copy link
Copy Markdown
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.

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

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.

absolutly true - for the time being we keep other code elements ....

@DeepDiver1975
DeepDiver1975 merged commit 95e3cde into master May 20, 2026
12 checks passed
@DeepDiver1975
DeepDiver1975 deleted the fix/oci branch May 20, 2026 11:33
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maintenance:install --> remove oracle option: database-connection-string

3 participants