Subsonic 4.5.beta2 released

Announcements and discussion of new releases.

Moderator: moderators

sharesettings header

Postby trickydick » Mon Aug 01, 2011 3:21 am

Sindre or somebody. HELP

how can I get the sharesettigns.jsp page to not show links to all all settings for users. I have tried to modifiy the settingsheader.jsp page

Code: Select all
<c:set var="categories" value="${param.restricted ? 'personal password player share' : 'musicFolder general advanced personal user player share network transcoding internetRadio podcast search'}"/>


with a "<c:if test="${model.user.adminRole}">blah blah blah</c:if>" but no good.

I've also tried to modify the sharesettings.jsp portion:
Code: Select all
<c:import url="settingsHeader.jsp">
    <c:param name="cat" value="share"/>
</c:import>


and added
Code: Select all
<c:param name="restricted" value="true"/>
to it and it removes all the links except the ones for the user, but now the admin doesn't have all links. I can't seem to get it just right...

GOAL
the goal is the users will only have 4 links "personal password player share", while the admin will have all of them. I didn't want my users to see all the links (even though they are restricted from them)

Thanks
Tricky
User avatar
trickydick
 
Posts: 147
Joined: Wed Mar 30, 2011 12:43 am
Location: Sanford, North Carolina

Re: Music Folder not found

Postby philip550c » Mon Aug 01, 2011 5:52 am

tonwelle wrote:Hi,

any ideas about the "Music Folder not Found even if they are set correctly" problem I mentioned earlier?
I don't even know where to start looking, beside from the ideas I had above... And they did not get me any further...

Thanks in advance, guys.


Bump for this, cant upgrade, USB hard drives no longer seem to be supported. I'm on Ubuntu 11.04.
philip550c
 
Posts: 31
Joined: Mon Jun 13, 2011 8:18 pm

Postby TENtimesFAST » Mon Aug 01, 2011 6:38 am

Is there anyway to make the share button show a personal domain instead of our subsonic subdomains?
TENtimesFAST
 
Posts: 14
Joined: Mon May 10, 2010 10:52 pm
Location: The Glove

Postby paulmadejong » Mon Aug 01, 2011 11:27 am

Could you add support for HTTPS/SSL when sharing media? It links correctly to my private IP but the link does not include s for httpS.
paulmadejong
 
Posts: 1
Joined: Mon Aug 01, 2011 11:24 am

Postby tyleulen007 » Tue Aug 02, 2011 3:57 pm

Installed the beta on Ubuntu 10.04

I am having some serious issues with the subsonic user not running as root.

For example. I can not add art to an album in an existing folder.
java.io.FileNotFoundException: /home/media/VideoDrive/****/cover.jpg (Permission denied)

I can change the art on an existing album, but it does not change the thumbnail.
[2011-07-31 10:56:54,587] WARN CoverArtService - Failed to save cover art for /home/media/VideoDrive/****
java.io.FileNotFoundException: /home/media/VideoDrive/****/cover.jpg (Permission denied)

