Page 1 of 1


PostPosted: Fri Nov 27, 2009 4:07 am
by toxic
It's in the title...

I have the latest version of Subsonic, I'm running it on ubuntu karmic, with the standalone web server...

[EDIT] Please, don't feel offended, as I re-read my post, i thought you could feel so... So I'm saying it loud once here : I think you've done a great job with Subsonic ! It's the most advanced job I've seen so far in this area ! So, really, I love your job, just the "shiny GUI" is not at my taste... That's why I'd like you to correct some bugs... Well just read the post...

The thing is that I really "hate" your way of managing directories ! I'd like to have my entire directories flatten, and sort the music on a iTune-Like way : list the artists or the albums, but not the file-structure...

So I thought I could use your API to make myself my own web-client, avoiding the slow standalone webserver or any other problem regarding tomcat (I really LOVE apache, and php is my world ! And I only had troubles with tomcat and JAVA...)

Notice that frames are VERY UGLY, first they bring with them lots of compatibility issues, but they also are ugly on a screen (set up your firefox to be as if you had a 1024x768 screen... You'll understand...

[EDIT2]Think about it : If you provide me with a functionnal XML API, I may be able to come up with some alternative GUI for Subsonic, and as I'm a great fan of Ubuntu, I might also package it for ubuntu, allowing you jub to spread easily to any Ubuntu-user ! Sure you'd like that !

So I tried out the api, and by the simple command to list a directory : ... 4e49534544

[EDIT3]The directory I tried to list actually contains LOTS of subdirectories and files, but that should in no way be an Issue... And This directory is perfectly listed on the standalone-webserver (your GUI).

I got an error... So here the result :

Code: Select all

Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below. Exception   java.lang.NumberFormatException
Message   For input string: "2f6d656469612f446174612f4d757369632f4f5247414e49534544"
Java version   Sun Microsystems Inc. 1.6.0_15
Operating system   Linux 2.6.31-14-generic
Server   jetty-6.1.x
Memory   Used 37 of 70 MB
Stack trace   java.lang.NumberFormatException: For input string: "2f6d656469612f446174612f4d757369632f4f5247414e49534544"
   at java.lang.NumberFormatException.forInputString(
   at java.lang.Integer.parseInt(
   at java.lang.Integer.parseInt(
   at net.sourceforge.subsonic.controller.LeftController.saveSelectedMusicFolder(
   at net.sourceforge.subsonic.controller.LeftController.getLastModified(
   at net.sourceforge.subsonic.controller.RESTController.getIndexes(
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   at java.lang.reflect.Method.invoke(
   at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(
   at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(
   at org.springframework.web.servlet.mvc.AbstractController.handleRequest(
   at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(
   at org.springframework.web.servlet.DispatcherServlet.doDispatch(
   at org.springframework.web.servlet.DispatcherServlet.doService(
   at org.springframework.web.servlet.FrameworkServlet.processRequest(
   at org.springframework.web.servlet.FrameworkServlet.doGet(
   at javax.servlet.http.HttpServlet.service(
   at javax.servlet.http.HttpServlet.service(
   at org.mortbay.jetty.servlet.ServletHolder.handle(
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(
   at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.ui.logout.LogoutFilter.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   at org.acegisecurity.util.FilterChainProxy.doFilter(
   at org.acegisecurity.util.FilterToBeanProxy.doFilter(
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
   at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
   at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
   at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
   at org.mortbay.jetty.servlet.ServletHandler.handle(
   at org.mortbay.jetty.servlet.SessionHandler.handle(
   at org.mortbay.jetty.handler.ContextHandler.handle(
   at org.mortbay.jetty.webapp.WebAppContext.handle(
   at org.mortbay.jetty.handler.HandlerWrapper.handle(
   at org.mortbay.jetty.Server.handle(
   at org.mortbay.jetty.HttpConnection.handleRequest(
   at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
   at org.mortbay.jetty.HttpParser.parseNext(
   at org.mortbay.jetty.HttpParser.parseAvailable(
   at org.mortbay.jetty.HttpConnection.handle(
   at org.mortbay.thread.BoundedThreadPool$

Re: XML API Failure

PostPosted: Fri Nov 27, 2009 8:00 am
by sindre_mehus
toxic wrote:So I tried out the api, and by the simple command to list a directory : ... 4e49534544


You're using an invalid value for 'musicFolderId'. To get the list of valid values, use the getMusicFolders.view method.


PostPosted: Fri Nov 27, 2009 10:47 pm
by toxic
Well, in fact, it seems you have stragne conceptions about MusicFolder and MusicDirectory or something like that...

Anyway, I finally got to understand how your API's working... seems not to have failures in the end...

Thanks for the help anyway !

I will maybe report in another thread once I got a "suitable" php gui...

Note : It seems that to be able to make a directory-flatten and Album-Based GUI, I'll just be able to use subsonic as a streaming server... I'll need a Database on my own...