Skip to content

Check php compatibility of app store app releases - #24416

Merged
rullzer merged 1 commit into
masterfrom
fix/app-store-check-php-compat
Dec 10, 2020
Merged

Check php compatibility of app store app releases#24416
rullzer merged 1 commit into
masterfrom
fix/app-store-check-php-compat

Conversation

@ChristophWurst

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

@ChristophWurstChristophWurst added this to the Nextcloud 21 milestone Nov 27, 2020
@ChristophWurstChristophWurst self-assigned this Nov 27, 2020
Comment threadlib/private/App/AppStore/Fetcher/AppFetcher.php Outdated
Comment threadlib/private/App/AppStore/Fetcher/AppFetcher.php Outdated
Comment threadlib/private/App/AppStore/Fetcher/AppFetcher.php Outdated
@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 <christoph@winzerhof-wurst.at>
@ChristophWurst
ChristophWurstforce-pushed the fix/app-store-check-php-compat branch from f6260a2 to 24237f1CompareDecember 4, 2020 15:52
@ChristophWurstChristophWurst 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
@ChristophWurstChristophWurst mentioned this pull request Dec 4, 2020
2 tasks
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

🏓 please review :)

@rullzer
rullzer merged commit 582ce5a into masterDec 10, 2020
@rullzer
rullzer deleted the fix/app-store-check-php-compat branch December 10, 2020 20:43
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

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

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@ChristophWurst@StCyr@rullzer@juliusknorr@kesselb