-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add vault: Emojis in path to masterkey file lead to error #1153
Comments
What are the error causing characters? I cannot reproduce this on Debian 10 VM with Cryptomator 1.5.3 using the |
Hmm, you are right, it seems to work with some characters (and with others not). An example of a folder / vault name that does not work is "💩" (Unicode U+1F4A9). |
Ah, ok. I didn't go that far in the unicode table. Seems like the development of android and desktop diverged a little here: In the desktop applications it is not possible to create a vault with non-letter/-number characters. Currently emojis (and sortof) cannot be displayed properly and are recognized as white spaces when you entering them in the vault name text box during creation on linux machines (well at least ubunut or debian). Therefore and for the time being, i would say these should not be allowed as vault names. @overheadhunter, @SailReal What do you think? Depending on the choice this issue should be transferred to cryptomator/cryptomator-android. |
I don't think this is necessarily about vault names, as multi-byte characters can also occur in the path leading to the vault. So even if forbidding such characters during vault creation, the issue would remain. |
Today i experimented a little bit with this issue again. My test environment was a ubuntu-18.04.4 VM. I tried the fuse-nio-adapter where such a character was either in the mount path or the root path, and additionally tried it with cryptofs as the backened file system. Both worked without a problem. Additionally i checked with the javafx-helloworld example, if and to what grade the used input fields support unicode characters. Even thou they are wrongly displayed, internally they are stored correctly. Collecting it all together, it seems to work except that the desktop app of Cryptomator does not accept them. (at least for Ubuntu 18.04.4) |
Due to upcoming 1.59 release i tested this again with Debian 10.04. I can reproduce the issue with certain unicode characters, but not with all. For example, if the path contains a folder named 💩, it fails. With the unicode codepoint 😅 it works. The reason for this is, that the created Java File object contains the wrong path due to an encoding error: |
Addiotional observation: The more "troublecausing" code points are used, the shorter the actual, correct path in the file objet gets. (emojis result in 4 instead of 1 character, hence from the last path element |
Upstream bug in the JDK: https://bugs.openjdk.java.net/browse/JDK-8210199 |
Upstream bug is fixed, problem will be fixed with updating to JDK 17 |
Description
I cannot open vaults where the name contains some unicode symbol. This does not happen with the Android App, but with the Desktop App - at least under Linux (more specifically Debian 10). This here is the crash when opening an already existing vault:
System Setup
Steps to Reproduce
Expected Behavior
Cryptomator should open the vault.
Actual Behavior
Cryptomator does not open the vault.
Reproducibility
Always
Additional Information
The text was updated successfully, but these errors were encountered: