Subsonic Web UI Cleanup\Overhaul

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Re: Subsonic Web UI Cleanup\Overhaul

Postby BKKKPewsey » Fri Nov 18, 2011 1:42 pm

tsquillario wrote:BOOM! Pushed an update on Git to fix your issue. The default Subsonic install is at the web root not under a subdirectory like yours. I added a setting under Preferences to specify the subdirectory of your installation. So in your case you would put subsonic as that value. Then the path will be correct!

califrag wrote:As for the path... I'm not sure, but the IP:Port should resolve to 'C:\subsonic\webapp' (in your case). When Subsonic runs, it seems to set up the 'subsonic\webapp\" folder as the 'root' folder. So regardless of whether you install Subsonic to C:\subsonic, /mnt/data/Subsonic, C:\program files\subsonic, etc etc. It should create a sub-folder 'webapp' which it uses to serve all the files.
If it were 'IP:Port/subsonic/script/LAb..." that would signify that your C:\ is set up as your 'root' web folder, which should not be the case (huge security risk). I hope that makes sense...

Ok I think there is a bit of confusion here which was compounded by tsquillario's answer.
On Windows, SS gives you the feature (via control panel) to change the context path to either none, subsonic (my choice) or music.
This does not change the install directories but the sub-domain for jetty.
So to access Subsonic I need to type IP:port/subsonic/index.view
If I had chosen music it be IP:port/music/index.view
Tsquillario understood the problem ok just didn't explain it very well :D
Edit: On re-reading not sure whether I am either :?
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Fri Nov 18, 2011 8:33 pm

BKKKPewsey wrote:
tsquillario wrote:BOOM! Pushed an update on Git to fix your issue. The default Subsonic install is at the web root not under a subdirectory like yours. I added a setting under Preferences to specify the subdirectory of your installation. So in your case you would put subsonic as that value. Then the path will be correct!

califrag wrote:As for the path... I'm not sure, but the IP:Port should resolve to 'C:\subsonic\webapp' (in your case). When Subsonic runs, it seems to set up the 'subsonic\webapp\" folder as the 'root' folder. So regardless of whether you install Subsonic to C:\subsonic, /mnt/data/Subsonic, C:\program files\subsonic, etc etc. It should create a sub-folder 'webapp' which it uses to serve all the files.
If it were 'IP:Port/subsonic/script/LAb..." that would signify that your C:\ is set up as your 'root' web folder, which should not be the case (huge security risk). I hope that makes sense...

Ok I think there is a bit of confusion here which was compounded by tsquillario's answer.
On Windows, SS gives you the feature (via control panel) to change the context path to either none, subsonic (my choice) or music.
This does not change the install directories but the sub-domain for jetty.
So to access Subsonic I need to type IP:port/subsonic/index.view
If I had chosen music it be IP:port/music/index.view
Tsquillario understood the problem ok just didn't explain it very well :D
Edit: On re-reading not sure whether I am either :?
:mrgreen:


Hm.. Ok, so SS is installed to Program Files, but by setting the 'subdomain' it re-routed the 'webapp' folder from program files to c:\subdomain (C:\subsonic in your case)... Right?
Sorry if I'm still not grasping the problem, I might just install SS on my windows machine to test it out so I can understand the issue more clearly and provide better instructions.
Plus it might be helpful to have it as a (separate) windows test environment anyways...
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby BKKKPewsey » Fri Nov 18, 2011 11:38 pm

The subsonic war file and the control panel exe files are in installed in Program Files but all the jetty files are installed in the same place as usual eg c:\subsonic (for windows).
That directory does not change (as far as I am aware) no matter what context path I choose.

Yep your idea of doing of doing a windows install might be a good idea :D
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Sat Nov 19, 2011 12:54 am

BKKKPewsey wrote:The subsonic war file and the control panel exe files are in installed in Program Files but all the jetty files are installed in the same place as usual eg c:\subsonic (for windows).
That directory does not change (as far as I am aware) no matter what context path I choose.

Yep your idea of doing of doing a windows install might be a good idea :D

Ok, so I went ahead and installed SS on my windows machine and it started up and worked fine.

I used the control panel to set my 'context path' to 'Subsonic' and it created the c:\subsonic\ folder and all other subfolders (db, jetty, etc).

I logged into my Subsonic localhost install, changed the password, added a music folder, verified that 4.6 beta 2 was working fine: it was.

I used the control panel to stop subsonic, I went into 'program files (x86)\subsonic' and deleted the subsonic.war and copied the new one, then went into the c:\subsonic\jetty folder and deleted folder 2566.

Then I used the control panel again to start subsonic and it created the new folders in the jetty folder and Subsonic is running with the new modded .war but I am seeing the issue now with stuff not working right.

Let me figure it out and then I'll let you know as soon as I got the new .war posted that works.

Let me know if there was anything I did differently during the install\setup than you did, but I think I see the problem now and I am pretty sure I know how to fix it.
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby BKKKPewsey » Sat Nov 19, 2011 2:12 am