I can not download new episodes of podcasts:
5117 Jan 4, 1970 Error java.io.FileNotFoundException: /home/media/Podcast/****
[8/2/11 8:47:23 AM PDT] INFO PodcastService Starting to download Podcast from http://traffic.libsyn.com/****
[8/2/11 8:47:23 AM PDT] WARN PodcastService Failed to download Podcast from http://traffic.libsyn.com/****

So, how do I add subsonic to the root group?
tyleulen007
 
Posts: 2
Joined: Tue Aug 02, 2011 3:44 pm

Postby Aethies » Tue Aug 02, 2011 7:49 pm

It was just a thought.. But the ultimate goal of what I was trying to do was to give the subsonic user back its root privilege after being removed by the 4.5.beta2 update. Because subsonic no longer has root access subsonic seems unable to access key resources in order to properly enable the HTTPS/SSL functionality. (as indicated by the log file)



Then adding subsonic to the proper groups would fix the issue. Finding the right group is the key.
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

Re: sharesettings header

Postby sindre_mehus » Tue Aug 02, 2011 8:07 pm

trickydick wrote:Sindre or somebody. HELP

how can I get the sharesettigns.jsp page to not show links to all all settings for users. I have tried to modifiy the settingsheader.jsp page

Code: Select all
<c:set var="categories" value="${param.restricted ? 'personal password player share' : 'musicFolder general advanced personal user player share network transcoding internetRadio podcast search'}"/>


with a "<c:if test="${model.user.adminRole}">blah blah blah</c:if>" but no good.

I've also tried to modify the sharesettings.jsp portion:
Code: Select all
<c:import url="settingsHeader.jsp">
    <c:param name="cat" value="share"/>
</c:import>


and added
Code: Select all
<c:param name="restricted" value="true"/>
to it and it removes all the links except the ones for the user, but now the admin doesn't have all links. I can't seem to get it just right...

GOAL
the goal is the users will only have 4 links "personal password player share", while the admin will have all of them. I didn't want my users to see all the links (even though they are restricted from them)


Thanks, I'll look into this.
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby sindre_mehus » Tue Aug 02, 2011 8:12 pm

FYI, given all the permission-related issues with the Ubuntu version, I will revert back to running Subsonic as root.

Thanks for reporting!
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

running as root...

Postby thenuma » Tue Aug 02, 2011 8:43 pm

I prefer as few services as possible to be running as root, and I have no issues at all, everything works perfectly. I fixed jukebox by adding the 'subsonic' user to the audio group. I put subsonic user also in my 'users' group, and do a
Code: Select all
chgrp -R users /raid/mp3
to set the media files as belonging to the users group. my media files operate under 771 permissions, which, I apply permission masking within samba for copying local files over, everything comes out with the correct permissions. This seems logical, and reasonably secure. subsonic as a 'subsonic' user is fantastic, and works great.
thenuma
 
Posts: 12
Joined: Fri Jul 29, 2011 10:04 pm

Song just stops playing and then you can't restart it..

Postby corbincc » Tue Aug 02, 2011 9:08 pm

error below.. was playing Angel.. then just stopped.. it does this a lot lately.


Got range: Range[1695744,1695744]
[8/2/11 4:04:04 PM CDT] INFO PlaylistInputStream carycorbin listening to "Platinum & Gold Collection\Jeff Healey Band - 09 - Angel.mp3"
[8/2/11 4:04:04 PM CDT] INFO StreamController Got range: Range[1695744,6510591]
[8/2/11 4:04:04 PM CDT] INFO PlaylistInputStream carycorbin listening to "Platinum & Gold Collection\Jeff Healey Band - 09 - Angel.mp3"
[8/2/11 4:05:33 PM CDT] INFO StreamController Got range: Range[6510591,6510591]
[8/2/11 4:05:33 PM CDT] INFO PlaylistInputStream carycorbin listening to "Platinum & Gold Collection\Jeff Healey Band - 09 - Angel.mp3"
[8/2/11 4:05:33 PM CDT] INFO StreamController Got range: Range[6510591,6510591]
[8/2/11 4:05:33 PM CDT] INFO PlaylistInputStream carycorbin listening to "Platinum & Gold Collection\Jeff Healey Band - 09 - Angel.mp3"
[8/2/11 4:05:35 PM CDT] INFO PlaylistInputStream carycorbin listening to "Platinum & Gold Collection\Jeff Healey Band - 05 - Heart Of An Angel.mp3"
The complete log is saved in c:\subsonic\subsonic.log.
corbincc
 
Posts: 22
Joined: Tue Dec 14, 2010 7:43 pm

Postby WIL » Wed Aug 03, 2011 3:29 am

sindre_mehus wrote:FYI, given all the permission-related issues with the Ubuntu version, I will revert back to running Subsonic as root.

Thanks for reporting!
Sindre



Thank you!! Waiting for 4.5beta3!
WIL
 
Posts: 17
Joined: Fri May 29, 2009 7:49 pm
Location: Texas, USA

Postby nuke235 » Wed Aug 03, 2011 5:02 am

Aethies wrote:
It was just a thought.. But the ultimate goal of what I was trying to do was to give the subsonic user back its root privilege after being removed by the 4.5.beta2 update. Because subsonic no longer has root access subsonic seems unable to access key resources in order to properly enable the HTTPS/SSL functionality. (as indicated by the log file)



Then adding subsonic to the proper groups would fix the issue. Finding the right group is the key.



While this is true it could potentially take quite awhile to find the right combo that gives subsonic the correct access to the server. (saying that just giving all permissions was not the goal) And because the only people that use my server are myself and a couple friends I doubt anyone would try to use any exploit to do any harm to the server itself. An personally I think having the SSL/HTTPS support working correctly without much headache is more of security risk than the service running as root. (sending passwords over the web that are unsecured is almost always a bad idea)


But I would just like to say thank you Sindre and keep up the good work! :D
Subsonic Stats: 2,402 artists, 48,071 songs, 270.92 GB
Nuke235,
PWNING SINCE 1337
nuke235
 
Posts: 9
Joined: Thu Jun 16, 2011 1:46 am

Postby SparkyRih » Wed Aug 03, 2011 1:43 pm

Is it possible to use the sharing feature when using your own domain name in this version?
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby GJ51 » Wed Aug 03, 2011 2:00 pm

No.

Share
To share your music with someone you must first register your own subsonic.org address.
Please go to Settings > Network (administrative rights required).

Tried it using my Homeserver domain. You'd have to go deeper into the code and modify wherever the link is generated.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby SparkyRih » Wed Aug 03, 2011 2:10 pm

GJ51 wrote:No.

Share
To share your music with someone you must first register your own subsonic.org address.
Please go to Settings > Network (administrative rights required).

Tried it using my Homeserver domain. You'd have to go deeper into the code and modify wherever the link is generated.


Yeah I figured that out already...
Just asking... I'm not the only one who likes to be able to use their own domain...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: No registered users and 7 guests