cryptomator / cryptofs

Java Filesystem Provider with integrated encryption
GNU Affero General Public License v3.0
93 stars 35 forks source link

GetCiphertextPath: Cleartext root throws java.lang.IllegalArgumentException: #155

Closed infeo closed 1 year ago

infeo commented 1 year ago

Calling CryptoFileSystem::getCiphertextPath with the cleartext fs root throws the following exception:

Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: Invalid file path (must have a parent): /
    at org.cryptomator.cryptofs@2.6.0/org.cryptomator.cryptofs.CryptoPathMapper.getCiphertextFilePath(CryptoPathMapper.java:122)
    at org.cryptomator.cryptofs@2.6.0/org.cryptomator.cryptofs.CryptoFileSystemImpl.getCiphertextPath(CryptoFileSystemImpl.java:143)
    ...