Commit f1a6079
committed
fix(libsync): clear stale lock token on 412 and 423 upload errors.
When a file path changes (due to a parent folder rename), any WebDAV
lock token stored in the journal becomes invalid because tokens are
bound to the original URL. A subsequent upload sends an If: header with
the stale token, and the server replies 412 (Precondition Failed) or
423 (Locked).
Clear the token from the journal on either status code so the next
sync retries without it. Schedule rediscovery on 412 since the server
state is uncertain.
Assisted-by: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Camila Ayres <[email protected]>1 parent 898748b commit f1a6079
1 file changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
693 | | - | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
694 | 707 | | |
695 | | - | |
696 | | - | |
697 | | - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
698 | 711 | | |
699 | 712 | | |
700 | 713 | | |
| |||
0 commit comments