Skip to content

[QA] encryption fails on ubuntu 22.04 #342

Open
@jnweiger

Description

@jnweiger

Seen with encryption 1.5.2-rc1 and 1.5.1 and 1.5.0 (not a regression)

On a Ubuntu 22.04 system, php8 is default. We install 7.4 like this:

    LC_ALL=C.UTF-8 add-apt-repository --yes ppa:ondrej/php
    LC_ALL=C.UTF-8 add-apt-repository --yes ppa:ondrej/apache2
    apt update
    apt install -y libapache2-mod-php7.4 php7.4-imagick php7.4-common php7.4-curl php7.4-gd php7.4-imap php7.4-intl
    apt install -y php7.4-ldap php7.4-pgsql php7.4-json php7.4-mbstring php7.4-mysql php7.4-sqlite3 php7.4-ssh2
    apt install -y php7.4-xml php7.4-zip php7.4-apcu php7.4-redis php7.4-gmp
    apt install -y php7.4-bcmath php7.4-igbinary

Note: there is no php7.4-phpseclib package currently available.

After installing owncloud 10.10.0 the following occ commands crash the system:

occ app:enable encryption
occ encryption:enable
occ encryption:select-encryption-type masterkey -y
An unhandled exception has been thrown:
ArgumentCountError: Too few arguments to function OC\Files\Storage\Wrapper\Wrapper::file_put_contents(), 1 passed in /var/www/owncloud/lib/private/Files/View.php on line 1226 and exactly 2 expected in /var/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php:259

After that, the system is unusable.

Expected behaviour:

  • owncloud detects the incompatibility early, and does not enable encryption on a system, where preconditions are not met.

See also:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions