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:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned 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
  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
  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 :)


Woon Wai Keen <doubleukay>


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

Attach Files:

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

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

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-07-14 doubleukay Carbon-Copy- => Added doubleukay@doubleukay.com

    Back to the top

    Powered by Savane 3.5