Page 1 of 1

Password extraction in 8.0a2-a3 seems broken

Posted: July 4th, 2015, 4:39 pm
by Cpuroast
Hi,
It seems that the password extraction in 8.0a2-a3 seems broken, but it might not be a new bug in 0.8.0:

I have a job stuck at "Unpacking failed, archive requires a password"

If I hit retry and feed it SomePassword in the password text box it fails again.

If I drop to command line and do "unrar e -pSomePassword SomeDownloadJob.part01.rar while in the temporary job folder, it extracts normally.

Now, if I understand the log correctly it's mistakenly trying "19" using the parameter -p19 as a password?
Is the clear text password actually contained in the log or is 19 a variable containing the password the user submitted.

Here's the debug log that seems to be relevant:

2015-07-04 17:02:48,708::INFO::[newsunpack:457] Extracting rarfile /Users/CpuroastXP/Downloads/Downloads/SABnzbd/Temporary/SomeDownloadJob/SomeDownloadJob.part01.rar (belonging to SomeDownloadJob) to /Users/CpuroastXP/Downloads/Downloads/SABnzbd/Completed
2015-07-04 17:02:48,708::INFO::[newsunpack:510] Got a password set by user
2015-07-04 17:02:48,708::DEBUG::[newsunpack:541] Trying unrar with password "19] - "SomeDownloadJob.par2" - 717,10 MB yEnc"
2015-07-04 17:02:48,708::DEBUG::[newsunpack:561] rar_extract(): Extractionpath: /Users/CpuroastXP/Downloads/Downloads/SABnzbd/Completed
2015-07-04 17:02:48,708::DEBUG::[rarfile:323] CRC mismatch! ofs =20
2015-07-04 17:02:48,709::DEBUG::[newsunpack:606] Running unrar ['/usr/bin/nice', '-n', '20', '/Applications/SABnzbd.app/Contents/Resources/osx/unrar/unrar', 'e', '-idp', '-o-', '-or', '-p19] - "SomeDownloadJob.par2" - 717,10 MB yEnc', '/Users/CpuroastXP/Downloads/Downloads/SABnzbd/Temporary/SomeDownloadJob/SomeDownloadJob.part01.rar', '/Users/CpuroastXP/Downloads/Downloads/SABnzbd/Completed/']
2015-07-04 17:02:48,916::DEBUG::[newsunpack:561] rar_extract(): Extractionpath: /Users/CpuroastXP/Downloads/Downloads/SABnzbd/Completed
2015-07-04 17:02:48,916::DEBUG::[rarfile:323] CRC mismatch! ofs =20
2015-07-04 17:02:48,916::DEBUG::[newsunpack:606] Running unrar ['/usr/bin/nice', '-n', '20', '/Applications/SABnzbd.app/Contents/Resources/osx/unrar/unrar', 'e', '-idp', '-o-', '-or', '-p-', '/Users/CpuroastXP/Downloads/Downloads/SABnzbd/Temporary/SomeDownloadJob/SomeDownloadJob.part01.rar', '/Users/CpuroastXP/Downloads/Downloads/SABnzbd/Completed/']
2015-07-04 17:02:48,944::ERROR::[newsunpack:550] Unpacking failed, archive requires a password (SomeDownloadJob.part01.rar)

Re: Password extraction in 8.0a2-a3 seems broken

Posted: July 5th, 2015, 8:04 am
by shypike
Could be, I'll investigate.
We've had quite a few surprises with going to full Unicode.

Re: Password extraction in 8.0a2-a3 seems broken

Posted: July 5th, 2015, 9:23 am
by shypike
Found the problem, will be fixed in Alpha4.