mattrogowski
Well-known member
- Affected version
- 2.2.15
Sort of an expansion of @Xon's issue here: https://xenforo.com/community/threa...o-unexpected-install-upgrade-failures.219315/
If addon A requires addon B, on install of addon A you will get an error that addon B doesn't exist if you don't have it installed.
However, this doesn't work the other way round when uninstalling. You can freely uninstall addon B (which is a dependency of addon A), causing addon A to break, possibly in such a way the entire forum is down.
Users may not necessarily remember or even realise there was a dependency so it's unclear to them why the forum is erroring. I guess it'd need to go through all the addon.json files of installed addons and check if it's a dependency of any of them before being allowed to uninstall it.
If addon A requires addon B, on install of addon A you will get an error that addon B doesn't exist if you don't have it installed.
However, this doesn't work the other way round when uninstalling. You can freely uninstall addon B (which is a dependency of addon A), causing addon A to break, possibly in such a way the entire forum is down.
Users may not necessarily remember or even realise there was a dependency so it's unclear to them why the forum is erroring. I guess it'd need to go through all the addon.json files of installed addons and check if it's a dependency of any of them before being allowed to uninstall it.