Categories "Folder/Path" Ignoring Leading Space in Directory

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
DesertRat
Newbie
Newbie
Posts: 2
Joined: November 25th, 2014, 11:27 am

Categories "Folder/Path" Ignoring Leading Space in Directory

Post by DesertRat »

Ever since upgrading to 0.7.20 (OS X Mavericks), I've had a funny issue. The program isn't respecting the leading space I have in directory paths within the "Categories" section.

Example:

One category is called "movies" and the "Folder/Path" has always been:
/Volumes/Drobo/ Incoming/couchpotato

Since the 0.7.20 update, sabnzbd is creating a new path at:
/Volumes/Drobo/Incoming/couchpotato (sans space before "Incoming")
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: Categories "Folder/Path" Ignoring Leading Space in Direc

Post by jcfp »

According to the discussion in https://forums.sabnzbd.org/viewtopic.php?t=18322 (in dutch) that's intentional, and the behaviour of earlier releases actually the result of a bug that prevented such spaces from being removed as intended all along.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Categories "Folder/Path" Ignoring Leading Space in Direc

Post by shypike »

The leading space should always have been removed, only it wasn't due to a bug.
On several platforms fooling around with leading and trailing spaces can cause problems.
We decided to prevent those.
A leading underscore will work.
DesertRat
Newbie
Newbie
Posts: 2
Joined: November 25th, 2014, 11:27 am

Re: Categories "Folder/Path" Ignoring Leading Space in Direc

Post by DesertRat »

Many thanks for the replies. I will change my settings to no longer use the trailing space.
Post Reply