nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.67k stars 4k forks source link

[Bug]: Version checker show current version after update in web GUI #42197

Open Antreesy opened 9 months ago

Antreesy commented 9 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Noticed on update from 25.0.10.2 => 25.0.13.3 and 25.0.13.3 => 25.0.13.4 (latest patch version atm)

updater.log file shows correct version to update to (next major, 26.0.9.2)

image

Thoughts after research:

Code sources: updater - version check: https://github.com/nextcloud/updater/blob/master/lib/Updater.php#L126

admin page - vesion check: https://github.com/nextcloud/server/blob/master/lib/private/Updater/VersionCheck.php#L52

Issue posted to track it, as may happens sometime on more recent versions (27.1.4.1)

Steps to reproduce

  1. Perform update via updater.phar
  2. Check admin page to see if that happens

Expected behavior

Web GUI should show correct version to update to (next major, 26.0.9.2 in that case)

Installation method

Official All-in-One appliance

Nextcloud Server version

26

Operating system

None

PHP engine version

PHP 8.0

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 22.1 to 22.2)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

updater.log:

2023-11-29T14:01:55+0000 <request> [info] releaseChannel: enterprise
2023-11-29T14:01:55+0000 <request> [info] internal version: 25.0.13.4
2023-11-29T14:01:55+0000 <request> [info] updateURL: https://updates.nextcloud.com/customers/<subsciption-key>/?version=25x0x13x4xxxenterprisexx2023-11-23<hash>
2023-11-29T14:01:55+0000 <request> [info] getUpdateServerResponse response: Array
(
    [version] => 26.0.9.2
    [versionstring] => Nextcloud 26.0.9 Enterprise
    [url] => https://download.nextcloud.com/.customers/server/26.0.9-102bdc0d/nextcloud-26.0.9-enterprise.zip
    [web] => https://docs.nextcloud.com/server/26/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=26.0.9
    [autoupdater] => 1
    [eol] => 0
    [signature] => <signature>
)
SystemKeeper commented 9 months ago

Noticed the same after updating to 28 via updater.phar. Thought it was because I did it via CLI and then looked at web

joshtrichards commented 4 months ago

Similar, but not exactly the same: #41121

joshtrichards commented 4 months ago

Also somewhat related to nextcloud/updater#122