Eric Bollengier [Tue, 26 Sep 2023 15:06:37 +0000 (17:06 +0200)]
Fix #10401 About issue when truncating immutable volume
- The protection time was not set in with the immutability flag
- The information message for immutability has now the retention time
- The errno checked in open_device was ACCESS instead of PERM
Alain Spineux [Thu, 18 Jan 2024 13:24:12 +0000 (14:24 +0100)]
Fix #10631 (1) remove unauthorized Jmsg() in BSOCK::recv()
- Jmsg() cannot be used in some critical part, recv() is on of them
A Qmsg() and Pmsg() follow the removed Jmsg(), no information are lost
- This is probably not the root cause of the #10631 problem
- Replace the invalid Unicode "Registered Trade Mark" char
norbert.bizet [Fri, 15 Dec 2023 10:02:58 +0000 (05:02 -0500)]
cloud storage: Fix #10291 Assume that driver ls can return an error when scanning an unexistant cloud volume and loosen the conditions that handle this case
Alain Spineux [Tue, 28 Nov 2023 15:57:19 +0000 (16:57 +0100)]
Fix and improve BSR cycle detection and resolution
- the offset of the first split was not initialized and sometime was
a huge value that was forcing the fist split to the ALL BSR
ather split where ignored as soon as the EOF of the BSR was reached
It was possible that the BSR was handle in one BIG buggy part
instead of being handled in smaller healty parts!
- I have fully reworked the code:
- two regress script test the two possible reason for the split
- Arnaud's backup can be successfully restored with the new code
- The debugging message describe very well what is appening
use level 20 or 100 on the dir for medium or full debugging
Alain Spineux [Fri, 17 Nov 2023 13:34:48 +0000 (14:34 +0100)]
Fix openssl 3.x don't tolerate to call EVP_CipherFinal_ex() twice
- tests/encrypt-bug-test fail with openssl 3.0
- the problem is to restore a 64K+1bytes file backed up using encryption
- was working with openssl 1.0 & 1.1
- When using TLS this can block the restore
- get Error: restore.c:1736 Decryption error. buf_len=5 decrypt_len=0 on file xxx/encrypt-bug.jpg
- OPENSSL give ERR=error:1C80006B:Provider routines::wrong final block length
Alain Spineux [Thu, 16 Nov 2023 11:11:10 +0000 (12:11 +0100)]
Fix #10453 volume with a wrong label
- when labeling if an error occurs, the fd stays open, and other attempt
to label another volume will reuse the same fd (instead of opening
a new one) making the label and the filename mismatched.
- this is appening when auto labeling is enable and when the
keymanager is failing
- this could appends for other situation, maybe uncomment
the commented line could help
Eric Bollengier [Wed, 31 Jan 2024 14:25:25 +0000 (15:25 +0100)]
Fix org#2440 Improve Makefiles to use relative paths
We use the attached patch in Debian to work around an issue in GCC.
See https://tests.reproducible-builds.org/debian/issues/unstable/gcc_captures_build_path_issue.html
Also this makes the Makefiles more self-consistent, most use a relative path as "basedir".
Eric Bollengier [Wed, 24 Jan 2024 11:04:40 +0000 (12:04 +0100)]
Fix org#2704 about old FD compatibility
Old client (prior to 11.0.0) job messages are silently dropped from
the director logs. The Job status is correct, but the messages are
not displayed in the catalog or the bacula-dir.log.
The workaround is to enable the local log on each impacted FD,
or upgrade them to 13.0.x.
This fix will detect the client version and apply a fix dynamically
when getting a message.
Eric Bollengier [Sat, 27 Jan 2024 16:06:04 +0000 (17:06 +0100)]
Fix org#2705 about issue with accurate checking of new file signature attributes
The code in check_checksum_diff to handle FO_XXHASH64, FO_XXH3_64 and
FO_XXH3_128 can never be reached because the test above it at line 380 doesn't
include those bits.