bugrdiff-backup - Bugs: bug #27025, --list-increments doesn't work...

 
 

bug #27025: --list-increments doesn't work when --restrict-read-only is set on server

Submitted by:  Woon Wai Keen <doubleukay>
Submitted on:  Tue 14 Jul 2009 01:46:15 PM 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.

 

Tue 14 Jul 2009 01:46:15 PM UTC, original submission:

Hi, I get this problem when the rdiff-backup (1.2.5) server has --restrict-read-only, and I run a --list-increments on it from a (1.2.8) client.

It bails out with this error:

Bad request for function: fs_abilities.single_set_globals
with arguments: [<rdiff_backup.rpath.RPath instance at 0x14b21b8>, 1]
' raised of class '<class 'rdiff_backup.Security.Violation'>':
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 304, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 324, in Main
take_action(rps)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 286, in take_action
elif action == "list-increments": ListIncrements(rps[0])
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 697, in ListIncrements
rp = require_root_set(rp, 1)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 719, in require_root_set
read_only)
File "/var/lib/python-support/python2.5/rdiff_backup/connection.py", line 450, in _call_
return apply(self.connection.reval, (self.name,) + args)
File "/var/lib/python-support/python2.5/rdiff_backup/connection.py", line 370, in reval
if isinstance(result, Exception): raise result

I have looked at the source, and found that if I added fs_abilities.single_set_globals to the read-only ACL, the --list-increments works. I'm not sure if this is the best way to be fixing things, so I'm filing this bug for you to have a look :)

regards,
wK

Woon Wai Keen <doubleukay>

 

(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 doubleukay (Submitted the item)
  • -unavailable- added by doubleukay
  •  

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

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 14 Jul 2009 01:46:15 PM UTCdoubleukayCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1