Page 1 of 1

[Solved] DSub - No Data

Posted: 17 Sep 2015, 00:23
by taoism
=========================================================================================
VERSION: MADSONIC 6.0 | BUILD: 7450
SERVER: CPU: ICORE7 | ARCH: X64 | MEMORY: 24GB | HDD: 22TB
OS: Windows 7 Ultimate
SYSTEM: CLIENT
INSTALLER: WINDOWS
JAVA: ORACLE JDK 1.8
BROWSER: CHROME 44
CLIENT: DSUB
REPRODUCIBLE: YES
=========================================================================================
Screenshot_2015-09-16-16-17-48.png
with the latest Dsub install. I get no data while browsing through folders where there is data.

Thanks Taoism.

Re: DSub - No Data

Posted: 17 Sep 2015, 00:44
by daneren2005
It appears that it is because DSub is falling back to the Subsonic emulated version and using tokens. If Mad just copied the same code from Subsonic then it probably suffers from the same bug where LDAP users will not work using tokens.

PS There is a bug in the current version of DSub where the token is not refreshed after changing the username/password so you will need to clear it from memory to try a different user.

Re: DSub - No Data

Posted: 17 Sep 2015, 00:46
by daneren2005
Also Mad can you please add a way for me to tell that I can use the 2.0 API from a normal response? Otherwise I will just pretend like it is an actual Subsonic install.

Re: DSub - No Data

Posted: 17 Sep 2015, 00:52
by troycarpenter
Yes, against .7450 the server test fails. I've written about this now in a few places, but didn't post in the bug section yet.

Re: DSub - No Data

Posted: 17 Sep 2015, 01:01
by Madsonic
Hi Scott,

as I have already mentioned, i have add an new REST call getApi
and add the attribute TYPE to all REST replies.

Madsonic Server
REST 2.0 - TYPE = madsonic
REST 1.13 - TYPE = subsonic

Subsonic Server (stock)
REST 1.13 - TYPE = null

http://beta.madsonic.org/pages/api.jsp#Implementation

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
  <madsonic-response xmlns="http://madsonic.org/restapi" status="ok">
  <api>
      <rest type="madsonic" version="2.0.0"/>
      <rest type="subsonic" version="1.13.0"/>
  <api>
</madsonic-response>

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
  <subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.13.0" type="subsonic">

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
  <madsonic-response xmlns="http://madsonic.org/restapi" status="ok" version="2.0.0" type="madsonic">
best regards

Re: DSub - No Data

Posted: 17 Sep 2015, 02:44
by daneren2005
Tokens appear to still not work on latest build:

pass=dsub
salt=6i1t5qe1sqljv2pd0nqesc3eii
token=bfabec378880234916c3307b9fd1db9f

echo -n dsub6i1t5qe1sqljv2pd0nqesc3eii | md5sum
bfabec378880234916c3307b9fd1db9f

Yet I get a wrong username/password error. Issue appears to only happen with LDAP users.

Re: DSub - No Data

Posted: 17 Sep 2015, 03:11
by taoism
Thanks for your folks help! i don't know much about software. I'm more of a hardware guy myself.
-Taoism