- Affected version
- 2.0.2
XenForo 2 adds an is_processing to track if an add-on is being installed or not. However this flag is nasty in that it leaves the add-on is a half disabled state, which during an upgrade means all template modifications and templates still apply but none of the backing code is running.
Worse, there are no UI indicators that an add-on is in is_processing state and thus unusable.
If the upgrade process blows up due to an installer step failing, the install/upgrade is aborted but the is_processing flag left in place.
A common example of the install processing failing is php timeouts during an install/upgrade step, XF's installer simple may not be able to run cleanup code. This can happen when adding an index or a column takes a lot longer than expected. Another example would be php version differences which can (depending on php's version) result in the script halting.
Would it be possible for an addon.json file to dictate how the is_processing flag is applied?
Worse, there are no UI indicators that an add-on is in is_processing state and thus unusable.
If the upgrade process blows up due to an installer step failing, the install/upgrade is aborted but the is_processing flag left in place.
A common example of the install processing failing is php timeouts during an install/upgrade step, XF's installer simple may not be able to run cleanup code. This can happen when adding an index or a column takes a lot longer than expected. Another example would be php version differences which can (depending on php's version) result in the script halting.
Would it be possible for an addon.json file to dictate how the is_processing flag is applied?