When a nzb file is added using addlocalfile API, sabnzbd replies 'ok' even on error.
* 1st case:
I have one unix user with a file in /tmp with 0600 permission and sabnzbd runs as a different user. Each time the file is sent to sabnzbd, I receive an 'ok' but the file is not added. The log file contains these lines:
Code: Select all
2012-06-10 16:37:25,274::WARNING::[dirscanner:155] Cannot read /tmp/xxxxxX.nzb
2012-06-10 16:37:25,275::INFO::[dirscanner:156] Traceback:
Traceback (most recent call last):
File "/my_home_dir/SABnzbd-0.6.15/sabnzbd/dirscanner.py", line 140, in ProcessSingleFile
f = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/tmp/xxxxxX.nzb'If the filename given to addlocalfile does not have a recognized extension (.zip, .rar, .nzb, .gz), sabnzbd replies 'ok' (in doubt
Code: Select all
else:
return report(output, _MSG_OUTPUT_FORMAT)
