?
avatar zstergios
zstergios
25 Apr 2020

Hi,
the XML extension update server has version value 2.0.0
The extension XML version value is 2.0.

Joomla detects that there is available update.

PS: if I change both versions with same format works.

Expected result

2.0.0 and 2.0 should be considered as same value.
Extension update should consider the extension is up to date.

Actual result

Extension Updater displays new available update from 2.0 to 2.0.0

System information (as much as possible)

Joomla 3.9.16
PHP 7.2

avatar zstergios zstergios - open - 25 Apr 2020
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Apr 2020
avatar zero-24
zero-24 - comment - 25 Apr 2020

Well we use version_compare here: https://www.php.net/manual/en/function.version-compare.php and this is the default behavior: https://3v4l.org/shGWF so it seems to be the correct behavior.

avatar jwaisner jwaisner - change - 25 Apr 2020
Status New Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2020-04-25 19:17:25
Closed_By jwaisner
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2020
Status Expected Behaviour Closed
Closed_By jwaisner joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 25 Apr 2020
avatar joomla-cms-bot
joomla-cms-bot - comment - 25 Apr 2020

Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/28782

avatar jwaisner
jwaisner - comment - 25 Apr 2020

Agreed. This behavior is expected as 2.0 is considered a lower version than 2.0.0.


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

Add a Comment

Login with GitHub to post a comment