Sabnzbd - dates of files dated 01/01/2098

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Sabnzbd - dates of files dated 01/01/2098

Post by psycik »

Version: 0.5.0
OS:Windows XP SP3
Install-type: Windows Installer
Skin (if applicable): smpl-black
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? (yes/no) no.

Have found the odd file when unpacked (automatically) has a file date of 01/01/2098.  Being in New Zealand my date format regularly is dd/mm/yyyy.

Not sure what is setting the date, am assuming it's in the unpack/unrar process.  Not sure if there is anything I can provide to help.  Just had a quick look through the log and couldn't see anything relating to dates at the end of the download of this particular file
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd - dates of files dated 01/01/2098

Post by shypike »

SABnzbd doesn't do anything with file dates, it lets the OS do that.
Unrar does it's own thing.
If the funny files came out of a RAR file, I suspect that the poster did something wrong.
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Re: Sabnzbd - dates of files dated 01/01/2098

Post by psycik »

Yes that is the answer that I expected.  Are there any switches thrown to unrar that tell it to try and preserve the dates?  or any switch that could be thrown to make it not try to preserve a date if that's the default behaviour?
User avatar
bjornhallberg
Newbie
Newbie
Posts: 9
Joined: November 8th, 2010, 3:17 am

Re: Sabnzbd - dates of files dated 01/01/2098

Post by bjornhallberg »

I ran into the issue as well and want to know the same thing. The problem in my case is that the target machine (Synology NAS EXT4) doesn't allow this date (2098.. etc) and saves the file in a way which appears to have NO modified date. The 2038 problem? That means that most applications cant open the file.

If I just unrar it manually to a WINDOWS volume using powerarchiver or whatever it gets the future date written. And I can later manually set the last "modified date" to the whatever which is not possible if sab / unrar has done the unpacking.

Is the preservation of the modified date field a sab / unrar feature or as you suggest an OS issue? Can it be forced?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd - dates of files dated 01/01/2098

Post by shypike »

You can tell unrar to suppress date handling with the -tsm- flag.
Maybe we can make this a "hidden" option.

If you're brave you can hack the file sabnzbd/newsunpack.py yourself :)
Change line 456 to read:

Code: Select all

        command = ['%s' % RAR_COMMAND, 'x', '-idp', '-o-', '-or', '-tsm-', password,
Post Reply