Closed (fixed)
Project:
Admin Toolbar
Version:
3.4.2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2024 at 08:53 UTC
Updated:
13 Nov 2024 at 14:41 UTC
Jump to comment: Most recent
Hi, Issue #296693: Restrict access to empty top level administration pages has been resolved and included in the 10.2 release, so we need to deprecate the admin_toolbar_links_access_filter module so that users start disabling it and not enabling it in new installations.
Add lifecycle and lifecycle_link values to admin_toolbar_links_access_filter.info.yml
admin_toolbar_links_access_filter.info.ymlNone.
None.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kksandr commentedComment #3
sourav_paulComment #5
sourav_paulComment #8
japerryComment #9
firewaller commentedThe hook introduced here ran on my site with 10.2.7 with no effect due to the condition. It won't run after I install 10.3 now, so will I have to remember to remove it manually?
Comment #11
rossb89 commented@firewaller Yes, you'd have to remember to uninstall the module manually as part of the 10.3 upgrade.
Comment #12
m.stentaThe update hook that was introduced in this change caused a critical issue with the upgrade path for version 3.3.0 of the farmOS distribution, which has a module that depends on
admin_toolbar_links_access_filter.By uninstalling
admin_toolbar_links_access_filtervia an update hook, it causes a cascade of all other modules that depend on it to be uninstalled.We are working on putting out a new 3.3.1 release of farmOS to remove this dependency. Pull request with more information about how we discovered and debugged the issue here: https://github.com/farmOS/farmOS/pull/881
Comment #13
m.stentaJust want to note here that the current implementation is going to cause issues in the future on sites that update
admin_toolbarbefore they update to Drupal 10.3, once the maintainers of this project decide to delete the deprecated module from the repository, for the reason described by @firewaller above:If site administrators do not manually uninstall the module, and it is eventually removed from this repository, then they will experience "The following module is missing from the file system..." error: https://www.drupal.org/node/2487215
This is precisely what led to this issue going unnoticed in local farmOS testing. I updated the
admin_toolbarmodule viacomposer updatebefore I updated Drupal core to 10.3+. So this came as a surprise, and was even worse because it caused other modules that depended onadmin_toolbar_links_access_filterto be uninstalled automatically.I don't know what the right answer is here, but the update hook that was implemented is flawed for all of those reasons.
Comment #14
poker10 commented@japerry Is there a follow-up for an issue mentioned in #9 and #13? We run into the same situation. Updated the module on D10 (because there was no reason/incompatibility to prevent this and then after updating to D11, the update hook was not run again. So the module is still installed.
I do not think that "you have to remember to uninstall the module manually" is a good solution for all sites using this.
Comment #15
ericmulder1980 commentedAgree with the above, this needs to be addressed in another way. Perhaps it's even best to put this in a seperate issue.
Postponing the update by adding an early return will cause issues with upcoming update, so not really an option. I think the best way to inform site maintainers about this issue is to add a status message to the admin/reports/status page. The context would be when the installed version of Drupal Core >= 10.3 and the modules are still active.
Comment #16
ericmulder1980 commentedI created a new issue for this #3487246.