Actually this bug is quite simple to fix.  The problem is that the backup
and restore both do them in the same order instead of inverting the order on
restore.

Current Code:
        compress -> encrypt -> decompress -> decrypt

It should be:
        compress -> encrypt -> decrypt -> decompress

I can change the restore order so that existing backups will become readable
and new backups will work whether created by the old software or the new.

I'll commit the fix once I've finished testing it. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arno
Lehmann
Sent: Wednesday, November 01, 2006 3:43 AM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Encryption/Compression Conflict in CVS

Hi,

On 11/1/2006 5:43 AM, Michael Brennen wrote:
> I posted a couple of days ago that restoring files from 1.39.27 
> (current CVS) with both encryption and compression turned on 
> resulted in 0 length files being restored.
> 
> I was able to test that further tonight by archiving and restoring a 
> file in the 4 combinations of encryption/compression off/on.
> 
> Running neither, compression alone or encryption alone I was able to 
> archive and restore a file correctly.  Running the two together I 
> was able to reproduce the problem of 0 length restores, with no 
> apparent errors.
> 
> So... in my testing the combination of encryption and compression is 
> either not writing files correctly to tape (in which case there is a 
> lot of tape space taken up needlessly :) or the files are being 
> corrupted in the restore process; it appears to me to be the latter.

This sounds like compression should be automatically disabled when 
encrypton is enabled. Should be useless anyway as encrypted data should 
no longer be compressible.

Arno

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to