Deduplicating archiver with compression and authenticated encryption.
1046 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/borg/fslocking.py | 427 | def _wait_for_readers_finishing(self, remove, sleep): |
| LOW | src/borg/conftest.py | 137 | def maybe_clear_flags_and_retry(func, path, _exc_info): |
| LOW | src/borg/patterns.py | 127 | def get_unmatched_include_patterns(self): |
| LOW | src/borg/manifest.py | 45 | def get_first_and_last_archive_ts(archives_list): |
| LOW | src/borg/manifest.py | 497 | def check_repository_compatibility(self, operations): |
| LOW | src/borg/manifest.py | 511 | def get_all_mandatory_features(self): |
| LOW | src/borg/security.py | 138 | def assert_no_manifest_replay(self, manifest, key): |
| LOW | src/borg/cache.py | 57 | def discover_files_cache_names(path, files_cache_name="files"): |
| LOW | src/borg/cache.py | 347 | def discover_files_cache_names(self, path): |
| LOW | src/borg/cache.py | 544 | def write_chunkindex_to_repo_cache( |
| LOW | src/borg/cache.py | 599 | def read_chunkindex_from_repo_cache(repository, hash): |
| LOW | src/borg/cache.py | 616 | def build_chunkindex_from_repo(repository, *, disable_caches=False, cache_immediately=False): |
| LOW | src/borg/cache.py | 738 | def _maybe_write_chunks_cache(self, now, force=False, clear=False): |
| LOW | src/borg/cache.py | 850 | def check_cache_compatibility(self): |
| LOW | src/borg/archive.py | 1931 | def rebuild_archives_directory(self): |
| LOW | src/borg/crypto/key.py | 609 | def get_existing_or_new_target(self, args): |
| LOW | src/borg/crypto/key.py | 639 | def _find_key_file_from_environment(self): |
| LOW | src/borg/crypto/key.py | 644 | def _get_new_target_in_keys_dir(self, args): |
| LOW | src/borg/testsuite/compress_test.py | 154 | def test_additive_obfuscation(specs, c_type, obfuscation_padding: int): |
| LOW | src/borg/testsuite/compress_test.py | 192 | def test_default_compression_level(c_type, c_name): |
| LOW | src/borg/testsuite/compress_test.py | 204 | def test_specified_compression_level(c_type, c_name, c_levels): |
| LOW | src/borg/testsuite/compress_test.py | 212 | def test_invalid_compression_level(invalid_spec): |
| LOW | src/borg/testsuite/compress_test.py | 254 | def test_robj_specific_obfuscation(data_length, expected_padding, robj_type): |
| LOW | src/borg/testsuite/archives_test.py | 80 | def test_finish_returns_empty_dict(): |
| LOW | src/borg/testsuite/archives_test.py | 90 | def test_ids_returns_binary_ids(): |
| LOW | src/borg/testsuite/archives_test.py | 96 | def test_ids_store_object_not_found_gives_empty(): |
| LOW | src/borg/testsuite/archives_test.py | 102 | def test_ids_passes_deleted_flag(): |
| LOW | src/borg/testsuite/archives_test.py | 159 | def test_exists_name_and_id_true(): |
| LOW | src/borg/testsuite/archives_test.py | 165 | def test_exists_name_and_id_false_wrong_name(): |
| LOW | src/borg/testsuite/archives_test.py | 171 | def test_exists_name_and_id_false_wrong_id(): |
| LOW | src/borg/testsuite/archives_test.py | 177 | def test_exists_name_and_ts_true(): |
| LOW | src/borg/testsuite/archives_test.py | 183 | def test_exists_name_and_ts_false_wrong_ts(): |
| LOW | src/borg/testsuite/archives_test.py | 189 | def test_exists_name_and_ts_false_wrong_name(): |
| LOW | src/borg/testsuite/archives_test.py | 195 | def test_get_archive_meta_object_not_found(): |
| LOW | src/borg/testsuite/archives_test.py | 258 | def test_get_archive_meta_bad_version(): |
| LOW | src/borg/testsuite/archives_test.py | 267 | def test_get_missing_returns_none(): |
| LOW | src/borg/testsuite/archives_test.py | 273 | def test_get_returns_archive_archiveinfo(): |
| LOW | src/borg/testsuite/archives_test.py | 333 | def test_create_calls_store_store(): |
| LOW | src/borg/testsuite/archives_test.py | 339 | def test_create_with_datetime_ts(): |
| LOW | src/borg/testsuite/archives_test.py | 346 | def test_create_overwrite_kwarg_ignored(): |
| LOW | src/borg/testsuite/archives_test.py | 523 | def test_get_one_no_match_raises(): |
| LOW | src/borg/testsuite/archives_test.py | 529 | def test_get_one_multiple_matches_raises(): |
| LOW | src/borg/testsuite/archives_test.py | 537 | def test_get_one_deleted_passes_flag(): |
| LOW | src/borg/testsuite/archives_test.py | 545 | def test_list_considering_raises_if_name_set(): |
| LOW | src/borg/testsuite/archives_test.py | 553 | def test_list_considering_delegates(): |
| LOW | src/borg/testsuite/archives_test.py | 54 | def _stub_matching_info_tuples(infos): |
| LOW | src/borg/testsuite/archives_test.py | 66 | def test_archives_satisfies_archives_interface(): |
| LOW | src/borg/testsuite/archives_test.py | 210 | def test_get_archive_meta_success(): |
| LOW | src/borg/testsuite/archives_test.py | 238 | def test_get_archive_meta_success_with_tags(): |
| LOW | src/borg/testsuite/archives_test.py | 292 | def test_get_by_id_missing_returns_none(): |
| LOW | src/borg/testsuite/archives_test.py | 315 | def test_get_by_id_exists_false_returns_none(): |
| LOW | src/borg/testsuite/archives_test.py | 378 | def test_list_sort_by_str_raises(): |
| LOW | src/borg/testsuite/archives_test.py | 384 | def test_list_sort_generator_not_materialised_regression(): |
| LOW | src/borg/testsuite/archives_test.py | 439 | def test_list_deleted_passes_flag(): |
| LOW | src/borg/testsuite/archives_test.py | 453 | def test_list_match_name_prefix(): |
| LOW | src/borg/testsuite/archives_test.py | 488 | def test_list_match_aid_ambiguous(): |
| LOW | src/borg/testsuite/archives_test.py | 500 | def test_list_match_multiple_patterns(): |
| LOW | src/borg/testsuite/archives_test.py | 509 | def test_list_match_end_custom(): |
| LOW | src/borg/testsuite/archives_test.py | 573 | def test_list_considering_with_match_archives(): |
| LOW | src/borg/testsuite/archives_test.py | 593 | def test_list_considering_multi_key_sort(): |
| 325 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/errorlist.py | 7 | |
| LOW | scripts/errorlist.py | 8 | |
| LOW | src/borg/repoobj.py | 4 | |
| LOW | src/borg/repoobj.py | 138 | |
| LOW | src/borg/manifest.py | 15 | |
| LOW | src/borg/remote.py | 25 | |
| LOW | src/borg/cache.py | 167 | |
| LOW | src/borg/cache.py | 167 | |
| LOW | src/borg/cache.py | 167 | |
| LOW | src/borg/cache.py | 167 | |
| LOW | src/borg/cache.py | 167 | |
| LOW | src/borg/fuse_impl.py | 8 | |
| LOW | src/borg/archive.py | 28 | |
| LOW | src/borg/repository.py | 11 | |
| LOW | src/borg/crypto/key.py | 16 | |
| LOW | src/borg/crypto/keymanager.py | 162 | |
| LOW | src/borg/chunkers/__init__.py | 5 | |
| LOW | src/borg/testsuite/__init__.py | 23 | |
| LOW | src/borg/testsuite/__init__.py | 23 | |
| LOW | src/borg/testsuite/__init__.py | 23 | |
| LOW | src/borg/testsuite/__init__.py | 23 | |
| LOW | src/borg/testsuite/__init__.py | 23 | |
| LOW | src/borg/testsuite/chunkers/buzhash64_self_test.py | 8 | |
| LOW | src/borg/testsuite/chunkers/buzhash64_test.py | 11 | |
| LOW | src/borg/testsuite/chunkers/fixed_self_test.py | 7 | |
| LOW | src/borg/testsuite/chunkers/buzhash_self_test.py | 8 | |
| LOW | src/borg/testsuite/chunkers/__init__.py | 4 | |
| LOW | src/borg/testsuite/chunkers/interaction_test.py | 6 | |
| LOW | src/borg/testsuite/chunkers/reader_test.py | 9 | |
| LOW | src/borg/testsuite/chunkers/fixed_test.py | 10 | |
| LOW | src/borg/testsuite/chunkers/buzhash_test.py | 10 | |
| LOW | src/borg/testsuite/chunkers/failing_test.py | 6 | |
| LOW | src/borg/testsuite/archiver/repo_list_cmd_test.py | 4 | |
| LOW | src/borg/testsuite/archiver/tar_cmds_test.py | 8 | |
| LOW | src/borg/testsuite/archiver/prune_cmd_test.py | 7 | |
| LOW | src/borg/testsuite/archiver/extract_cmd_test.py | 13 | |
| LOW | src/borg/testsuite/archiver/help_cmd_test.py | 3 | |
| LOW | src/borg/testsuite/archiver/return_codes_test.py | 3 | |
| LOW | src/borg/testsuite/archiver/list_cmd_test.py | 5 | |
| LOW | src/borg/testsuite/archiver/recreate_cmd_test.py | 8 | |
| LOW | src/borg/testsuite/archiver/delete_cmd_test.py | 1 | |
| LOW | src/borg/testsuite/archiver/debug_cmds_test.py | 5 | |
| LOW | src/borg/testsuite/archiver/compact_cmd_test.py | 5 | |
| LOW | src/borg/testsuite/archiver/repo_space_cmd_test.py | 1 | |
| LOW | src/borg/testsuite/archiver/create_cmd_test.py | 13 | |
| LOW | src/borg/testsuite/archiver/corruption_test.py | 7 | |
| LOW | src/borg/testsuite/archiver/__init__.py | 20 | |
| LOW | src/borg/testsuite/archiver/__init__.py | 30 | |
| LOW | src/borg/testsuite/archiver/repo_delete_cmd_test.py | 5 | |
| LOW | src/borg/testsuite/archiver/repo_create_cmd_test.py | 7 | |
| LOW | src/borg/testsuite/archiver/undelete_cmd_test.py | 1 | |
| LOW | src/borg/testsuite/archiver/analyze_cmd_test.py | 3 | |
| LOW | src/borg/testsuite/archiver/rename_cmd_test.py | 1 | |
| LOW | src/borg/testsuite/archiver/patterns_test.py | 2 | |
| LOW | src/borg/testsuite/archiver/transfer_cmd_test.py | 13 | |
| LOW | src/borg/testsuite/archiver/mount_cmds_test.py | 15 | |
| LOW | src/borg/testsuite/archiver/repo_info_cmd_test.py | 3 | |
| LOW | src/borg/testsuite/archiver/diff_cmd_test.py | 8 | |
| LOW | src/borg/testsuite/archiver/tag_cmd_test.py | 1 | |
| LOW | src/borg/testsuite/archiver/checks_test.py | 8 | |
| 296 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/legacy/remote.py | 0 | actual remoting is done via self.call in the @api decorator |
| HIGH | src/borg/testsuite/helpers/fs_test.py | 0 | test that it works the same for legacy and for non-legacy implementation |
| HIGH | src/borg/testsuite/helpers/fs_test.py | 0 | test that it works the same for legacy and for non-legacy implementation |
| HIGH | src/borg/testsuite/helpers/fs_test.py | 0 | test that it works the same for legacy and for non-legacy implementation |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/make.py | 46 | |
| LOW | scripts/make.py | 113 | |
| LOW | scripts/make.py | 164 | |
| LOW | src/borg/fslocking.py | 138 | |
| LOW | src/borg/fslocking.py | 207 | |
| LOW | src/borg/fslocking.py | 291 | |
| LOW | src/borg/version.py | 36 | |
| LOW | src/borg/manifest.py | 201 | |
| LOW | src/borg/remote.py | 203 | |
| LOW | src/borg/remote.py | 402 | |
| LOW | src/borg/remote.py | 685 | |
| LOW | src/borg/remote.py | 744 | |
| LOW | src/borg/remote.py | 1212 | |
| LOW | src/borg/remote.py | 204 | |
| LOW | src/borg/remote.py | 769 | |
| LOW | src/borg/hlfuse.py | 188 | |
| LOW | src/borg/hlfuse.py | 257 | |
| LOW | src/borg/hlfuse.py | 463 | |
| LOW | src/borg/hlfuse.py | 619 | |
| LOW | src/borg/hlfuse.py | 466 | |
| LOW | src/borg/cache.py | 616 | |
| LOW | src/borg/cache.py | 284 | |
| LOW | src/borg/cache.py | 350 | |
| LOW | src/borg/cache.py | 393 | |
| LOW | src/borg/xattr.py | 60 | |
| LOW | src/borg/xattr.py | 99 | |
| LOW | src/borg/archive.py | 150 | |
| LOW | src/borg/archive.py | 277 | |
| LOW | src/borg/archive.py | 299 | |
| LOW | src/borg/archive.py | 742 | |
| LOW | src/borg/archive.py | 764 | |
| LOW | src/borg/archive.py | 948 | |
| LOW | src/borg/archive.py | 1151 | |
| LOW | src/borg/archive.py | 1325 | |
| LOW | src/borg/archive.py | 1421 | |
| LOW | src/borg/archive.py | 1568 | |
| LOW | src/borg/archive.py | 1719 | |
| LOW | src/borg/archive.py | 1856 | |
| LOW | src/borg/archive.py | 1931 | |
| LOW | src/borg/archive.py | 2001 | |
| LOW | src/borg/archive.py | 2341 | |
| LOW | src/borg/archive.py | 2044 | |
| LOW | src/borg/storelocking.py | 165 | |
| LOW | src/borg/repository.py | 95 | |
| LOW | src/borg/repository.py | 291 | |
| LOW | src/borg/repository.py | 419 | |
| LOW | src/borg/fuse.py | 516 | |
| LOW | src/borg/fuse.py | 703 | |
| LOW | src/borg/fuse.py | 519 | |
| LOW | src/borg/crypto/key.py | 388 | |
| LOW | src/borg/crypto/keymanager.py | 159 | |
| LOW | src/borg/chunkers/failing.py | 29 | |
| LOW | src/borg/testsuite/chunkers/buzhash64_test.py | 24 | |
| LOW | src/borg/testsuite/chunkers/interaction_test.py | 21 | |
| LOW | src/borg/testsuite/chunkers/fixed_test.py | 13 | |
| LOW | src/borg/testsuite/chunkers/buzhash_test.py | 18 | |
| LOW | src/borg/testsuite/platform/platform_test.py | 31 | |
| LOW | src/borg/testsuite/archiver/extract_cmd_test.py | 185 | |
| LOW | src/borg/testsuite/archiver/extract_cmd_test.py | 188 | |
| LOW | src/borg/testsuite/archiver/create_cmd_test.py | 1052 | |
| 65 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | docs/conf.py | 4 | # This file is execfile()d with the current directory set to its containing directory. |
| MEDIUM | .github/workflows/ci.yml | 510 | # Create a FFS image with extended attributes enabled and use it for TMPDIR. |
| MEDIUM | src/borg/hlfuse.py | 164 | # Create a directory item for the archive |
| MEDIUM | src/borg/testsuite/cache_test.py | 64 | # Create a cache entry so list_chunkindex_hashes finds it. |
| MEDIUM | src/borg/testsuite/repoobj_test.py | 114 | # Create a repository object containing user data (file content data). |
| MEDIUM | src/borg/testsuite/repoobj_test.py | 126 | # Create a repository object containing user data (file content data). |
| MEDIUM | src/borg/testsuite/legacyrepository_test.py | 75 | # Create a raw chunk that has a valid RepoObj layout but does not use encryption or compression. |
| MEDIUM | src/borg/testsuite/crypto/csprng_test.py | 170 | # Create a large list |
| MEDIUM | src/borg/testsuite/crypto/crypto_test.py | 285 | # Create a simple KeyBase subclass with a non-empty crypt_key |
| MEDIUM | src/borg/testsuite/chunkers/reader_test.py | 133 | # Create a mock FileFMAPReader that yields specific chunks |
| MEDIUM | src/borg/testsuite/chunkers/reader_test.py | 145 | # Create a FileReader with a dummy BytesIO to satisfy the assertion |
| MEDIUM | src/borg/testsuite/chunkers/reader_test.py | 271 | # Create a file with all zeros |
| MEDIUM | src/borg/testsuite/chunkers/reader_test.py | 288 | # Create a sparse file |
| MEDIUM | src/borg/testsuite/chunkers/reader_test.py | 336 | # Create a reader with sparse=False |
| MEDIUM | src/borg/testsuite/archiver/tar_cmds_test.py | 220 | # Create a simple directory structure |
| MEDIUM | src/borg/testsuite/archiver/tar_cmds_test.py | 223 | # Create a tar file with paths starting with './' |
| MEDIUM | src/borg/testsuite/archiver/transfer_cmd_test.py | 344 | # Create an archive with a comment |
| MEDIUM | src/borg/testsuite/archiver/diff_cmd_test.py | 48 | # Create the first snapshot |
| MEDIUM | src/borg/testsuite/archiver/diff_cmd_test.py | 78 | # Create the second snapshot |
| MEDIUM | …borg/testsuite/archiver/restricted_permissions_test.py | 17 | # Create a repository with unrestricted permissions. |
| MEDIUM | …borg/testsuite/archiver/restricted_permissions_test.py | 42 | # Create a repository first (need unrestricted permissions for that). |
| MEDIUM | …borg/testsuite/archiver/restricted_permissions_test.py | 94 | # Create a repository first (need unrestricted permissions for that). |
| MEDIUM | …borg/testsuite/archiver/restricted_permissions_test.py | 98 | # Create an archive to test with. |
| MEDIUM | …borg/testsuite/archiver/restricted_permissions_test.py | 140 | # Create a repository first (need unrestricted permissions for that). |
| MEDIUM | …borg/testsuite/archiver/restricted_permissions_test.py | 144 | # Create an initial archive to test with. |
| MEDIUM | src/borg/testsuite/helpers/fs_test.py | 382 | # Create a directory with both a CACHEDIR.TAG and a custom tag file |
| MEDIUM | src/borg/testsuite/helpers/fs_test.py | 389 | # Create a directory without any tag files |
| MEDIUM | src/borg/archiver/transfer_cmd.py | 52 | # Create a chunker with the specified parameters |
| MEDIUM | src/borg/archiver/repo_space_cmd.py | 70 | # Create a new repository: |
| MEDIUM | src/borg/archiver/help_cmd.py | 224 | # Define the recursion root |
| MEDIUM | src/borg/helpers/fs.py | 199 | # This file is a cache directory tag created by Borg. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/borg/testsuite/legacy_upgrade_test.py | 43 | # ── upgrade_item ────────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_upgrade_test.py | 117 | # ── upgrade_archive_metadata ────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_upgrade_test.py | 180 | # ── upgrade_compressed_chunk ────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_upgrade_test.py | 18 | # ── helpers ─────────────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 121 | # ── create ─────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 149 | # ── get / get_by_id ─────────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 189 | # ── NotImplementedError stubs ────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 228 | # ── _get_archive_meta ──────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 401 | # ── get_one ─────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 424 | # ── list_considering ────────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 454 | # ── ArchivesInterface Protocol / Manifest dispatch ──────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 16 | # ── helpers ────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 65 | # ── init / raw-dict operations ─────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 278 | # ── _infos / _info_tuples ──────────────────────────────────────────────────────── |
| MEDIUM | src/borg/testsuite/legacy_archives_test.py | 293 | # ── list ────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/borg/archiver/tar_cmds.py | 191 | # ---------- |
| MEDIUM | src/borg/archiver/tar_cmds.py | 199 | # ----------- |
| MEDIUM | src/borg/cockpit/widgets.py | 316 | # -------------------------- |
| MEDIUM | src/borg/cockpit/widgets.py | 327 | # -------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/borg/archiver/completion_cmd.py | 108 | out=$( borg repo-list "${repo_arg[@]}" --format '{id}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 110 | out=$( borg repo-list --format '{id}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 127 | out=$( borg repo-list "${repo_arg[@]}" --format '{archive}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 129 | out=$( borg repo-list --format '{archive}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 178 | out=$( borg repo-list "${repo_arg[@]}" --format '{tags}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 180 | out=$( borg repo-list --format '{tags}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 380 | 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 383 | 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 407 | out=$( borg repo-list "${repo_arg[@]}" --format '{archive}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 409 | out=$( borg repo-list --format '{archive}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 463 | out=$( borg repo-list "${repo_arg[@]}" --format '{tags}{NL}' 2>/dev/null </dev/null ) |
| HIGH | src/borg/archiver/completion_cmd.py | 465 | out=$( borg repo-list --format '{tags}{NL}' 2>/dev/null </dev/null ) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/borg/remote.py | 650 | except Exception: |
| MEDIUM | src/borg/remote.py | 89 | def __init__(self, data): |
| LOW | src/borg/logger.py | 183 | except Exception as err: # XXX be more precise |
| LOW | src/borg/archive.py | 2114 | except Exception: |
| LOW | src/borg/repository.py | 189 | except Exception: |
| LOW | src/borg/testsuite/logger_test.py | 56 | except Exception: |
| LOW | src/borg/testsuite/archiver/extract_cmd_test.py | 620 | except Exception: |
| LOW | src/borg/testsuite/archiver/remote_repo_test.py | 24 | except Exception: |
| LOW | src/borg/testsuite/archiver/remote_repo_test.py | 29 | except Exception: |
| LOW | src/borg/archiver/__init__.py | 507 | except Exception: |
| LOW | src/borg/archiver/__init__.py | 515 | except Exception: |
| LOW | src/borg/archiver/__init__.py | 589 | except Exception: |
| LOW | src/borg/archiver/__init__.py | 629 | except Exception as e: |
| LOW | src/borg/legacy/remote.py | 345 | except Exception: |
| MEDIUM | src/borg/legacy/remote.py | 83 | def __init__(self, data): |
| LOW | src/borg/legacy/repository.py | 998 | except Exception as exc: |
| LOW | src/borg/cockpit/runner.py | 61 | except Exception as e: |
| LOW | src/borg/helpers/msgpack.py | 105 | except Exception as e: |
| LOW | src/borg/helpers/msgpack.py | 113 | except Exception as e: |
| LOW | src/borg/helpers/msgpack.py | 121 | except Exception as e: |
| LOW | src/borg/helpers/msgpack.py | 163 | except Exception as e: |
| LOW | src/borg/helpers/msgpack.py | 171 | except Exception as e: |
| LOW | src/borg/helpers/msgpack.py | 184 | except Exception as e: |
| LOW | src/borg/helpers/msgpack.py | 195 | except Exception as e: |
| MEDIUM | src/borg/helpers/msgpack.py | 102 | def pack(self, obj): |
| MEDIUM | src/borg/helpers/msgpack.py | 158 | def unpack(self): |
| MEDIUM | src/borg/helpers/msgpack.py | 166 | def __next__(self): |
| LOW | src/borg/helpers/__init__.py | 208 | except Exception: # nosec B110 |
| LOW | src/borg/helpers/fs.py | 86 | except Exception: |
| LOW | src/borg/helpers/fs.py | 92 | except Exception: # nosec B110 |
| LOW | src/borg/helpers/fs.py | 109 | except Exception: # nosec B110 |
| LOW | src/borg/helpers/process.py | 386 | except Exception: |
| LOW | src/borg/helpers/parseformat.py | 359 | except Exception as e: |
| MEDIUM | src/borg/helpers/parseformat.py | 50 | def hex_to_bin(hex, length=None): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pyproject.toml | 121 | # E402 module level import not at top |
| LOW | docs/conf.py | 1 | # Documentation build configuration file, created by |
| LOW | docs/conf.py | 61 | # language = None |
| LOW | docs/conf.py | 81 | # add_function_parentheses = True |
| LOW | docs/conf.py | 121 | html_theme_options = {"project_nav_name": "Borg %s" % version} |
| LOW | docs/conf.py | 161 | # Additional templates that should be rendered to pages, maps page names to |
| LOW | docs/conf.py | 201 | # The name of an image file (relative to this directory) to place at the top of |
| LOW | src/borg/manifest.py | 421 | # The comments here only roughly describe the scope of each feature. In the end, additions need to be |
| LOW | src/borg/paperkey.html | 21 | // https://github.com/kazuhikoarase/qrcode-generator/blob/master/js/qrcode.js |
| LOW | src/borg/remote.py | 101 | |
| LOW | src/borg/remote.py | 701 | else: |
| LOW | src/borg/archive.py | 1501 | if st.st_ctime_ns != st2.st_ctime_ns: |
| LOW | src/borg/fuse.py | 121 | # The meta-array contains chunk IDs and item entries (described in iter_archive_items). |
| LOW | src/borg/testsuite/legacyrepository_test.py | 441 | # nuke index, force replay |
| LOW | src/borg/archiver/tar_cmds.py | 61 | # A quick note about the general design of tar_filter and tarfile; |
| LOW | src/borg/archiver/tar_cmds.py | 181 | "%s: unsupported file type %o for tar export", remove_surrogates(item.path), modebits |
| LOW | src/borg/legacy/remote.py | 101 | # too old servers. This ensures that the knowledge what is compatible is always held by the newer component. |
| LOW | src/borg/legacy/remote.py | 401 | |
| LOW | src/borg/legacy/repository.py | 661 | # (which may grow the index up to twice its current size). |
| LOW | src/borg/legacy/repository.py | 821 | # However, this only happens if the crash also affects the FS to the effect that file deletions |
| LOW | src/borg/legacy/repository.py | 841 | # Now we crash. But only segment 2 gets deleted, while segment 1 is still around. Now key 1 |
| LOW | src/borg/helpers/process.py | 321 | # (non-matching) libraries from there. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/borg/archive.py | 849 | # we just use the existing one and do not remove it. |
| LOW | src/borg/archive.py | 1925 | # collecting any key we encounter in a damaged repo seems unwise, thus we just use |
| MEDIUM | src/borg/archive.py | 1696 | """A restartable/robust version of the streaming msgpack unpacker""" |
| LOW | src/borg/testsuite/repoobj_test.py | 84 | # Here, we just use len_data. For Borg transfer, we also know the size from another metadata source. |
| MEDIUM | src/borg/testsuite/platform/linux_test.py | 85 | # Testing non-ASCII ACL processing to see whether our code is robust. |
| LOW | src/borg/testsuite/archiver/extract_cmd_test.py | 814 | # we should just use the existing directory and not remove/recreate it. |
| MEDIUM | src/borg/testsuite/archiver/benchmark_cmd_test.py | 21 | # Filter for JSON lines only; the test harness merges stdout and stderr, |
| MEDIUM | src/borg/helpers/fs.py | 76 | # 2. Prefer HOME, but be robust against mount helpers that set HOME to root's home for non-root users. |
| LOW | src/borg/helpers/fs.py | 598 | fname, parent_fd = path, None # just use the path |
| LOW | src/borg/helpers/fs.py | 643 | fname, parent_fd = path, None # just use the path |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/borg/fuse.py | 340 | # Check if this is an archive we need to load |
| LOW | src/borg/testsuite/shell_completions_test.py | 14 | # Check if Fish is available |
| LOW | src/borg/archiver/completion_cmd.py | 100 | # Check if completing aid: prefix |
| LOW | src/borg/archiver/completion_cmd.py | 369 | # Check if completing aid: prefix |
| LOW | src/borg/archiver/transfer_cmd.py | 58 | # Check if the chunk is already in the repository |
| LOW | src/borg/archiver/list_cmd.py | 38 | # Check if the item matches the patterns/paths. |
| LOW | src/borg/archiver/__init__.py | 468 | # Open the file early, before running the main program, to avoid |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/borg/constants.py | 177 | # if you still need to, you can use "borg key migrate-to-repokey" with borg 1.0, 1.1 and 1.2. |
| LOW | src/borg/archiver/create_cmd.py | 419 | # we better do a fresh stat on the file, just to make sure to get the current file |
| LOW | src/borg/legacy/upgrade.py | 62 | # make sure we only have desired stuff in the new item. specifically, make sure to get rid of: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/borg/testsuite/repository_test.py | 241 | assert remote_repository.ssh_cmd(Location("ssh://user@example.com/foo")) == ["ssh", "user@example.com"] |
| LOW | src/borg/testsuite/repository_test.py | 246 | "user@example.com", |
| LOW | src/borg/testsuite/legacyrepository_test.py | 966 | assert remote_repository.ssh_cmd(Location("ssh://user@example.com/foo")) == ["ssh", "user@example.com"] |
| LOW | src/borg/testsuite/legacyrepository_test.py | 971 | "user@example.com", |