BlitterStudio / MB_SubSonic

MusicBee SubSonic plugin
GNU General Public License v3.0
110 stars 14 forks source link

【Bug Report】Ping command failed when opening configuration panel for the second time. #59

Closed Creling closed 2 years ago

Creling commented 3 years ago

Describe the bug It is a strange problem. When I type in username and password for the first time and ping, the pong is normal. However, after clicking save and then re-open configuration panel and do nothing other than ping again, the pong is wrong.

To Reproduce I make a screen record:

SfOj1M8v4E

Desktop

Adition This may not be able to reproduce in your end, however, please give me some help or some suggestions. I have tried the Portable Edition, Installer Edition and even UWP Edition of MusicBee, and this problem always exists. :(

midwan commented 3 years ago

Wow, that is interesting indeed. I wonder what happens in the background to cause this kind of behavior. Does the rest of the functionality work, however?

Creling commented 3 years ago

Wow, that is interesting indeed. I wonder what happens in the background to cause this kind of behavior. Does the rest of the functionality work, however?

For MusicBee, other functions are OK. For MB_SubSonic, all functions do not work. They will show an error message like this.

image

Creling commented 3 years ago

I find some strings in subsonicSettings.dat but they seem to be encrypted. Could you tell me how to decrypted them? Or could I write correct configurations directly to it?

midwan commented 3 years ago

You can't decrypt them (at least, not easily - that's the point), but you can delete the file and recreate the settings if you want.

Creling commented 3 years ago

You can't decrypt them (at least, not easily - that's the point), but you can delete the file and recreate the settings if you want.

I have tried to delete the file, then mb_subsonic is initialized. However, the problem still exists. So could you tell me how to create a file with arbitrary configuration directly?

midwan commented 3 years ago

You can't create the file that way, it's encrypted from the plugin and it's expected to be encypted, otherwise it won't be read back correctly. If you recreated the settings from scratch, then the problem is not in the settings, but somewhere else.

You can call your server's endpoint manually (e.g. with a browser or a dedicated tool like Postman), if you know the URL. This page has the documentation for the API: http://www.subsonic.org/pages/api.jsp - you'd be interested in the Ping initially, to see how it behaves: http://www.subsonic.org/pages/api.jsp#ping