Skip to content

API returns different release list dependent on language #1723

@d-schiffner

Description

@d-schiffner

When opening https://apps.nextcloud.com/api/v1/platforms.json in the browser, I do get the current v33.0.0 release as being marked as hasRelease: true. However, the same call using cURL results in hasRelease: false for the same version.

I boiled it down to the 'accepted-language' header (didn't try to many combinations, though).

Steps to reproduce

  1. Open https://apps.nextcloud.com/api/v1/platforms.json in Browser -> Correct
  2. Call curl https://apps.nextcloud.com/api/v1/platforms.json -> Wrong
  3. Call curl https://apps.nextcloud.com/api/v1/platforms.json -H 'accept-language: en' -> Correct (other languages as de seem also to work)

Expected behaviour

The list should be consistent, independent of the accepted language.

Actual behaviour

➜  curl 'https://apps.nextcloud.com/api/v1/platforms.json' -H 'accept-language: en' | jq '.[] | select(.version == "33.0.0")'
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100  17988 100  17988   0      0 97.79k      0                              0
{
  "hasRelease": true,
  "version": "33.0.0",
  "isSupported": true
}
➜  curl 'https://apps.nextcloud.com/api/v1/platforms.json' | jq '.[] | select(.version == "33.0.0")'
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100  17990 100  17990   0      0 144.8k      0                              0
{
  "hasRelease": false,
  "version": "33.0.0",
  "isSupported": false
}

Browser

Browser name: Chromium

Browser version: 146

Operating system: Linux (Aurora)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions