You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OC-ConflictBasePath is missing when there was a conflict upload #6702
The path of the conflicting file is not here. But it may be helpful information later. E.g. when the file on the server gets replaced with a new incarnation but same name.
A header with the path was promised in #4557 (comment) but not found in current code.
changed the title [-]OC-ConflictBasePath is missing when there was a conflict[/-][+]OC-ConflictBasePath is missing when there was a conflict upload[/+]on Aug 9, 2018
When the uploadConflictFiles feature is disabled, the client will silently ignore a file that I create via echo "not a conflict" > "filename (conflicted copy jwtest 2018-08-08 201107).txt"
even if no corresponding filename.txt exists.
@jnweiger I intentionally removed the path metadata as there is no guarantee that the base file location stays unchanged. The fileid and etag will clearly identify the path and even revision of the file as long as it hasn't been deleted and thus seemed much more durable than a path.
On the magic "(conflicted copy" tag: I agree that it's not pretty. With the added metadata the client would be able to stop depending on file name tags. But as long as the metadata isn't reliably available in all servers the client must be able to work without it.
Note also that this is not new: previously the magic tag was "_conflict-"
Activity
[-]OC-ConflictBasePath is missing when there was a conflict[/-][+]OC-ConflictBasePath is missing when there was a conflict upload[/+]jnweiger commentedon Aug 9, 2018
When the uploadConflictFiles feature is disabled, the client will silently ignore a file that I create via
echo "not a conflict" > "filename (conflicted copy jwtest 2018-08-08 201107).txt"even if no corresponding
filename.txtexists.Triggering any logic on the structure of such names is a hack.
The conflict marker is currently hardcoded in
https://github.com/owncloud/client/blob/master/src/common/utility.cpp#L558
Proper meta data stored together with the conflict file on the server should help to obsolete such hacks!
ckamm commentedon Aug 14, 2018
@jnweiger I intentionally removed the path metadata as there is no guarantee that the base file location stays unchanged. The fileid and etag will clearly identify the path and even revision of the file as long as it hasn't been deleted and thus seemed much more durable than a path.
Note that the path header was mentioned in a FYI WIP comment. Further integration documentation hopefully happens via https://github.com/owncloud/platform/issues/159
ckamm commentedon Aug 14, 2018
On the magic "(conflicted copy" tag: I agree that it's not pretty. With the added metadata the client would be able to stop depending on file name tags. But as long as the metadata isn't reliably available in all servers the client must be able to work without it.
Note also that this is not new: previously the magic tag was "_conflict-"
Conflict handling: add the OC-ConflictBasePath header
ogoffart commentedon Aug 14, 2018
@ckamm: I added the BasePath header in #6709
It's true that fileid should be enough, but basePath is still a quite usefull information.
ogoffart commentedon Aug 14, 2018
Longterm, we probably should support translating the "(conflicted copy" so we should indeed not rely on that. But that's out of scope for 2.5 I'd say.
Conflict handling: add the OC-ConflictBasePath header
guruz commentedon Aug 21, 2018
Related: #6736