Bug: checkserver.js uses absolute path

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
bramp
Newbie
Newbie
Posts: 1
Joined: February 18th, 2012, 3:39 pm

Bug: checkserver.js uses absolute path

Post by bramp »

I run sabnzbd behind apache, and I noticed that during the Wizard setup, the "Test Server" button didn't work. The call to tapi was uing a absolute path, not a relative one.

Very simple fix,

Code: Select all

--- sabnzbdplus.bak//interfaces/wizard/static/javascript/checkserver.js	2012-02-18 15:34:14.804745624 -0500
+++ sabnzbdplus/interfaces/wizard/static/javascript/checkserver.js	2012-02-18 15:30:44.906821538 -0500
@@ -13,7 +13,7 @@
   $("#serverTest").click(function(){
     $('#serverResponse').html(txtChecking);
     $.getJSON(
-      "/tapi?mode=config&name=test_server&output=json",
+      "../tapi?mode=config&name=test_server&output=json",
       $("form").serialize(),
       function(result) {
         if (result.value.result){
thanks
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Bug: checkserver.js uses absolute path

Post by shypike »

Thanks for the tip, we'll fix it.
Of course, not many people will run the wizard from behind Apache...
Post Reply