Page 1 of 1

Unrar problem due to AppleDouble folder

Posted: July 11th, 2013, 2:03 am
by darious
Hi,

I have a problem that seems to have turned up in 0.7.14 (didn't have it in 0.7.13).

I have Sab running on an Ubuntu Server 12.04 box (installed from the unofficial repo). The folder this downloads to is shared over both SMB and AFP. I believe therefore Netatalk is creating the resource fork files, these .AppleDouble folders. Until 0.7.14 this didn't seem to cause any problems, now however it seems to be causing the rar extract process to fail it's finding rar files in these folders that are not really rar files, which then fail to extract.

i.e. from my log

Code: Select all

2013-07-11 07:47:26,131::DEBUG::[newsunpack:1394] build_filelists(): ts: []
2013-07-11 07:47:26,132::INFO::[newsunpack:208] Unrar starting on /media/datavol/usenet/incomplete/nice_little_download
2013-07-11 07:47:26,132::DEBUG::[newsunpack:410] Rar_sets: {'nice_little_download': ['/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r07', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r05', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.rar', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r06', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r01', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r03', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r08', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r04', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r02', '/media/datavol/usenet/incomplete/nice_little_download/nice_little_download.r00', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.r05', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.rar', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.r06', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.r01', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.r03', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.r04', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.r02', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.r00']}
At the bottom you can see it's picked up some rar files from the AppleDouble folder.

It then tries to extract these,

Code: Select all

2013-07-11 07:47:26,132::INFO::[newsunpack:424] Extracting rarfile /media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.rar (belonging to nice_little_download) to /media/datavol/usenet/complete/tv/_UNPACK_nice_little_download
2013-07-11 07:47:26,133::DEBUG::[newsunpack:523] rar_extract(): Extractionpath: /media/datavol/usenet/complete/tv/_UNPACK_nice_little_download
2013-07-11 07:47:26,133::INFO::[newsunpack:530] Archive /media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.rar probably has full encryption
2013-07-11 07:47:26,133::DEBUG::[newsunpack:568] Running unrar ['/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-p-', '/media/datavol/usenet/incomplete/nice_little_download/.AppleDouble/nice_little_download.rar', '/media/datavol/usenet/complete/tv/_UNPACK_nice_little_download/']
2013-07-11 07:47:26,165::INFO::[newsunpack:212] Unrar finished on /media/datavol/usenet/incomplete/nice_little_download
which of course fails. It never tries to unrar the real files.

If I delete the .AppleDouble folder from the incomplete folder and hit retry in the web interface, it can process the real files and everything works.

Is this a bug or am I doing something wrong?

Thanks in advance

Re: Unrar problem due to AppleDouble folder

Posted: July 11th, 2013, 3:54 am
by shypike
It shouldn't be an issue, but I'll check this again.