-
Notifications
You must be signed in to change notification settings - Fork 50
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
Attached Files are not removed on Uninstall #370
Comments
Hello @kiwiradler, could you please give more details? For example, maybe you can show some sample message text what was sent and what was received in notification. I have reviewed the code and tested so files are attached to a message entry only if I upload it and on save the content in database has a string like this |
@kiwiradler Thanks for the images, for me it looks like the messages were created by current User. I can only guess if you have installed the module REST API https://marketplace.humhub.com/module/rest/manual and the messages were created by it. |
@kiwiradler Can you extract the relevant table records (mail_message table, file table, etc.) from the database and post them here? |
What exactly do you need? If I export the message table, everybody here can read all the messages from our network?! The messages are not encrypted... |
You do not have to publish any sensitive information here. For example, it would be interesting to see the corresponding "files" table entry for an affected file. You can of course remove the file name. |
Maybe it's important to say that I - once a year - delete the mail module and reinstall it to clear all the chats. The files, that have been written with the mail module, they are not deleted this way? Does it mean, that all the files are still "connected" with the database and are not permanently deleted? |
Thanks for the screenshot.
I don't understand, do you only see the files when editing a message? In your previous screenshots, the files were visible in the chat. |
That could be the reason. That the files are not removed when the Mail module is deleted. If a new mail module message with e.g. ID 1 is created, old files become visible again. You could perform an integrity check. This should recognize and remove old files: https://docs.humhub.org/docs/admin/troubleshooting#data-integrity @yurabakhtin Can you please check whether the problem is that assigned files are not correctly removed from a message in the Delete module? |
@luke- I see we deleted only tables of the Messenger module on deactivate/uninstall the module, i.e. these tables are deleted:
the tables deletion are executed by uninstall migration file And yes you are right the integrity check tool solves the issues, I have tested it so all records from the core table I.e. ideally it would be good to run the Integrity Check after reinstall new module. Also we can add this small code |
@yurabakhtin Can't we just implement the |
@luke- PR #381 - I have added to delete all I have tested on run the code |
That sounds good! Unfortunately I have no SSH with my webmaster. Is there another chance to run the integrity check? |
Unfortunately not, you could try to clean up the |
Hi,
we have the problem that if you send a private message via the mail module, there are sometimes randomly attached some files from elsewhere in the network. The do not even belong to the people sending the messages. Using Humhub 1.15.2., all modules up do date.
Please investigate asap!
The text was updated successfully, but these errors were encountered: