Skip to content

Commit 15e5b3c

Browse files
authored
Feature: adjust conflict resolution to new behavior (#70)
1 parent b2f2eab commit 15e5b3c

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

source/desktop/sync-conflicts.rst

+32-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
11
Synchronization Conflicts
22
=========================
33

4-
Working on encrypted data from multiple locations works the same as working on unencrypted data from multiple locations. If there is a synchronization conflict, it is handled similarly to how most cloud storage services deal with conflicts.
4+
Working on encrypted data from multiple locations is the same as working on unencrypted data from multiple locations.
5+
If there is a synchronization conflict, it is handled similarly to how most cloud storage services deal with conflicts.
56

6-
When a sync conflict occurs, cloud storage services typically create a conflict file by appending a suffix (e.g., ``(1)``) to indicate that there was a conflict. You then need to determine which file to keep.
7+
When a sync conflict occurs, cloud storage services typically resolve the conflict by leaving the local file as it is and create an additional, conflicting file with the content from the cloud.
8+
The file name is the same as the original one, suffixed with a short string (e.g., ``(Created by Alice)``) to indicate its a different version.
9+
10+
Cryptomator handles encrypted files in the same way.
11+
It detects synchronization conflicts and appends the suffix from your cloud provider to the decrypted filename.
12+
If the filename with the conflict suffix is too long, Cryptomator shortens the overall filename.
13+
If the (decrypted) filename with the conflict suffix already exists, the conflicted file has a simple ``(X)`` suffix, where X is an integer.
14+
15+
16+
+---------------------------------------------+----------------------------------+-----------------------------------------------+----------------------------------------------------------------+
17+
| Situation | Cloud Provider Suffix | Original Decrypted Name | New Decrypted Name |
18+
+=============================================+==================================+===============================================+================================================================+
19+
| Regular | (Created by Alice) | businessPitch.odp | businessPitch (Created by Alice).odp |
20+
+---------------------------------------------+----------------------------------+-----------------------------------------------+----------------------------------------------------------------+
21+
| Preferred name already taken | (Created by Alice) | businessPitch.odp | businessPitch (1).odp |
22+
+---------------------------------------------+----------------------------------+-----------------------------------------------+----------------------------------------------------------------+
23+
| Maximum cleartext of the vault is set to 62 | (Created by Alice on 2024-01-31) | businessPitchForTheGreatIdeaIHadLastNight.odp | businessPitchForTheGreatIdeaI (Created by Alice on 2024-01.odp |
24+
+---------------------------------------------+----------------------------------+-----------------------------------------------+----------------------------------------------------------------+
725

8-
Cryptomator handles encrypted files in the same way. It detects synchronization conflicts and displays the conflicted file with a ``(X)`` suffix, where X is an integer.
926

1027
.. note::
1128

12-
Sync conflicts can happen in cloud storages for several reasons. In such cases, it is up to you to decide what to do with the conflicted files. It is recommended to manually check both files and determine which one to keep. If you conclude that both files are identical, you can delete one copy. The organization of your files is entirely in your hands.
29+
Sync conflicts can happen in cloud storages for several reasons.
30+
In such cases, it is up to you to decide what to do with the conflicted files.
31+
It is recommended to manually check both files and determine which one to keep.
32+
If you conclude that both files are identical, you can delete one copy.
33+
The organization of your files is entirely in your hands.
1334

1435
Handling Sync Conflicts
1536
-----------------------
1637

17-
1. When a sync conflict is detected, Cryptomator will display the conflicted file with a ``(X)`` suffix, where X is an increasing integer.
38+
1. When a sync conflict is detected, Cryptomator will display the conflicted file with a suffix, as shown in the table above.
1839
2. Manually review both the original and conflicted files.
1940
3. Decide which file to keep based on your review.
2041
4. If both files are identical, you can delete one of the copies to resolve the conflict.
@@ -24,8 +45,11 @@ By following these steps, you can effectively manage synchronization conflicts a
2445
Example
2546
-------
2647

27-
Suppose you have a file named ``document.txt`` in your vault. In the encrypted vault, this file might be represented with an encrypted name such as ``5TyvCyF255sRtfrIv...83ucADQ==.c9r``.
48+
Suppose you have a file named ``projectPlan.doc`` in your vault.
49+
In the encrypted vault, this file might be represented with an encrypted name such as ``5TyvCyF255sRtfrIv...83ucADQ==.c9r``.
2850

29-
If a synchronization conflict occurs, it will happen on the encrypted filename. Cryptomator detects unexpected patterns in the encrypted filename and handles the conflict accordingly.
51+
If a synchronization conflict occurs, it will happen on the encrypted filename.
52+
Cryptomator detects unexpected patterns in the encrypted filename and handles the conflict accordingly.
3053

31-
For example, if there is a conflict with ``5TyvCyF255sRtfrIv...83ucADQ== (1).c9r``, Cryptomator will decrypt the decryptable part of the filename and rename the file to include a conflict suffix. The conflicted file might be renamed to something like ``FHTa55bH...sUfVDbEb0gTL9hZ8nho.c9r``, which corresponds to ``document (1).txt``.
54+
For example, if there is a conflict with ``5TyvCyF255sRtfrIv...83ucADQ== (Created by Alice).c9r``, Cryptomator will decrypt the encrypted part of the filename and rename the file to include a conflict suffix.
55+
The conflicted file might be renamed to something like ``FHTa55bH...sUfVDbEb0gTL9hZ8nho.c9r``, which corresponds to ``projectPlan (Created by Alice).doc``.

0 commit comments

Comments
 (0)