-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add setup check for recommended PHP modules (i.e. Imagick, intl) #12821
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
Add setup check for recommended PHP modules (i.e. Imagick, intl) #12821
Conversation
|
/backport to stable15 |
|
A few days after the release, people will be asking for a way to hide this warning 🙈 🙉 |
That's easy: install the modules. But also as those warnings are only shown on the admin page it's fairly easy to ignore them - in contrast to the old banner with "code integrity check failed". |
|
@MorrisJobke @danielkesselberg Generally people most likely want to resolve all warnings that appear on the admin panel. Yeah installing the modules works. But if the module is optional and/or only used by optional apps and/or absence can be handled by disabling a certain feature (imagick image rotation or what it was?) then people should not be forced to install/enable them, at least to resolve warnings. So my suggestion:
|
This is also not a warning, but of level "info". IMO it's fine to show potential causes of problems to people. We want to give them the opportunity to have a nice experience with this. The same goes for OPCache or memcache. Sure the application works without it, but it even works better if you enable this. And thus we have this section. It's basically an automatic check of what we recommend against the current instance. The background for this is that nobody reads the docs until something doesn't work. So updating and improving the Nextcloud experience comes the downside that we have no direct channel to communicate knowledge from us to administrators. Those setup checks are basically here to help get the most out of your installation. Also those requirements don't come out of nowhere: intl caused a hard to identify problem on your system: so why not be proactive and recommend to install this to make the Nextcloud work better? Same goes for Imagick: it is written in the theming already, but it seems that this is still overlooked and people complain about a feature to work not as nice as it could: avatars and favicon. With Imagick we can improve the experience a lot and don't have reports of this in the forums and the bug tracker here. Other opinions on this? @skjnldsv @jancborchardt @rullzer @nickvergessen @jospoortvliet ? |
This is also not a warning about a recommended app but general core features. |
skjnldsv
left a comment
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.
Awesome!
|
After this pr is merged we can patch |
Ah jep, didn't meant apps, but PHP modules 😉. And you are right. For OPcache (Although one could discuss the values, 128M for only ~30M Nextcloud PHP scripts? Different topic...), APCu, Redis file locking and such, I also totally agree this should be shown. There is really no reason to not use/set this, if anyhow possible, which might only on hosting providers not be the case. So for other recommendations this is then fine as well/consistent. About
|
|
I do get @MichaIng's points and I also trust your judgement @MorrisJobke. 🙂 |
Sounds like a good improvement to me |
Let me add this and then it's fine to get in. |
fec4dc9 to
8fa87d9
Compare
Done :) |
rullzer
left a comment
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.
🐘
Yes - the docs are not up-to-date it seems. I change it now to only show once theming is enabled. mcrypt is not needed anymore and I handed in a PR to the docs today. So we are on our way to bring both of them in sync. Thanks for your feedback. This also makes Nextcloud just better :) |
|
@MorrisJobke Good to hear that indeed And btw: Great work on docs visual rework. I like it, looks cleaner somehow and better contrasts 👍. And... it stands out from ownCloud docs.
|
@skjnldsv ;) |
weeman1337
left a comment
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.
Works ✓
Signed-off-by: Morris Jobke <[email protected]>
Signed-off-by: Morris Jobke <[email protected]>
8fa87d9 to
5b22225
Compare
|
backport to stable15 in #12837 |
I'm coming here just for that. Imagick is a sieve with a terrible security history. The snap doesn't enable it for that reason, but now all snap users will start seeing an un-dismissable warning about it that will result in bugs being logged. |
|
@kyrofa well, there is also no other php library that does the job. So it's a simple warning, not a red error. |
|
Can we make it possible for nextcloud packagers to specify the warnings that are valid for the packaging method being used? Some file that is not included in the integrity check? We're talking 20k users who will get a warning about which they can do nothing. That seems silly. I'm not trying to stop you from warning about it, I just want a way to opt out of it. |
Same goes for the VM, based on the discussion that the Snap team had. We will not use it per default, though make it optional by installing the |
In mid December I talked to somebody in person that also worked on the snap. I told him that the Imagick stuff that we use only use the functions that were not affected by the security issues (like the SVG problems). By default we only use it for the more safe formats and have disabled for example the SVG previews, because they need additional configuration by the admin to be a bit more safe. @kyrofa Does that help you with judging on the usage? Also have a look at the sample config php file inside |
|
@MorrisJobke not really, if imagick is there it's still a risk, either from improper usage in nextcloud itself or from third-party apps. The only safe option is to not include it, which is what we've always done. |
Fixes #12767
I also added one warning for Imagick - that makes it easy for the theming related issues to find the solution.