-
Notifications
You must be signed in to change notification settings - Fork 40
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
Projects installed by selecting an older version via the project installer cannot be updated via the UI #3997
Comments
I have tested this with:
|
I've tested updating via the Project Browser with some modules that were already installed on a dev site. I assume they were installed manually but can't recall for certain.
|
Trying to figure out what could possibly be different in installing manually vs via the admin UI. Could it be that the Project Installer does not set proper permissions when extracting the module files? ...and if so, then why aren't we picking that the update did not actually happen? |
I can confirm, there is a problem with updates, but it has nothing to do with permissions. File permissions are fine. Backdrop does download the project and extracts it to tmp, but it downloads the outdated version again. Hence the old version gets replaced with the same old version. Check your temporary folder for the update-extraction-XXXX dirs and check the .info files in there. Either the way the most recent version url is constructed fails, or we maybe get fooled by the update cache. Flushing it didn't help, though. Neither does running cron. I've been testing here with googleanalytics and webform. |
I guess, it's related to the update_cache. The full project download url gets saved to the database. Table "cache_update", column "data". These database entries have "expire" timestamps. If I manually set such an expire timestamp to now in the database, then flush the cache (not sure about that), the update to the most recent version works. |
Thanks for digging into this @indigoxela ...I intent to have a look too when I get a chance, but your investigation helps 👍 |
Since this issue has a bug-fix milestone, but does not have a PR, that means it must be a high-prioroty bug, so I have added it to the Bugs Project, on the High Priority list. @klonos if you don't think it belongs there, please also remove the milestone :) |
I don't see that criteria on https://backdropcms.org/user-guide/adding-milestones-to-issues... Does that page need updating to reflect this? Based on the currently-documented criteria for bug-fix milestones, I don't see this issue as being eligible without a PR, so removing milestone. |
I have confirmed this odd behaviour while testing the PR for #3245:
While it is rare for people to manually install the older release, it is possible through the UI and the fact that this silently fails is a problem. As this only happens if the older release is done (I've installed loads of modules through the UI, but always the recommended release), I'm going to change the title to reflect this. |
Description of the bug
Projects installed via the project installer cannot be updated via the UI.
Steps To Reproduce
To reproduce the behavior:
/admin/modules/update
and try to update the modules as per usual...Actual behavior
The update process finishes successfully, w/o any errors 👍 ...but when you check the "Available updates" page, only the module that was installed manually is updated; the module that was installed via the Project Installer is still in the older version 👎
Expected behavior
Modules installed via the Project Browser/Installer are updated to the latest version when updating via the admin UI.
Additional information
I have tested this with enabled/disabled projects; with modules/themes/layouts; with the site online vs in maintenance mode; selecting to update a single outdated module at a time, or multiple ones simultaneously. The outcome is that modules installed via the Project Installer are not updated.
The text was updated successfully, but these errors were encountered: