Page 1 of 1

Playlist Accessability

PostPosted: Tue Feb 10, 2015 4:12 pm
by troycarpenter
At first I thought that all users could see everyone's private playlists on the system (but not access them). However, now that I've logged in with a normal user account, I see that a normal user only has access to their lists and any public lists. As the administrator, I see all the lists.

However, one annoyance is that, as administrator, even though I can see the lists, I'm not able to edit or access them from the client. There have been many times when I get into the car, my kids want me to play one of their playlists. Unfortunately, since playlists are created private by default, I can see the playlist but can't load it. I believe that if the administrator can see the playlists, then the admin account should have full access to the playlists regardless of the permissions. Otherwise, I have to use the web interface to make the list public before I can access.

Is that a change that can be done on the client, or does there need to be server change for that to happen?

Re: Playlist Accessability

PostPosted: Tue Feb 10, 2015 4:48 pm
by daneren2005
I am pretty sure that is a Madsonic bug. Not being able to edit public playlists is by design on the server I believe, but any playlist that shows up should be viewable. If Madsonic doesn't want you to view the private playlists, they shouldn't be showing up in the list of playlists. If he does want them viewable, then he needs to fix it so they are viewable. On stock Subsonic you can view public non-owned playlists but you can't do anything to them. DSub has some controls on whether the options to add to or remove from a playlist show up, but none on whether you can view them since that is supposed to be handled at the server level.

Re: Playlist Accessability

PostPosted: Tue Feb 10, 2015 5:58 pm
by troycarpenter
Let me define my terms because I started to confuse myself while writing the following. See=visible in the playlist list. Use=Able to view and play the songs on the list. Edit: Change any properties of the list...implies they can use it as well.

I do plan to bring this up on the Madsonic site. For non-administrators, it seems to be working as expected. Using Dsub, a non-admin user can see and edit their own playlists. They can also see and use public lists (not edit). A non-admin user cannot see other users' private lists.

As an admin user, in Dsub I can see every playlist, public or private from any user. I am presented all the options for all those lists (play the playlist, or even edit the properties). However, if I try to use or edit any private list, I get a authorization error.

I'm convinced now (although I was mostly convinced when I asked the original question) that this is a server issue. Since I don't have a Subsonic server, I can't confirm whether or not the same behavior happens with Subsonic vs. Madsonic.

Re: Playlist Accessability

PostPosted: Tue Feb 10, 2015 6:36 pm
by daneren2005
troycarpenter wrote:Let me define my terms because I started to confuse myself while writing the following. See=visible in the playlist list. Use=Able to view and play the songs on the list. Edit: Change any properties of the list...implies they can use it as well.

I do plan to bring this up on the Madsonic site. For non-administrators, it seems to be working as expected. Using Dsub, a non-admin user can see and edit their own playlists. They can also see and use public lists (not edit). A non-admin user cannot see other users' private lists.

As an admin user, in Dsub I can see every playlist, public or private from any user. I am presented all the options for all those lists (play the playlist, or even edit the properties). However, if I try to use or edit any private list, I get a authorization error.

I'm convinced now (although I was mostly convinced when I asked the original question) that this is a server issue. Since I don't have a Subsonic server, I can't confirm whether or not the same behavior happens with Subsonic vs. Madsonic.

When talking purely about viewing, that is a Madsonic bug. If playlists for every user show up in your list of playlists, then you should be able to use them without an authorization error. When talking about editing, that sounds like it is probably a bug that DSub even shows the options in the first place. But I am going to wait to change anything with it until after we get feedback from Madsonic. It might be that he is going to change it so that admin users can edit private user's playlists, in which case there is nothing for me to change.

Re: Playlist Accessability

PostPosted: Fri Feb 13, 2015 3:23 pm
by troycarpenter
Actually, based on the code I posted in the Madsonic forum, I looked in Subsonic repository and the same issue exists. It looks like this issue existed in Subsonic before Madsonic was forked. In short, the erroneous playlist behavior with respect to the admin user exists in both Subsonic and Madsonic.

http://sourceforge.net/p/subsonic/code/ ... rvice.java
Lines 140-152. Those routines should allow for the admin user.

Re: Playlist Accessability

PostPosted: Fri Feb 13, 2015 4:00 pm
by daneren2005
It's not a bug in subsonic because subsonic doesn't show those playlists in the first place. That is the desired behavior for stock subsonic.

Sent from my Nexus 5 using Tapatalk

Re: Playlist Accessability

PostPosted: Fri Feb 13, 2015 4:32 pm
by troycarpenter
Ah yes. After some more digging, I see where the getReadablePlaylistsForUser was modified in Madsonic to allow for the admin user to see all the playlists (in addition to allow for alternate sorting of the lists).