Skip to content

Commit b947e8d

Browse files
Merge branch 'release/1.9.6'
2 parents 6665a0d + 2a2f1a9 commit b947e8d

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

pom.xml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.cryptomator</groupId>
44
<artifactId>cryptofs</artifactId>
5-
<version>1.9.5</version>
5+
<version>1.9.6</version>
66
<name>Cryptomator Crypto Filesystem</name>
77
<description>This library provides the Java filesystem provider used by Cryptomator.</description>
88
<url>https://github.com/cryptomator/cryptofs</url>
@@ -14,12 +14,12 @@
1414
</scm>
1515

1616
<properties>
17-
<cryptolib.version>1.3.0</cryptolib.version>
17+
<cryptolib.version>1.3.1</cryptolib.version>
1818
<dagger.version>2.27</dagger.version>
19-
<guava.version>28.2-jre</guava.version>
19+
<guava.version>29.0-jre</guava.version>
2020
<slf4j.version>1.7.30</slf4j.version>
2121

22-
<junit.jupiter.version>5.6.1</junit.jupiter.version>
22+
<junit.jupiter.version>5.6.2</junit.jupiter.version>
2323
<mockito.version>3.3.3</mockito.version>
2424
<hamcrest.version>2.2</hamcrest.version>
2525
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -41,13 +41,6 @@
4141
<organization>cryptomator.org</organization>
4242
<organizationUrl>https://cryptomator.org</organizationUrl>
4343
</developer>
44-
<developer>
45-
<name>Markus Kreusch</name>
46-
<email>markus.kreusch@skymatic.de</email>
47-
<timezone>+1</timezone>
48-
<organization>cryptomator.org</organization>
49-
<organizationUrl>https://cryptomator.org</organizationUrl>
50-
</developer>
5144
<developer>
5245
<name>Armin Schrenk</name>
5346
<email>armin.schrenk@skymatic.de</email>

src/main/java/org/cryptomator/cryptofs/migration/Migrators.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ public static Migrators get() {
7878
public boolean needsMigration(Path pathToVault, String masterkeyFilename) throws IOException {
7979
Path masterKeyPath = pathToVault.resolve(masterkeyFilename);
8080
byte[] keyFileContents = Files.readAllBytes(masterKeyPath);
81-
KeyFile keyFile = KeyFile.parse(keyFileContents);
82-
return keyFile.getVersion() < Constants.VAULT_VERSION;
81+
try {
82+
KeyFile keyFile = KeyFile.parse(keyFileContents);
83+
return keyFile.getVersion() < Constants.VAULT_VERSION;
84+
} catch (IllegalArgumentException e) {
85+
throw new IOException("Malformed masterkey file " + masterKeyPath, e);
86+
}
8387
}
8488

8589
/**

src/main/java/org/cryptomator/cryptofs/migration/v7/MigratingVisitor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOEx
5555
Path migratedFile = migration.migrate();
5656
LOG.info("MOVED {} to {}", migration.getOldPath(), migratedFile);
5757
} catch (FileAlreadyExistsException e) {
58-
LOG.error("Failed to migrate " + migration.getOldPath() + " due to FileAlreadyExistsException. Already migrated on a different machine?.", e);
59-
return FileVisitResult.TERMINATE;
58+
LOG.warn("Failed to migrate " + migration.getOldPath() + " due to FileAlreadyExistsException. This can be caused either by sync conflicts or because this file has already been migrated on a different machine.", e);
6059
}
6160
}
6261
migrationsInCurrentDir.clear();

0 commit comments

Comments
 (0)