Переглянути джерело

- fixed error during exception handling, if trying to decrypt vault with unsupported key length

Sebastian Stenzel 10 роки тому
батько
коміт
3ff8d6bc19

+ 1 - 1
main/crypto-api/src/main/java/org/cryptomator/crypto/exceptions/UnsupportedKeyLengthException.java

@@ -7,7 +7,7 @@ public class UnsupportedKeyLengthException extends StorageCryptingException {
 	private final int supportedLength;
 
 	public UnsupportedKeyLengthException(int length, int maxLength) {
-		super(String.format("Key length (%i) exceeds policy maximum (%i).", length, maxLength));
+		super(String.format("Key length (%d) exceeds policy maximum (%d).", length, maxLength));
 		this.requestedLength = length;
 		this.supportedLength = maxLength;
 	}

+ 1 - 0
main/ui/src/main/java/org/cryptomator/ui/UnlockController.java

@@ -137,6 +137,7 @@ public class UnlockController implements Initializable {
 	private void setControlsDisabled(boolean disable) {
 		usernameBox.setDisable(disable);
 		passwordField.setDisable(disable);
+		checkIntegrity.setDisable(disable);
 		unlockButton.setDisable(disable);
 	}