-
-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: illegal char in resulting filename: SAB bails out, but manual unrar OK with nice renaming #1574
Comments
After we read the error-line, we stop parsing the output, so maybe |
Indeed we
Reason being is that we use long-path notation, so that we can still unpack jobs that exceed Windows's 270-char limit on paths. However, it seems that |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale. |
Triggered by https://www.reddit.com/r/SABnzbd/comments/i7nz5j/weird_ascii_characters_cause_download_to/
On Windows, SAB bails out with this crafted NZB:
https://raw.githubusercontent.com/sanderjo/NZBs/master/reftestnzb_illegal_char_HEX_1A_in_filename_0cf049082ecd.nzb with this error:
ERROR: write error ( \\?\C:\Users\blabla\AppData\Local\sabnzbd\Downloads\complete\_UNPACK_reftestnzb_illegal_char_HEX_1A_in_filename_0cf049082ecd.2\bbbb�zzzz.bin)
Quite understandably: there is an illegal hex 1A in the filename.
But ... if SAB just Downloads the post (no unpacking), a manual unrar goes OK, resulting in a renamed filename. See below. So ... SAB can do better by just letting unrar do the renaming?
It says errors: 1, but the file is there, renamed without the illegal char:
14-08-2020 08:38 10.485.760 bbbb_zzzz.bin
The magic happens here:
It is a warning, but all goes well.
BTW: I don't understand why the SAB-call of unrar does not trigger this behaviour in unrar (but just an OS error). Maybe because of all the CLI options SAB gives to unrar?
EDIT: no, the CLI options are not the cause; with CLI options, a manual unrar goes OK too:
The text was updated successfully, but these errors were encountered: