You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed Ampache and tried to connect Play:Sub through the Subsonic API. Play:Sub would always crash after the getUser.view call.
Describe the bug
Subsonic API returns an array for user in the getUser.view call. This should not be an array because it will always return one (current) user. Play:Sub crashes on this at startup.
Server operating system: Ubuntu 5.15.0-102-generic
Client operating system: iOS 17.4.1
Client type
SubSonic: Play:Sub v2023.2
Possible solution
I changed line 132 in src/Module/Api/Subsonic_Api.php from 'user' to 'users'. I believe that 'users' should be an ALWAYS_ARRAY. Play:Sub now connects correctly and does not crash anymore.
The text was updated successfully, but these errors were encountered:
Description
I just installed Ampache and tried to connect Play:Sub through the Subsonic API. Play:Sub would always crash after the getUser.view call.
Describe the bug
Subsonic API returns an array for user in the getUser.view call. This should not be an array because it will always return one (current) user. Play:Sub crashes on this at startup.
To reproduce
{
"subsonic-response": {
"status": "ok",
"version": "1.16.1",
"type": "ampache",
"serverVersion": "6.3.1",
"user": [
{
"username": "test",
"email": "test@test.eu",
"scrobblingEnabled": true,
"adminRole": false,
"settingsRole": true,
"downloadRole": false,
"playlistRole": true,
"coverArtRole": false,
"commentRole": false,
"podcastRole": true,
"streamRole": true,
"jukeboxRole": false,
"shareRole": true,
"videoConversionRole": false
}
]
}
}
Expected behavior
{
"subsonic-response": {
"status": "ok",
"version": "1.16.1",
"type": "ampache",
"serverVersion": "6.3.1",
"user": {
"username": "test",
"email": "test@test.eu",
"scrobblingEnabled": true,
"adminRole": false,
"settingsRole": true,
"downloadRole": false,
"playlistRole": true,
"coverArtRole": false,
"commentRole": false,
"podcastRole": true,
"streamRole": true,
"jukeboxRole": false,
"shareRole": true,
"videoConversionRole": false
}
}
}
Environment
Client type
Possible solution
I changed line 132 in src/Module/Api/Subsonic_Api.php from 'user' to 'users'. I believe that 'users' should be an ALWAYS_ARRAY. Play:Sub now connects correctly and does not crash anymore.
The text was updated successfully, but these errors were encountered: