[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 »

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

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 »

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
Rating: 7.69%
User avatar
troycarpenter
Posts: 138
Joined: 03 Dec 2013, 19:16
Has thanked: 28 times
Been thanked: 50 times

Re: DSub - No Data

Unread post 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.
User avatar
Madsonic
Administrator
Administrator
Posts: 984
Joined: 07 Dec 2012, 03:58
Answers: 7
Has thanked: 1201 times
Been thanked: 470 times

Re: DSub - No Data

Unread post 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
These users thanked the author Madsonic for the post:
taoism
Rating: 7.69%
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 »

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
Rating: 15.38%
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 »

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
Rating: 7.69%
Post Reply