supplied example conf file doesn't quote newzbin username and password leading to a crash when real credentials are entered

Bug #467723 reported by TorenC
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hellanzb (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: hellanzb

In the /etc/hallanzb.conf supplied with the package the Hellanzb.NEWZBIN_USERNAME and hellanzb.NEWZBIN_PASSWORD options don't have their values quoted, but quotes are necessary. At least they were for me with my username and password. I put them in single quotes, and it fixed it for me.

I'm on Karmic

ProblemType: Bug
Architecture: i386
Date: Sat Oct 31 17:36:29 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: wl
Package: hellanzb 0.13-3ubuntu4
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-13.44-generic
SourcePackage: hellanzb
Tags: ubuntu-unr
Uname: Linux 2.6.31-13-generic i686

Revision history for this message
TorenC (torenc) wrote :
summary: - default config file doesn't quote newzbin username and passwords,
+ supplied example conf file doesn't quote newzbin username and password
leading to a crash when real credentials are entered
Revision history for this message
Severin H (severinh) wrote :

Hi TorenC,

the default configuration file contains the following lines:

# Username/Password to http://www.newzbin.com for automatic NZB downloading
Hellanzb.NEWZBIN_USERNAME = None
Hellanzb.NEWZBIN_PASSWORD = None

That's perfectly valid because None means that no username and no password has been specified. However, you're right that the values for NEWZBIN_USERNAME and NEWZBIN_PASSWORD need to have quotes as soon as you add actual values.

Because of this, editing the configuration files can confuse people who aren't acquainted to Python. May be one could check if it's also possible to change the lines to

# Username/Password to http://www.newzbin.com for automatic NZB downloading
Hellanzb.NEWZBIN_USERNAME = ''
Hellanzb.NEWZBIN_PASSWORD = ''

or add a second comment line.

You might want to try LottaNZB. It's an user-friendly front-end for HellaNZB that let's you manage the settings in a very comfortable way.

Revision history for this message
TorenC (torenc) wrote :

I did eventually end up using lottanzb. I'd think a second comment line would be fine. I don't know python, would putting the none is quotes not work?

Revision history for this message
Severin H (severinh) wrote :

That's good to hear. ;-)

"None" means: A string that contains the characters "N", "o", "n" and "e". Someone might for example have a username "None".
None means: Not a string at all.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.