Skip to content

Conversation

@ChristophWurst
Copy link
Member

Apps might increase the minimum php version requirement, in which case
an update could break the app or even the whole instance. We must not
install those releases, or better, don't even show them for
update/installation. This extends the app fetcher code to filter out the
releases that are not installable.

The filter respects minimum and maximum requirements. E.g. apps that are
still only released for php7.3 won't show up for php7.4 instances. This
behavior is new but if an app lists an explicit version requirement,
then we ought to repect that.

Apps to test this with are twofactor_totp, twofactor_u2f and ocr as those three only allow php7.3 if we go by the info.xml.

S/o to @nickvergessen for the very useful pointers.

@ChristophWurst ChristophWurst added bug 2. developing Work in progress labels Nov 27, 2020
@ChristophWurst ChristophWurst added this to the Nextcloud 21 milestone Nov 27, 2020
@ChristophWurst ChristophWurst self-assigned this Nov 27, 2020
@StCyr

This comment has been minimized.

@ChristophWurst

This comment has been minimized.

@StCyr

This comment has been minimized.

Apps might increase the minimum php version requirement, in which case
an update could break the app or even the whole instance. We must not
install those releases, or better, don't even show them for
update/installation. This extends the app fetcher code to filter out the
releases that are not installable.

The filter respects minimum and maximum requirements. E.g. apps that are
still only released for php7.3 won't show up for php7.4 instances. This
behavior is new but if an app lists an explicit version requirement,
then we ought to repect that.

Signed-off-by: Christoph Wurst <[email protected]>
@ChristophWurst ChristophWurst force-pushed the fix/app-store-check-php-compat branch from f6260a2 to 24237f1 Compare December 4, 2020 15:52
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Dec 4, 2020
@ChristophWurst ChristophWurst marked this pull request as ready for review December 4, 2020 15:53
@ChristophWurst
Copy link
Member Author

🏓 please review :)

@rullzer rullzer merged commit 582ce5a into master Dec 10, 2020
@rullzer rullzer deleted the fix/app-store-check-php-compat branch December 10, 2020 20:43
@ChristophWurst
Copy link
Member Author

/backport to stable20

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

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants