[Solved] DSub - No Data

Mission accomplished!
taoism
Posts: 8
Joined: 19 May 2014, 06:58
Has thanked: 3 times
Been thanked: 4 times

[Solved] DSub - No Data

Unread post by taoism » 17 Sep 2015, 00:23

=========================================================================================
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.

daneren2005
Developer
Developer
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 1 time
Been thanked: 8 times

Re: DSub - No Data

Unread post by daneren2005 » 17 Sep 2015, 00:44

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.

daneren2005
Developer
Developer
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 1 time
Been thanked: 8 times

Re: DSub - No Data

Unread post by daneren2005 » 17 Sep 2015, 00:46

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.
These users thanked the author daneren2005 for the post:
Madsonic

User avatar
troycarpenter
Posts: 136
Joined: 03 Dec 2013, 19:16
Has thanked: 23 times
Been thanked: 50 times

Re: DSub - No Data

Unread post by troycarpenter » 17 Sep 2015, 00:52

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.

User avatar
Madsonic
Administrator
Administrator
Posts: 961
Joined: 07 Dec 2012, 03:58
Has thanked: 1153 times
Been thanked: 450 times

Re: DSub - No Data

Unread post by Madsonic » 17 Sep 2015, 01:01

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
These users thanked the author Madsonic for the post:
taoism

daneren2005
Developer
Developer
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 1 time
Been thanked: 8 times

Re: DSub - No Data

Unread post by daneren2005 » 17 Sep 2015, 02:44

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.
These users thanked the author daneren2005 for the post (total 2):
Madsonictaoism

taoism
Posts: 8
Joined: 19 May 2014, 06:58
Has thanked: 3 times
Been thanked: 4 times

Re: DSub - No Data

Unread post by taoism » 17 Sep 2015, 03:11

Thanks for your folks help! i don't know much about software. I'm more of a hardware guy myself.
-Taoism
These users thanked the author taoism for the post:
Madsonic

Post Reply