How CmisSync handles conflicts - aegif/CmisSync GitHub Wiki
Scenario:
- Both UserA and UserB synchronize the file
logo.png
. - Both UserA and UserB go offline, and edit
logo.png
while offline. - UserA goes back online. CmisSync uploads UserA's version of
logo.png
to the server. - UserB goes back online. CmisSync tries to uploads UserB's version of
logo.png
to the server, but realizes that the file has been updated by UserA already. - On UserB's computer, CmisSync renames UserB's
logo.png
tologo.png_UserB-version
and downloads UserA'slogo.png
. - UserB now has the two versions, and must perform one of the following actions:
a: Keep UserA's version: Delete
logo.png_UserB-version
and keep UserA'slogo.png
b: Keep UserB's version: Delete UserA'slogo.png
and remove the suffix fromlogo.png_UserB-version
c: Merge content from both intologo.png
, then deletelogo.png_UserB-version
CmisSync handles file creation conflicts in a similar way.
It is a good idea to solve conflicts as soon as possible. If another conflict happens before the merge is complete, it is handled the same way, with a suffix like _UserB-version (1)
.
- In most companies, conflicts do not happen often. The probability of conflicts can be decreased considerably by setting up a small sync interval. Aegif can provide you with a customized CmisSync installer with out-of-the-box settings adapted to your company.