Skip to content

Incorrect parsing of latest version.json shows old version as latest #15745

Closed

Description

@OlafvdSpek

;)

Activity

  1. williamdes commented on Jan 4, 2020

    @williamdes
    Member

    @ibennetch our api does not indicate the right latest version

  2. ibennetch commented on Jan 4, 2020

    @ibennetch
    Member

    https://www.phpmyadmin.net/home_page/version.json returns an array (if that's the proper way to refer to it in JSON) of currently supported versions:

    {
        "date": "2019-12-26",
        "version": "5.0.0",
        "releases": [
            {
                "date": "2019-12-26",
                "php_versions": ">=5.5,<8.0",
                "version": "4.9.3",
                "mysql_versions": ">=5.5"
            },
            {
                "date": "2019-12-26",
                "php_versions": ">=7.1,<8.0",
                "version": "5.0.0",
                "mysql_versions": ">=5.5"
            }
        ]
    }

    I think that the first/outer 'version' always points to the latest release, so we could first get the "current maximum version" from that before checking that the PHP and MySQL versions are compatible from deeper in the "releases" array.

    I'd prefer a solution that improves the parsing within phpMyAdmin rather than changing the versions.json file, because there are times we support more than one version.

  3. changed the title [-]latest stable version: 4.9.3[/-] [+]Incorrect parsing of latest version.json shows old version as latest[/+] on Jan 5, 2020
  4. Gaurav-Punjabi commented on Jan 5, 2020

    @Gaurav-Punjabi
    Contributor

    @ibennetch Are you suggesting that we should parse the JSON in such a way that it considers the highest version ?

  5. ibennetch commented on Jan 6, 2020

    @ibennetch
    Member
  6. Gaurav-Punjabi commented on Jan 6, 2020

    @Gaurav-Punjabi
    Contributor

    Got it 👍
    Will submit a PR for this soon.

  7. added
    Bug
    has-pr
    and removed on Jan 7, 2020
  8. added this to the 5.0.2 milestone on Jan 26, 2020
  9. added 2 commits that reference this issue on Feb 14, 2020
    61b8e27
    b0f16bc
  10. locked as resolved and limited conversation to collaborators on Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bughas-pr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions