Skip to content

Incorrect arguments on the API call getOpenSubsonicExtensions #172

@paulijar

Description

@paulijar

When airsonic-refix calls the server API endpoint getOpenSubsonicExtensions, it passes both token and salt and password. This seems to happen here:

this.serverInfo = await fetchServerInfo(server, username, { hash, salt, password })

Some servers may accept this but IMHO this is incorrect use of the API. Similar calls are not made by airsonix-refix for any other endpoints. When the connected server is Nextcloud Music, such call is responded with 41: "Token-based authentication not supported". Consequently, airsonic-refix shows incorrect server info in its About box for the server. Also code 43: "Multiple conflicting authentication mechanisms provided" would be possible response for such a call.

Note also that the OpenSubsonic specification https://opensubsonic.netlify.app/docs/endpoints/getopensubsonicextensions/ mandates that the endpoint getOpenSubsonicExtensions must be publicly callable. Hence, you could just omit all the authentication arguments from this call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions