Skip to content

Commit f689235

Browse files
committed
Fix UnsupportedOperationException for fileNameCryptor() without revision.
1 parent 80d67c4 commit f689235

File tree

1 file changed

+1
-1
lines changed
  • cryptomator/src/main/java/ch/cyberduck/core/cryptomator

1 file changed

+1
-1
lines changed

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/UVFVault.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public UVFVault load(final Session<?> session, final PasswordCallback prompt) th
8282
final CryptorProvider provider = CryptorProvider.forScheme(CryptorProvider.Scheme.UVF_DRAFT);
8383
log.debug("Initialized crypto provider {}", provider);
8484
this.cryptor = provider.provide(masterKey, FastSecureRandomProvider.get().provide());
85-
this.fileNameCryptor = new CryptorCache(cryptor.fileNameCryptor());
85+
this.fileNameCryptor = new CryptorCache(cryptor.fileNameCryptor(masterKey.firstRevision())); // TODO revision eventually depends on location - safe?
8686
this.filenameProvider = new CryptoFilenameV7Provider(Integer.MAX_VALUE); // TODO there is no shortening in UVF defined yet
8787
this.directoryProvider = new CryptoDirectoryV7Provider(vault, filenameProvider, fileNameCryptor);
8888
this.nonceSize = 12;

0 commit comments

Comments
 (0)