-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/app fetcher php compat comparison #25335
Conversation
This reverts commit bedd9ac.
When app app specifies php 7.4 as upper limit we have to allow the installation on php>7.4.0. The previous version check didn't do that. This adjusts the regexes to discard any irrelevant suffix after the three version numbers so that we can use more fine granular checks than php's version_compare can do out of the box, like for php 7.4 we only compare the major and minor version numbers and ignore the patch level. Signed-off-by: Christoph Wurst <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
['13.0.1-beta.1', '13', '<=', true], | ||
['7.4.14', '7.4', '<=', true], | ||
['7.4.14-ubuntu', '7.4', '<=', true], | ||
['7.4.14-ubuntu', '7.4.15', '<=', true], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also have a false test with Ubuntu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this get backported to NC20? |
/backport to stable20 |
Hello Christoph How to implement the patch please? I never had an issue like this before. |
Let me show you a magic trick. The PR URL is Then you can use your |
Having the same issue as described here by others - unable to locate/enable the TOTP app in Nextcloud. I've tried to apply the patch but am getting the following response. I have a brand new installation of Nextcloud 20.0.6.1 with Ubuntu 20.04.1 LTS and PHP 7.4.14. I am a total nub to Nextcloud administration and git, this was my first build so any help will be much appreciated. |
Do besides being a developer you are a magician too 👍💐 |
|
Turbo response, thanks. |
it looks like we can release 20.0.7 next week, but I can't promise it |
Cool, I think I better wait - if there is a slight chance to mess up the patch - I will manage. (joking). |
Thank your Christoph, the patch resolved the issue and I am now able to install the TOTP plug-in! |
the app store was down, that's why you saw a "new" exception |
Just to clarify: This seems to resolve the problem with extracting Nextcloud News as well? nextcloud/news#1086 |
I installed NC 20.0 7 and the Email App - all works great, thanks a lot. Only it is not keeping my signature - can I do something about it? |
Managed - even with the signature. You are doing an awesome job 👍👍 |
nextcloud/news#1086 (comment).
Known regression but feel free to report is as bug for better tracking. ✌️ |
How would you apply this patch when using a nextcloud snap installation? |
Please ask on https://help.nextcloud.com/c/support/7 |
Hi Christoph, thanks for your patch. I am trying to install it on a Docker container. But I am not quite sure how to apply it. I downloaded it using Do I have to run the patch in a certain folder? What path do I have to enter? Am I doing anything else wrong? Thanks for your help! |
@DennisWilken just update your NC to 20.0.7 (it is included with this version). There is no need to apply the fix manually. |
Version 20.0.7 is not yet available on docker (see here) So I can either wait, patch or manually upgrade. |
Reverts bedd9ac.
This is how #24416 was meant to work.
Fixes nextcloud/mail#4383
Note to testers: there is some caching that might make it impossible to see the fix immediately. Apply the changes as patch from https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/25335.patch, give the cache an hour or so to expire and try again