Page 1 of 1

Permission denied on Linux (Subsonic 2.5)

PostPosted: Fri Dec 02, 2005 7:51 pm
by anker
Hi,

I just upgraded to subsonic 2.5 on my Fedora Core 4 Box. It seemed to run perfectly at first sight (and I really like the new user administration, thanks a lot) but when I try to access an MP3 file from the library, I get a Permission Denied athough user tomcat is allowed to enter the directory I'm trying to access.

Situation is the following: My files reside under /bla/mp3/files. Subsonic does show the directories that are in this directory. But when I click one of the links I get the following error:

org.apache.jasper.JasperException: Access denied to file /bla/mp3
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:188)

Seems a bit strange to me that the directory listing can be displayed which is located below the directory I seemingly cannot access.

Any ideas?

Permission denied on Linux (Subsonic 2.5) -- update

PostPosted: Fri Dec 02, 2005 7:59 pm
by anker
Just a short additional comment: Streaming DOES work, but the main frame of subsonic (which normally shows the "now playing" part) tells me something about the mentioned "Permission denied".

Regards,

Andreas.

Permission denied on Linux (Subsonic 2.5) -- solved

PostPosted: Fri Dec 02, 2005 8:20 pm
by anker
Hi,

it was again a problem of a symbolic link. The directory /bla is a link to somehere else. If a set the true path instead of the link in the settings, everything works fine.

Thank you again for this great piece of software.

PostPosted: Fri Dec 02, 2005 8:34 pm
by sindre_mehus
Hi and thanks for the info!

I've received other reports about "Permission denied" problems when using symlinks as music folders. I'll definitely look into it, but I currently don't have a Linux system available for testing.

Until then, Linux users are adviced to not use symlinks as music folders.

Have a nice weekend 8)
-Sindre

PostPosted: Fri Dec 02, 2005 9:30 pm
by Ikyo
I will take a look at it when I get home later tonight. Who created the symlink and is the symlink nested in a folder or off of root?

PostPosted: Sun Dec 04, 2005 12:14 pm
by anker
The symlink was created by root (of course, it's in /). But that shouldn't matter, at least from the OS's point of view, because the directory it links to is mode 0755. But I'm no Java programmer, so I don't know how this will affect the code in this case.

PostPosted: Mon Dec 05, 2005 6:44 pm
by Ikyo
It is sounding like it doesn't know how to follow the symlink. I had the same issue originally on mine, but I just changed it to the absolute path.

PostPosted: Mon Dec 05, 2005 6:45 pm
by Ikyo
It is sounding like it doesn't know how to follow the symlink. I had the same issue originally on mine, but I just changed it to the absolute path.