Skip to content

[6.0] Fix extensions check for updates bug#46075

Merged
Bodge-IT merged 3 commits intojoomla:6.0-devfrom
joomdonation:fix_check_for_updates
Sep 26, 2025
Merged

[6.0] Fix extensions check for updates bug#46075
Bodge-IT merged 3 commits intojoomla:6.0-devfrom
joomdonation:fix_check_for_updates

Conversation

@joomdonation
Copy link
Contributor

@joomdonation joomdonation commented Sep 12, 2025

Pull Request for Issue # .

Summary of Changes

In Joomla 6, we use a single instance of ExtensionAdapter to find updates for all extensions/update sites. The latest update found for previous extension is not reset before finding update for the next extension and it causes the strange bug described in the issue #46066. Basically, if the previous extension has higher version number than the next extension, the update for the next extension could not be found.

Testing Instructions

Note that you need to install the two extensions in exactly order above (Akeeba Backup needs to be installed first because it has higher version number than Admin Tools)

Actual result BEFORE applying this Pull Request

  • Update only found for Akeeba Backup

Expected result AFTER applying this Pull Request

  • Update found for both two extensions as expected (since the installed version of the two extensions are outdated)

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@brianteeman
Copy link
Contributor

appears to work correctly in my limited test

I wonder why the original code was changed

@joomdonation
Copy link
Contributor Author

I wonder why the original code was changed

Look like it was the result of removing some deprecated classes #43794, #43793, #43792. But I haven't looked at the details of all of these PRs yet.

@brianteeman
Copy link
Contributor

My worry is that whatever broke the code here may also have broken code elsewhere and we just havent come across it yet. I wouldnt want us to need to keep using sticking plasters

@joeforjoomla
Copy link
Contributor

I have tested this item ✅ successfully on e10a351


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46075.

@joeforjoomla
Copy link
Contributor

Yes it seems to work correctly by resetting the variable.

@richard67 richard67 added the bug label Sep 12, 2025
@richard67
Copy link
Member

@joomdonation Could you update the phpstan-baseline.neon file? It seems PHPStan fails for your PR. It fails for parts of code not changed by your PR, no idea why. You can fix that by running ./libraries/vendor/bin/phpstan -b after having run composer install. IT will not require redo of human tests. Can you do that? Or shall I help?

@joomdonation
Copy link
Contributor Author

@richard67 It would be great if you could help with this PR. I am not familiar with the process yet.

@richard67
Copy link
Member

@joomdonation Funny: Just restarting the PHPStan GitHub action has helped. No idea why. Anyway, no need for any changes on this PR.

@joomdonation
Copy link
Contributor Author

Thanks Richard

@richard67
Copy link
Member

I've restored the previous human test result in the issue tracker as the commit which has invalidated the test count was just an improvement of a code comment.

@richard67
Copy link
Member

I have tested this item ✅ successfully on eeb3106


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46075.

@richard67
Copy link
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46075.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Sep 26, 2025
@Bodge-IT Bodge-IT merged commit d2d5164 into joomla:6.0-dev Sep 26, 2025
31 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 26, 2025
@Bodge-IT
Copy link
Contributor

Thanks for the fix @joomdonation and tester @joeforjoomla and tests at last minute @richard67

@joomdonation joomdonation deleted the fix_check_for_updates branch September 27, 2025 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants