matomo icon indicating copy to clipboard operation
matomo copied to clipboard

[Bug] LatestStable channel tries to update 4.14.0 to 5.0.2 instead of 4.16.1

Open mneudert opened this issue 1 year ago • 0 comments

What happened?

When using an older 4.x version, e.g. 4.14.0, the update check API in the latest stable release channel responds that 4.16.1 is available. This is also shown by the CoreUpdater:

You can update to version 4.16.1 automatically or download the package and install it manually:

However, the download link points to https://builds.matomo.org/matomo.zip source, at the moment being the latest 5.x release of 5.0.2, not the intended https://builds.matomo.org/matomo-4.16.1.zip.

This wrong version is then also used by the automatic update and may result in unexpected major upgrades:

✓ Downloading update from https://builds.matomo.org/matomo.zip ✓ Unpacking the update ✓ Verifying the unpacked files ✓ Installing the latest version ✓ Checking for new plugin updates ✓ Updating plugin AnonymousPiwikUsageMeasurement to version 5.0.0

What should happen?

The update process should respect the version shown, if it is not the real latest version, but a required intermediate version.

How can this be reproduced?

Start the update process of any older Matomo 4 version (4.14.0 and earlier).

Matomo version

4.14.0

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

mneudert avatar Feb 07 '24 17:02 mneudert