Skip to content

FIX: persistent 409 Conflict errors#392

Merged
AlexisMora merged 6 commits intomainfrom
fix/pb-5016-object-not-found-copy
Oct 24, 2025
Merged

FIX: persistent 409 Conflict errors#392
AlexisMora merged 6 commits intomainfrom
fix/pb-5016-object-not-found-copy

Conversation

@AlexisMora
Copy link
Contributor

This functionality aims to solve a recurring error for users that try to do a sync and get the Failed to copy: 409 Conflict and Failed to copy: object not found errors.

Failed to copy: 409 Conflict

The Failed to copy: 409 Conflict was due to the fact that if you tried to sync a file in which parent path did not exist, the webdav server would throw rightfully a 409 conflict error.

I say rightfully because in WebDAV's RFC 4918 we can see the following:

"A PUT that would result in the creation of a resource without an appropriately scoped parent collection MUST fail with a 409 (Conflict)."

— RFC 4918, Section 9.7.1

It is true that other webdav implementations already have the functionality of recursively creating the path of a file if parent does not exist.

we have implemented the --createFullPath flag in the webdav config to enable said feature. (By default this feature it wont be enabled)
if after enabling it, you want to disable it again, you must use `--no-createFullPath

Failed to copy: object not found

this bug has been solved adding a 500ms wait after creating a file so that when rclone is doing the PROPFIND operation, it can consistently verify that the file indeed was created, just like we do now with folders.

@AlexisMora AlexisMora self-assigned this Oct 24, 2025
Copy link
Contributor

@larryrider larryrider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the new SonarCloud issue too, it should be easy to fix

@AlexisMora AlexisMora force-pushed the fix/pb-5016-object-not-found-copy branch from ec35445 to 5d676d4 Compare October 24, 2025 10:06
@sonarqubecloud
Copy link

@AlexisMora AlexisMora merged commit 0f841d5 into main Oct 24, 2025
9 checks passed
@AlexisMora AlexisMora deleted the fix/pb-5016-object-not-found-copy branch October 24, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments