Problem
For the features revert update hook social_core_update_8802 we overwrite the features manager module so we can alter the file system access. At the end of the update hook we restore the features manager service to what it was before to ensure any other code gets the service they expect.
In the restore of the service there's a small typo which causes the features.manager service to remain overwritten. This can cause issues when other code tries to access the features manager service in the same request or drush command.
It does not cause issues in the following cases because in each case the container is rebuilt between the execution of the update hook and the calling of the features manager service.
- Updates run through
update.php - Running
drush fraafterdrush updb - Executing new update hooks with
drush updbseparately from thedrush updbthat executessocial_core_update_8802
Solution
Fix the typo
Comments
Comment #3
kingdutchComment #4
kingdutchhttps://github.com/goalgorilla/open_social/pull/1717
Comment #5
kingdutch