bugrdiff-backup - Bugs: bug #27327, Exception thrown if filename too...

 
 

bug #27327: Exception thrown if filename too long (on Windows)

Submitted by:  None
Submitted on:  Thu 27 Aug 2009 07:00:39 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 25 Mar 2010 03:57:02 PM UTC, comment #1:

rdiff-backup seems to be using the old api for windows file access, which limits paths to MAX_PATH (a bit less than 260) characters. Is this behaviour by design?

It would be very welcome if rdiff-backup would print the warning but still backup the file anyway using the new, unicode api for file access that supports around 32000 characters.

The user should not be creating such long paths and rdiff-backup is right to complain about it, but simply not backing up the file might be too much of a punishment.

Emanuel <shar>
Thu 27 Aug 2009 07:00:39 AM UTC, original submission:

See the stacktrace below, I tried to backup Documents and Settings (which worked fine except for the locked system files).
Maybe this is a Windows internal error, would be really stupid:

Exception '[Error 206] Der Dateiname oder die Erweiterung ist zu lang: 'backups\\Dokumente und Einstellungen/rdiff-backu
p-data/increments/bach_ar/Anwendungsdaten/OpenOffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment
.configuration.PackageRegistryBackend/registry/data/org/openoffice/TypeDetection'' raised of class '<type 'exceptions.Wi
ndowsError'>':
File "rdiff_backup\Main.pyc", line 304, in error_check_Main
File "rdiff_backup\Main.pyc", line 324, in Main
File "rdiff_backup\Main.pyc", line 280, in take_action
File "rdiff_backup\Main.pyc", line 346, in Backup
File "rdiff_backup\backup.pyc", line 38, in Mirror
File "rdiff_backup\backup.pyc", line 232, in patch
File "rdiff_backup\rorpiter.pyc", line 281, in _call_
File "rdiff_backup\backup.pyc", line 526, in fast_process
File "rdiff_backup\longname.pyc", line 205, in get_mirror_inc_rps
File "rdiff_backup\longname.pyc", line 191, in find_inc_pair
File "rdiff_backup\longname.pyc", line 130, in check_new_index
File "rdiff_backup\longname.pyc", line 111, in wrap_call
File "rdiff_backup\longname.pyc", line 124, in make_parent
File "rdiff_backup\rpath.pyc", line 988, in makedirs
File "os.pyc", line 157, in makedirs

Traceback (most recent call last):
File "rdiff-backup", line 30, in <module>
File "rdiff_backup\Main.pyc", line 304, in error_check_Main
File "rdiff_backup\Main.pyc", line 324, in Main
File "rdiff_backup\Main.pyc", line 280, in take_action
File "rdiff_backup\Main.pyc", line 346, in Backup
File "rdiff_backup\backup.pyc", line 38, in Mirror
File "rdiff_backup\backup.pyc", line 232, in patch
File "rdiff_backup\rorpiter.pyc", line 281, in _call_
File "rdiff_backup\backup.pyc", line 526, in fast_process
File "rdiff_backup\longname.pyc", line 205, in get_mirror_inc_rps
File "rdiff_backup\longname.pyc", line 191, in find_inc_pair
File "rdiff_backup\longname.pyc", line 130, in check_new_index
File "rdiff_backup\longname.pyc", line 111, in wrap_call
File "rdiff_backup\longname.pyc", line 124, in make_parent
File "rdiff_backup\rpath.pyc", line 988, in makedirs
File "os.pyc", line 157, in makedirs
WindowsError: [Error 206] Der Dateiname oder die Erweiterung ist zu lang: 'backups\\Dokumente und Einstellungen/rdiff-ba
ckup-data/increments/bach_ar/Anwendungsdaten/OpenOffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deploym
ent.configuration.PackageRegistryBackend/registry/data/org/openoffice/TypeDetection'

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by shar (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1