bugrdiff-backup - Bugs: bug #13576, backing up ACLs to host without...

 
 

bug #13576: backing up ACLs to host without posix1e fails

Submitted by:  dean gaudet <dgaudet>
Submitted on:  Thu 30 Jun 2005 02:20:43 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Benedict Escoto <bescoto>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 10 Aug 2005 05:26:39 AM UTC, comment #2:

Fixed as described earlier, please test and reopen if necessary.

Benedict Escoto <bescoto>
Project AdministratorIn charge of this item.
Sun 07 Aug 2005 07:42:15 PM UTC, comment #1:

Seems the answer is to make the entrytuple_to_text and text_to_entrytuple functions not require the posix1e extension. The entrytuple could be stored in an rdiff-backup specific format, so we wouldn't need the posix1e constants except when reading or writing an ACL.

Benedict Escoto <bescoto>
Project AdministratorIn charge of this item.
Thu 30 Jun 2005 02:20:43 AM UTC, original submission:

if the source host has posix1e support, and the target host does not have the posix1e import available the backup fails with a traceback. the problem is that we end up invoking _str_(acl) on the remote side, which requires posix1e support.

with -v7 i get the following traceback which is the most useful:

Sending back exception global name 'posix1e' is not defined of type exceptions.NameError:
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py", line 334, in answer_request
result = apply(eval(request.function_string), argument_list)
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line 220, in patch
cls.CCPP.close()
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line 428, in close
while self.cache_indicies: self.shorten_cache()
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line 348, in shorten_cache
changed_flag, success_flag, inc)
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line 378, in post_process
eas_acls.AccessControlListFile.write_object(
File "/usr/lib/python2.3/site-packages/rdiff_backup/metadata.py", line 354, in write_object
record = cls._object_to_record(object)
File "/usr/lib/python2.3/site-packages/rdiff_backup/eas_acls.py", line 460, in ACL2Record
return '# file: %s\n%s\n' % (C.acl_quote(acl.get_indexpath()), str(acl))
File "/usr/lib/python2.3/site-packages/rdiff_backup/eas_acls.py", line 211, in _str_
slist = map(self.entrytuple_to_text, self.entry_list)
File "/usr/lib/python2.3/site-packages/rdiff_backup/eas_acls.py", line 220, in entrytuple_to_text
if type == posix1e.ACL_USER_OBJ:

dean gaudet <dgaudet>
Project Administrator

 

(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

 

CC list is empty

 

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):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 10 Aug 2005 05:26:39 AM UTCbescotoStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Sun 07 Aug 2005 07:42:15 PM UTCbescotoAssigned toNone=>bescoto

Back to the top


Powered by Savane 3.1-cleanup1