[RESOLVED] Access is Denied

Need help? Post your questions here.

Moderator: moderators

[RESOLVED] Access is Denied

Postby bmj1086 » Thu Jun 16, 2011 3:40 pm

Trying to get cover art for a C# Wrapper and I'm getting (Access is Denied). I've changed the sharing permissions on the server to share with everybody read and write and I'm still getting the same error. I opened the link in IE and Chrome and I'm getting the same error. Any help is greatly appreciated.


Code: Select all
Exception   java.io.FileNotFoundException
Message   S:\Music\Animals As Leaders\Animals As Leaders (Access is denied)
Java version   Sun Microsystems Inc. 1.6.0_23
Operating system   Windows 7 6.1
Server   jetty-6.1.x
Memory   Used 29 of 52 MB
Stack trace   java.io.FileNotFoundException: S:\Music\Animals As Leaders\Animals As Leaders (Access is denied)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.(Unknown Source)
   at net.sourceforge.subsonic.controller.CoverArtController.getImageInputStream(CoverArtController.java:174)
   at net.sourceforge.subsonic.controller.CoverArtController.sendUnscaled(CoverArtController.java:123)
   at net.sourceforge.subsonic.controller.CoverArtController.handleRequest(CoverArtController.java:82)
   at net.sourceforge.subsonic.controller.RESTController.getCoverArt(RESTController.java:807)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:473)
   at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:410)
   at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
   at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
   at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
   at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
   at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at net.sourceforge.subsonic.security.RESTRequestParameterProcessingFilter.doFilter(RESTRequestParameterProcessingFilter.java:122)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
   at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
   at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
   at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
   at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
   at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
   at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
   at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
   at org.mortbay.jetty.Server.handle(Server.java:313)
   at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
   at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
   at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
   at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Last edited by bmj1086 on Fri Jun 17, 2011 6:34 pm, edited 1 time in total.
bmj1086
 
Posts: 28
Joined: Tue Mar 01, 2011 4:11 am
Location: USA

Postby bmj1086 » Fri Jun 17, 2011 2:50 am

anyone?
bmj1086
 
Posts: 28
Joined: Tue Mar 01, 2011 4:11 am
Location: USA

Postby GJ51 » Fri Jun 17, 2011 4:29 am

It sounds like you're attempting something that's a bit above my paygrade, but would it be something related to giving the service logon rights to the share? In order to use a network share in windows the subsonic service has to be given user logon rights.
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 bmj1086 » Fri Jun 17, 2011 4:34 am

GJ51 wrote:It sounds like you're attempting something that's a bit above my paygrade, but would it be something related to giving the service logon rights to the share? In order to use a network share in windows the subsonic service has to be given user logon rights.


Can you elaborate on giving the service logon rights to the share? I have changed the share permissions to "Everyone" for the folder. It's a local partition on the machine.
bmj1086
 
Posts: 28
Joined: Tue Mar 01, 2011 4:11 am
Location: USA

Postby GJ51 » Fri Jun 17, 2011 6:20 am

As discussed in the article at http://monroeworld.com/android/subsonic/ if you want SS to access a network share then you have to give it user logon credentials that have permission to access the share.

"If you are using a UNC or MAPPED drive that points to music on another computer, you will likely run into problems getting SubSonic to see your music located there. The reason is that SubSonic is a service that runs with LOCAL MACHINE permissions - and SubSonic will not be authorized to access these file shares outside the local machine."

I'm just wondering if you may need to do the same thing with what you're trying to do. You mention that it's a local partition, but I know that permissions in Windows can often get pretty complicated and difficult to sort out. It might just be worth a shot at giving the service your logon credentials to see if it allows SS to access the folder.
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 bmj1086 » Fri Jun 17, 2011 1:49 pm

It's not a network path. The S:\Music folder is a partition on the local hard drive.

I just gave the Subsonic service my login permissions and it is still giving me the same error. My login is an administrator.


Exception java.io.FileNotFoundException
Message S:\Music\As I Lay Dying\An Ocean Between Us (Access is denied)
Java version Sun Microsystems Inc. 1.6.0_23
Operating system Windows 7 6.1
Server jetty-6.1.x
Memory Used 23 of 50 MB
Stack trace java.io.FileNotFoundException: S:\Music\As I Lay Dying\An Ocean Between Us (Access is denied)
bmj1086
 
Posts: 28
Joined: Tue Mar 01, 2011 4:11 am
Location: USA

Postby GJ51 » Fri Jun 17, 2011 3:33 pm

I thought that you might be doing something that was a bit over my head. Are you writting a program that is using the REST API? My son is pretty versed in C# and Java and I'd be happy to forward this to him for a look-see if he can help.

My other thought would be to set up a test directory on the C: drive to see if you can at least get it to work.

Is this error occuring with the standard Subsonic interface, or is this problem only occuring in your project?
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 bmj1086 » Fri Jun 17, 2011 6:17 pm

I am using the REST API and It's not a C# error, I can confirm that. I pasted the link in Google Chrome and I'm getting the same error message. It's supposed to show the image in the web browser. I wrote a very similar application in Java about six months ago and it worked fine then. I have changed my server since then and now it's not working. I believe that when I was running Subsonic before it was running in Ubuntu. I'm using the getCoverArt.view API.
bmj1086
 
Posts: 28
Joined: Tue Mar 01, 2011 4:11 am
Location: USA

Postby bmj1086 » Fri Jun 17, 2011 6:33 pm

Okay, I figured out the issue. It's my own fault but I think it might need to be addressed. I just remembered that I'm trying to use the album id instead of the coverArt id. That seems like it would be the most logical way but it's my fault. I just remembered what I was doing wrong.

Sorry for wasting forum space lol. Thanks GJ51 for helping me as much as you could.
bmj1086
 
Posts: 28
Joined: Tue Mar 01, 2011 4:11 am
Location: USA

Postby GJ51 » Fri Jun 17, 2011 6:47 pm

Not a problem, glad you found the answer.
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


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests