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

Submitter:  Woon Wai Keen <doubleukay>
Submitted:  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:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 May 2022 05:09:14 PM UTC, comment #1: 

This issue has been closed because it hasn&#039;t been touched for years, as the development continued on GitHub. If the issue is still present in a recent version, please re-open it under https://github.com/rdiff-backup/rdiff-backup/issues after having made that it&#039;s not already reported there.

Eric L. <ericzolf>
Group administrator
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 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 (Updated the item)
  • -email is unavailable- added by doubleukay (Submitted the item)
  • -email is unavailable- added by doubleukay
  •  

    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
    2022-05-20 ericzolf Open/ClosedOpen Closed
    2009-07-14 doubleukay Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code