Yep I did the same as you on my 1st attempt. However mine got installed 1 directory up eg webapp was installed under jetty not jetty/xxxx/ as it should be.
Since then I have expanded the war file and replaced the webapp folder manually.
Well done for getting this far :D
:mrgreen:

Edit: Re-reading your post it looks like yours has done the same - not sure if that will cause a problem :?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Sat Nov 19, 2011 3:00 am

BKKKPewsey wrote:Yep I did the same as you on my 1st attempt. However mine got installed 1 directory up eg webapp was installed under jetty not jetty/xxxx/ as it should be.
Since then I have expanded the war file and replaced the webapp folder manually.
Well done for getting this far :D
:mrgreen:

Edit: Re-reading your post it looks like yours has done the same - not sure if that will cause a problem :?


yep... i did the same thing, messed it all up. I tried putting my old subsonic.war back into program files but things didn't work properly. I had to completely uninstall then reinstall subsonic to get things working again.
I'm not sure why it does this, I have the 'standalone .war version' installed on my FreeNAS box and whenever I replace the .war it just unpacks all the files and runs normal. Anyways, I'm fixing the issue right now, but I'm starting to notice some other bugs that happen under this scenario, so please be patient while I fix them. I had planned to remove dddropdownpanel anyways because it is just duplicating some jQuery functionality so I have already started on that, successfully removed dddropdown and switchcontent, but am working on replacing the legacy code. Sorry for all the issues you had to go through with this, but once I get them fixed it should fix it permanently going forward. Thanks again for testing and providing the feedback so I can get these things worked out. Hoping to have a new .war posted tonight for you.
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby yuxiaolong » Thu Nov 24, 2011 11:10 am

First of all, I really like this project and can't wait for using it on my main server.
I am testing every posted update so maybe I can help by giving you my feedback:

So the improvement of the UI is really nice and the last update resolved a lot of compatibility issues i had in firefox (in chrome everything is loading fine)

I have encountered 2 important bugs that I didn't see reported:

    Upload menu
When I try to upload a file, the filepath in the box always show: "C:\fakepath\songname.mp3" and an error is saying that it wasn't possible to upload the file because of an incorrect filepath
I wasn't able to find the file/script causing this issue (I tried a grep to find the "fakepath" expression in my subsonic folder but no success).

    Creating user
When I create a new user, a comma "," is added at the beggining of the username... everytime

For the info about my testing config, subsonic with your mod is running on OSX 10.6.8 (so it's really strange to have this "C:\fakepath" bug)

Thanks callifrag and to all the modders! Keep up the good work !

I am trying to make as few mistakes/mispelling as I can... but please excuse my french... i am ;)
yuxiaolong
 
Posts: 3
Joined: Thu Jul 28, 2011 2:08 pm

Re: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Thu Nov 24, 2011 11:48 am

yuxiaolong wrote:First of all, I really like this project and can't wait for using it on my main server.
I am testing every posted update so maybe I can help by giving you my feedback:

So the improvement of the UI is really nice and the last update resolved a lot of compatibility issues i had in firefox (in chrome everything is loading fine)

I have encountered 2 important bugs that I didn't see reported:

    Upload menu
When I try to upload a file, the filepath in the box always show: "C:\fakepath\songname.mp3" and an error is saying that it wasn't possible to upload the file because of an incorrect filepath
I wasn't able to find the file/script causing this issue (I tried a grep to find the "fakepath" expression in my subsonic folder but no success).

    Creating user
When I create a new user, a comma "," is added at the beggining of the username... everytime

For the info about my testing config, subsonic with your mod is running on OSX 10.6.8 (so it's really strange to have this "C:\fakepath" bug)

Thanks callifrag and to all the modders! Keep up the good work !

I am trying to make as few mistakes/mispelling as I can... but please excuse my french... i am ;)


Hello, thanks for the feedback.

The upload thing is normal. Browser security prevents the user from ever seeing the 'real' path to the selected file, so the browser just shows "c:\fakepath" instead. So that is standard behavior. As for why it doesn't upload, it's probably due to the validation routine that checks to make sure the target path syntax is valid. I've re-vamped the validation routines for the next update and should resolve some of that issue.

For your username issue... that is a strange one. I haven't touched anything in the backend for the user generation, so I'll have to investigate a little deeper. Unfortunately I don't have an OS X box to test on, so not sure how long it will take me to debug this issue. I did test it on my machine and it is doing the same thing, so I should be able to trace the issue back an get it fixed.

EDIT:
Okay I found the problem and fixed it, I will post an updated .war soon.
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby yuxiaolong » Thu Nov 24, 2011 9:02 pm

That was fast! :D

I'll be glad to help if you need testing and feedback on OS X (and for the mod in general)
yuxiaolong
 
Posts: 3
Joined: Thu Jul 28, 2011 2:08 pm

Re: Subsonic Web UI Cleanup\Overhaul

Postby tbastard » Fri Nov 25, 2011 11:02 am

