-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
File integrity gives bad advice on symlinks #16551
Comments
Hi @gerard76 I think this is actually expected behaviour and the solution be to mark these files as "to be ignored" by creating a file <?php
return array(
'fileintegrity.ignore' => DI\add(array(
'w.js',
'w.php',
))
); If someone else can confirm this is expected behaviour then this could be put in an FAQ. |
I think the bug reported isn't that those files are shown, but that the check recommends deleting the original files instead of the "incorrect" symlinks. If someone wants to fix this, they are welcome to submit a Pull Request. |
👍 didn't notice there was a different message. For this particular case it would actually remove those files by adding the config but of course the actual bug remains which is the use of |
Sure you may. I have no problems with the symlinks though. Just reporting a bug. |
|
I ran into this issue today and, indeed, it led to my inadvertently deleting a critical matomo source file. As @tsteur mentioned above the issue is caused because the paths are passed through Tracing the history of the If anybody is anxious about removing the |
… user. Calling realpath on a symlink that was found in the tree, for example, causes Matomo to suggest to the user deleting the target of the symlink. At best this would be a nuisance, and at worst it could be catastrophic (if the user kept a symlink to files outside of Matomo's directory, for example). Fixes matomo-org#16551.
… user. Calling realpath on a symlink that was found in the tree, for example, causes Matomo to suggest to the user deleting the target of the symlink. At best this would be a nuisance, and at worst it could be catastrophic (if the user kept a symlink to files outside of Matomo's directory, for example). Fixes matomo-org#16551.
I added symlinks to matomo.js and matomo.php because matomo is a keyword that is blocked by some blockers.
File integrity is correct in pointing out they should not be there, but the solution it proposes is wrong.
Matomo 3.14.1
2020-10-10 - edit fixed typo
The text was updated successfully, but these errors were encountered: