Page 1 of 1

Easy fixable: Config of RSS feed not working behind proxy

Posted: March 27th, 2012, 10:12 am
by NEI
I have an apache configured as reverse proxy listening for "/sabnzbd" requests. Unfortunately Sabnzbd forgets to add "/sabnzbd" when trying to configure a RSS entry.

To reproduce it you will need a reverse proxy and a configured RSS feed, then:
1. Select Config->RSS
2. Select an already configured feed -> Nothing happens

When inspecting the access log of apache I see, that when clicking the feed, it tries to access "/config/..." and forgets to add "/sabnzbd", so that's why the reverse proxy config does not work there. If unclear please ask...

Version: SABnzbd Version: 0.6.15 | smpl Version: 1.3
OS: OSX Lion
Install-type: OSx .app
Skin: Smpl
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes

Re: Easy fixable: Config of RSS feed not working behind prox

Posted: March 27th, 2012, 10:17 am
by shypike
smpl is on the way out, the next release will concentrate on a single skin for configuration.
We're making that one fully compatible with proxies.
If it's an easy fix for 0.7.0, we'll include it anyway.

Re: Easy fixable: Config of RSS feed not working behind prox

Posted: March 27th, 2012, 12:50 pm
by shypike
If you want, you can patch this yourself.
Open this file with TextEdit:
/Applications/SABnzbd.app/Contents/Resources/interfaces/smpl/templates/config_rss.tmpl

Then find line 360:

Code: Select all

      <td><a href="#/config/rss/" onClick="lr('../config/rss/','feed=$rss[$feed]['link']', 0, 0);">$feed</a></td>
Change it to:

Code: Select all

      <td><a href="#/config/rss/" onClick="lr('./config/rss/','feed=$rss[$feed]['link']', 0, 0);">$feed</a></td>
Press refresh in the browser and things should now work.

Re: Easy fixable: Config of RSS feed not working behind prox

Posted: March 27th, 2012, 2:00 pm
by NEI
Thanks! This fixed it! Somehow I hang on the smpl skin... :-) I am no fan of fancy stuff...

Re: Easy fixable: Config of RSS feed not working behind prox

Posted: March 27th, 2012, 2:24 pm
by shypike
You haven't looked inside smpl (except for the patch).
It is rather fancy, but so fancy it's hard to maintain...

Re: Easy fixable: Config of RSS feed not working behind prox

Posted: March 27th, 2012, 2:28 pm
by NEI
Ok, I mean fancy from the user view. If it not maintainable, I would purge it too... I'm developing software too and know the pain. ;-) BTW, just donated some money... :-)

Re: Easy fixable: Config of RSS feed not working behind prox

Posted: March 27th, 2012, 2:31 pm
by shypike
Ah, that was you. Thanks.
Do you want your nickname listed as donor?

Re: Easy fixable: Config of RSS feed not working behind prox

Posted: March 27th, 2012, 2:33 pm
by NEI
No thanks, not necessary... :-) good n8