Hi, amazing mod btw, it has take subsonic to a new level for me.

I have an issue with adding songs to playlists. I tick the song in the bottom window and select add to playlist. This brings up a dropdown in the main frame where I can select the playlist, I then click on the add button and ... nothing happens... It is not making any changes to the playlist file.

I am also having the comma problem mentioned above when I create a user. I am running Freenas as the server OS.

Thanks,

C
tbastard
 
Posts: 3
Joined: Wed Nov 23, 2011 7:01 pm

Re: Subsonic Web UI Cleanup\Overhaul

Postby Drefsab » Fri Nov 25, 2011 2:57 pm

Im still having issues getting this working, I follow the install steps it builds the 2566 file in /var/subsonic/jetty but when I try to log in I get

HTTP ERROR: 404
NOT_FOUND
RequestURI=/

Powered by Jetty://

its still looking to the old 2567 folder thats no longer there. Does anyone know where this settings is saved so that I can edit it and make it look to the right folder.
Drefsab
 
Posts: 47
Joined: Sat May 07, 2011 9:44 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby Drefsab » Fri Nov 25, 2011 7:24 pm

w00t think I found it, Id done some poking around and it seams it was conflicting with one of my other mods.
Drefsab
 
Posts: 47
Joined: Sat May 07, 2011 9:44 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Fri Nov 25, 2011 10:00 pm

yuxiaolong wrote:That was fast! :D

I'll be glad to help if you need testing and feedback on OS X (and for the mod in general)


I was lucky that it was an easy fix.
I'll definitely need any feedback you can provide for OS-X issues since I won't be able to debug\find them myself. I appreciate it :)

tbastard wrote:Hi, amazing mod btw, it has take subsonic to a new level for me.

I have an issue with adding songs to playlists. I tick the song in the bottom window and select add to playlist. This brings up a dropdown in the main frame where I can select the playlist, I then click on the add button and ... nothing happens... It is not making any changes to the playlist file.

I am also having the comma problem mentioned above when I create a user. I am running Freenas as the server OS.

Thanks,

C


I'll look into the playlist issue. I think I know what is causing the issue and should be an easy fix.
The comma problem is fixed and the updated .war will be posted tonight.


Drefsab wrote:Im still having issues getting this working, I follow the install steps it builds the 2566 file in /var/subsonic/jetty but when I try to log in I get

HTTP ERROR: 404
NOT_FOUND
RequestURI=/

Powered by Jetty://

its still looking to the old 2567 folder thats no longer there. Does anyone know where this settings is saved so that I can edit it and make it look to the right folder.

Drefsab wrote:w00t think I found it, Id done some poking around and it seams it was conflicting with one of my other mods.


Glad you were able to figure it out. Just for reference the '2567' build number is located in /WEB-INF/classes/build_number.txt.
However you would need to modify this file inside the .war before you actually start Subsonic.
Anyways if you are still having any issues please post them here and I'll try to help.
Thanks for giving it a test :)
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby Drefsab » Fri Nov 25, 2011 10:40 pm

Got it all working now, I had done a lot of back end mods to integrate all my services, I didnt see the point in having 4+ webservers running on the same box and Id forgot about some of the changes, that plus a caching system is what was breaking things and I had a complete brainfart moment and forgot about some of the stuff I had in the way. Either way i've took it out of that and now its all working smooth and I love your work :D
Drefsab
 
Posts: 47
Joined: Sat May 07, 2011 9:44 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Fri Nov 25, 2011 11:42 pm

Drefsab wrote:Got it all working now, I had done a lot of back end mods to integrate all my services, I didnt see the point in having 4+ webservers running on the same box and Id forgot about some of the changes, that plus a caching system is what was breaking things and I had a complete brainfart moment and forgot about some of the stuff I had in the way. Either way i've took it out of that and now its all working smooth and I love your work :D


It's really is good to hear that someone else was able to get it working 100% (minus the known bugs, stuff still to be worked on, fixes waiting to be rolled out).

Would you mind posting up your SS setup here ? what OS do you use and what web browsers? Do you have multiple users or are you the primary user? any other info you think might be good for reference. Just a little extra feedback to help during debugging and identifying possible issues, thanks in advance :)

The .war that I will be posting tonight will have a COMPLETELY overhauled UI to use jQuery for all the buttons and 'user interface' actions. The playermod has been reduced and converted and several other interface changes.

As such, a lot of the custom theme icons need to be fixed to point to the right place, so the themes will not be 100% working just yet. This is just css that I will need to fix and should be fairly quick (1-day work) once I get started.

Anyways I've made a bunch of other changes, and the performance is a lot better now too, I'll post up the modified changelog once I get the .war posted up. I will hopefully try to post it by 8pm PST, which really means I will probably roll it out around midnight :oops:

I still haven't figured out the issue with the Windows version context path issue, and there are still bugs I haven't even really started to work on.

EDIT:
Updated .war has been posted to the dropbox link.
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

PreviousNext

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 12 guests