openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

Empty response for existing (old) plugin version

Open colin-grant-work opened this issue 3 years ago • 0 comments

It appears that making API queries about old versions of plugins produces empty responses.

For example:

All known versions of redhat.vscode-xml

      "allVersions": {
        "latest": "https://open-vsx.org/api/redhat/vscode-xml/latest",
        "preview": "https://open-vsx.org/api/redhat/vscode-xml/preview",
        "0.19.1": "https://open-vsx.org/api/redhat/vscode-xml/0.19.1",  // <--- works
        "0.19.0": "https://open-vsx.org/api/redhat/vscode-xml/0.19.0",
        "0.18.3": "https://open-vsx.org/api/redhat/vscode-xml/0.18.3",
        "0.18.2": "https://open-vsx.org/api/redhat/vscode-xml/0.18.2",
        "0.18.1": "https://open-vsx.org/api/redhat/vscode-xml/0.18.1",
        "0.18.0": "https://open-vsx.org/api/redhat/vscode-xml/0.18.0",
        "0.17.0": "https://open-vsx.org/api/redhat/vscode-xml/0.17.0",
        "0.16.1": "https://open-vsx.org/api/redhat/vscode-xml/0.16.1",
        "0.16.0": "https://open-vsx.org/api/redhat/vscode-xml/0.16.0",
        "0.15.0": "https://open-vsx.org/api/redhat/vscode-xml/0.15.0", // <--- doesn't work
        "0.14.0": "https://open-vsx.org/api/redhat/vscode-xml/0.14.0",
        "0.13.0": "https://open-vsx.org/api/redhat/vscode-xml/0.13.0",
        "0.12.0": "https://open-vsx.org/api/redhat/vscode-xml/0.12.0",
        "0.11.0": "https://open-vsx.org/api/redhat/vscode-xml/0.11.0"
      },

Searching for the latest version with this query

https://open-vsx.org/api/-/query?extensionVersion=0.19.1&extensionId=redhat.vscode-xml

returns a good result. Searching for an older version using

https://open-vsx.org/api/-/query?extensionVersion=0.15.0&extensionId=redhat.vscode-xml

returns

{"extensions":[]}

Similarly, all versions of ms-python.python:

      "allVersions": {
        "latest": "https://open-vsx.org/api/ms-python/python/latest",
        "2022.0.1814523869": "https://open-vsx.org/api/ms-python/python/2022.0.1814523869", // <--- works
        "2022.0.1786462952": "https://open-vsx.org/api/ms-python/python/2022.0.1786462952",
        "2021.12.1559732655": "https://open-vsx.org/api/ms-python/python/2021.12.1559732655",
        "2021.11.1422169775": "https://open-vsx.org/api/ms-python/python/2021.11.1422169775",
        "2021.10.1365161279": "https://open-vsx.org/api/ms-python/python/2021.10.1365161279",
        "2021.10.1317843341": "https://open-vsx.org/api/ms-python/python/2021.10.1317843341",
        "2021.9.1246542782": "https://open-vsx.org/api/ms-python/python/2021.9.1246542782",
        "2021.9.1230869389": "https://open-vsx.org/api/ms-python/python/2021.9.1230869389",
        "2021.9.1218897484": "https://open-vsx.org/api/ms-python/python/2021.9.1218897484",
        "2021.8.1159798656": "https://open-vsx.org/api/ms-python/python/2021.8.1159798656",
        "2020.10.332292344": "https://open-vsx.org/api/ms-python/python/2020.10.332292344",
        "2020.9.112786": "https://open-vsx.org/api/ms-python/python/2020.9.112786",
        "2020.9.111407": "https://open-vsx.org/api/ms-python/python/2020.9.111407",
        "2020.8.105369": "https://open-vsx.org/api/ms-python/python/2020.8.105369", // <--- doesn't work
        "2020.8.105045": "https://open-vsx.org/api/ms-python/python/2020.8.105045",
        "2020.8.101144": "https://open-vsx.org/api/ms-python/python/2020.8.101144",
        "2020.7.96456": "https://open-vsx.org/api/ms-python/python/2020.7.96456",
        "2020.7.1": "https://open-vsx.org/api/ms-python/python/2020.7.1",
        "2020.7.0": "https://open-vsx.org/api/ms-python/python/2020.7.0",
        "2020.6.1": "https://open-vsx.org/api/ms-python/python/2020.6.1",
        "2019.11.1": "https://open-vsx.org/api/ms-python/python/2019.11.1"
      },

Searching for the latest with the query https://open-vsx.org/api/-/query?extensionVersion=2022.0.1814523869&extensionId=ms-python.python gives a good result, but searching for the older version with the query https://open-vsx.org/api/-/query?extensionVersion=2020.8.105369&extensionId=ms-python.python gives an empty extensions array.

These requests were working as recently as November, 2021.

colin-grant-work avatar Mar 02 '22 17:03 colin-grant-work