Easy fixable: Config of RSS feed not working behind proxy

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
NEI
Newbie
Newbie
Posts: 12
Joined: June 14th, 2010, 5:06 am

Easy fixable: Config of RSS feed not working behind proxy

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

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

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

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

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

Post by NEI »

Thanks! This fixed it! Somehow I hang on the smpl skin... :-) I am no fan of fancy stuff...
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post by shypike »

You haven't looked inside smpl (except for the patch).
It is rather fancy, but so fancy it's hard to maintain...
NEI
Newbie
Newbie
Posts: 12
Joined: June 14th, 2010, 5:06 am

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

Post 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... :-)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post by shypike »

Ah, that was you. Thanks.
Do you want your nickname listed as donor?
NEI
Newbie
Newbie
Posts: 12
Joined: June 14th, 2010, 5:06 am

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

Post by NEI »

No thanks, not necessary... :-) good n8
Post Reply