Skip to content

hook_uninstall deletes file usage #31

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

Open
indigoxela opened this issue May 27, 2025 · 0 comments
Open

hook_uninstall deletes file usage #31

indigoxela opened this issue May 27, 2025 · 0 comments

Comments

@indigoxela
Copy link
Member

indigoxela commented May 27, 2025

I know, this has been inherited from Drupal, but in Backdrop CMS this uninstall handling has a bad side effect.

https://github.com/backdrop-contrib/imce/blob/1.x-1.x/imce.install#L20

It's one of the causes for the problem reported here: backdrop/backdrop-issues#3857

Instead of just deleting the usage, leaving all inline files in an odd state (permanent, no file usage record), something different should be done on uninstall.

Otherwise this uninstall behavior might even cause data loss (if someone links to the file via editor dialog and later removes the link).

And, yes, I know, this module's unmaintained, but I still wanted to report the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant