rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] windows rdiff-backup --test-server & --restrict


From: Davy Stoffel
Subject: Re: [rdiff-backup-users] windows rdiff-backup --test-server & --restrict
Date: Thu, 09 Aug 2012 10:47:35 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110701 Icedove/3.1.11

If someone have the same problem, is not related to Windows itself, it's
a bug in 1.2.8 version. I didn't see the problem on debian/ubuntu
because debian/ubuntu patch rdiff-backup to fix this bug.

https://bugs.launchpad.net/ubuntu/+source/rdiff-backup/+bug/349072

I rebuild rdiff-backup for windows with this patch and works now.

The bug is fixed in CVS apparently.

>Fixed in CVS. Will be included in next rdiff-backup releases, 1.2.9
>and 1.3.4.


Regards,
--
Davy STOFFEL
GPG Key ID/Fingerprint: 66A51FF7
Conostix S.A.
70, rue de Tétange
3672 Kayl, Luxembourg

Tel : +352 26 10 30 61
Fax : +352 26 10 30 62

On 08/01/2012 11:05 AM, Davy Stoffel wrote:
> Hi Guys,
> 
> I'm trying to test the --test-server switch with the Windows version
> (1.2.8).
> 
> On the server side, i defined (trough authorized keys) "--restrict backup/".
> 
> On the windows, if i try to backup something  :
> 
> rdiff-backup.exe --remote-schema """C:\cbackup_test\plink.exe"" -2
> -batch -P 22 -i ""C:\cbackup_test\private_key.ppk"" %s rdiff-backup
> --server" --include "C:\\/test" --exclude "C:\\/**" C:\/
> address@hidden::backup/
> 
> It's working correctly.
> 
> If i try the --test-server :
> 
> rdiff-backup.exe --remote-schema """C:\cbackup_test\plink.exe"" -2
> -batch -P 22 -i ""C:\cbackup_test\private_key.ppk"" %s rdiff-backup
> --server" --test-server address@hidden::backup/
> 
> Testing server started by:  "C:\cbackup_test\plink.exe" -2 -batch -P 22
> -i "C:\cbackup_test\private_key.ppk" address@hidden
> rdiff-backup --server
> 
> Server tests failed
> Exception '
> Warning Security Violation!
> Request to handle path .
> which doesn't appear to be within restrict path backup.
> ' raised of class '<class 'rdiff_backup.Security.Violation'>':
>   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 291, in take_action
>   File "rdiff_backup\SetConnections.pyc", line 248, in TestConnections
>   File "rdiff_backup\SetConnections.pyc", line 256, in test_connection
>   File "rdiff_backup\connection.pyc", line 450, in __call__
>   File "rdiff_backup\connection.pyc", line 370, in reval
> 
> 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 291, in take_action
>   File "rdiff_backup\SetConnections.pyc", line 248, in TestConnections
>   File "rdiff_backup\SetConnections.pyc", line 256, in test_connection
>   File "rdiff_backup\connection.pyc", line 450, in __call__
>   File "rdiff_backup\connection.pyc", line 370, in reval
> rdiff_backup.Security.Violation:
> Warning Security Violation!
> Request to handle path .
> which doesn't appear to be within restrict path backup.
> 
> 
> If i remove the --restrict on the server side, the --test-server is
> running fine.
> 
> Is this a bug with the Windows version when --restrict is enabled or i
> miss something in my test ?
> 
> 
> Thank you,
> --
> Davy STOFFEL
> GPG Key ID/Fingerprint: 66A51FF7
> Conostix S.A.
> 70, rue de Tétange
> 3672 Kayl, Luxembourg
> 
> Tel : +352 26 10 30 61
> Fax : +352 26 10 30 62

Attachment: 01_fix_restricted_test-server_option.dpatch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]