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

 
 

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

Submitter:  None
Submitted:  Thu 27 Aug 2009 07:00:39 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Feb 2020 10:30:34 AM UTC, comment #2: 
Eric L. <ericzolf>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-24 ericzolf StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code