borgbackup/src/borg
Thomas Waldmann 53830ecae9 check: try harder to create the key, fixes #5719
the old code did just 1 attempt to detect the repo decryption key.
if the first chunkid we got from the chunks hashtable iterator was accidentally
the id of the chunk we intentionally corrupted in test_delete_double_force,
setup of the key failed and that made the test crash.

in practice, this could of course also happen if chunks are corrupted, thus
we now do many retries with other chunks before giving up.

error handling was improved: do not return None (instead of a key), it just
leads to weird crashes elsewhere, but fail early with IntegrityError and a
reasonable error msg.

rename method to make_key to avoid confusion with borg.crypto.key.identify_key.
2022-07-29 10:34:58 +02:00
..
archiver Merge branch 'master' into borg2 2022-07-27 13:49:50 +02:00
cache_sync remove csize from ChunkIndexEntry 2022-06-12 17:15:13 +02:00
crypto new crypto does not need to call ._assert_id() 2022-07-20 14:13:25 +02:00
helpers mypy: fixes / annotations 2022-07-15 14:54:48 +02:00
platform mypy: fixes / annotations 2022-07-15 14:54:48 +02:00
testsuite new crypto does not need to call ._assert_id() 2022-07-20 14:13:25 +02:00
__init__.py mypy: fixes / annotations 2022-07-15 14:54:48 +02:00
__main__.py blacken all the code 2022-07-06 16:34:38 +02:00
_chunker.c chunker speedup and regression test 2019-11-28 20:59:02 +00:00
_endian.h Basic MSC Compatibility (#4147) 2018-11-03 18:52:54 +01:00
_hashindex.c remove unused imports 2022-07-05 00:05:07 +02:00
_item.c item: item.to_optr(), Item.from_optr() 2017-07-29 17:26:39 +02:00
archive.py check: try harder to create the key, fixes #5719 2022-07-29 10:34:58 +02:00
cache.py mypy: fixes / annotations 2022-07-15 14:54:48 +02:00
checksums.pyi add mypy checking 2022-07-15 12:49:38 +02:00
checksums.pyx stop using libdeflate 2022-07-04 20:33:59 +02:00
chunker.pyi add mypy checking 2022-07-15 12:49:38 +02:00
chunker.pyx remove coding: from cython files, utf-8 is default encoding 2022-07-05 00:08:51 +02:00
compress.pyi add mypy checking 2022-07-15 12:49:38 +02:00
compress.pyx recreate: consider level for recompression, fixes #6698, fixes #3622 2022-07-05 02:38:09 +02:00
constants.py remove remainders of attic legacy 2022-07-13 16:55:29 +02:00
fuse.py mypy: fixes / annotations 2022-07-15 14:54:48 +02:00
fuse_impl.py blacken all the code 2022-07-06 16:34:38 +02:00
hashindex.pyi add mypy checking 2022-07-15 12:49:38 +02:00
hashindex.pyx remove coding: from cython files, utf-8 is default encoding 2022-07-05 00:08:51 +02:00
item.pyi add mypy checking 2022-07-15 12:49:38 +02:00
item.pyx remove csize support from get_size 2022-06-12 15:48:33 +02:00
locking.py blacken all the code 2022-07-06 16:34:38 +02:00
logger.py mypy: fixes / annotations 2022-07-15 14:54:48 +02:00
lrucache.py blacken all the code 2022-07-06 16:34:38 +02:00
nanorst.py blacken all the code 2022-07-06 16:34:38 +02:00
paperkey.html Fix typos 2021-01-07 17:54:33 +01:00
patterns.py mypy: fixes / annotations 2022-07-15 14:54:48 +02:00
platformflags.py blacken all the code 2022-07-06 16:34:38 +02:00
remote.py ssh:// URLs: remove support for /~otheruser/, see #6855 2022-07-15 16:02:45 +02:00
repository.py remove remainders of attic legacy 2022-07-13 16:55:29 +02:00
selftest.py blacken all the code 2022-07-06 16:34:38 +02:00
shellpattern.py blacken all the code 2022-07-06 16:34:38 +02:00
upgrade.py remove remainders of attic legacy 2022-07-13 16:55:29 +02:00
version.py blacken all the code 2022-07-06 16:34:38 +02:00
xattr.py blacken all the code 2022-07-06 16:34:38 +02:00