mirror of
https://github.com/restic/restic.git
synced 2026-11-21 13:02:42 +00:00
data: read empty trees from older repaired snapshots
Older repair snapshots versions serialized missing subtrees as nodes:null. The streaming decoder rejects these trees, preventing prune and other commands from traversing snapshots that previous releases could read. Accept null as an empty node list. Add decoder coverage and a regression that prunes, checks and restores a snapshot with a legacy empty subtree.
This commit is contained in:
1 parent
9da3b87b07
commit
d714e22605
4 files changed
+116
-13
No files matched your search
@@ -0,0 +1,8 @@
|
||||
Bugfix: Read empty directories from older repaired snapshots
|
||||
|
||||
Since restic 0.19.0, snapshots containing empty directories written by older
|
||||
versions of `repair snapshots` could fail with `error decoding tree: expected
|
||||
[, got <nil>`. Restic now accepts these empty directory trees again, allowing
|
||||
`prune`, `check` and `restore` to process the affected snapshots.
|
||||
|
||||
https://github.com/restic/restic/issues/22092
|
||||
Reference in new issue
Block a user