Easy fixable: Config of RSS feed not working behind proxy

Report & discuss bugs found in SABnzbd

Easy fixable: Config of RSS feed not working behind proxy

Postby NEI » March 27th, 2012, 11:12 am

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
NEI
Newbie
Newbie
 
Posts: 12
Joined: June 14th, 2010, 6:06 am

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

Postby shypike » March 27th, 2012, 11:17 am

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

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

Postby shypike » March 27th, 2012, 1:50 pm

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

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

Postby NEI » March 27th, 2012, 3:00 pm

Thanks! This fixed it! Somehow I hang on the smpl skin... :-) I am no fan of fancy stuff...
NEI
Newbie
Newbie
 
Posts: 12
Joined: June 14th, 2010, 6:06 am

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

Postby shypike » March 27th, 2012, 3:24 pm

You haven't looked inside smpl (except for the patch).
It is rather fancy, but so fancy it's hard to maintain...
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

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

Postby NEI » March 27th, 2012, 3:28 pm

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... :-)
NEI
Newbie
Newbie
 
Posts: 12
Joined: June 14th, 2010, 6:06 am

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

Postby shypike » March 27th, 2012, 3:31 pm

Ah, that was you. Thanks.
Do you want your nickname listed as donor?
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

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

Postby NEI » March 27th, 2012, 3:33 pm

No thanks, not necessary... :-) good n8
NEI
Newbie
Newbie
 
Posts: 12
Joined: June 14th, 2010, 6:06 am


Return to Bug Reports