aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/SignatureManager.java2
-rw-r--r--src/main/java/com/juick/service/FileSystemStorageService.java5
2 files changed, 0 insertions, 7 deletions
diff --git a/src/main/java/com/juick/SignatureManager.java b/src/main/java/com/juick/SignatureManager.java
index 13c3fff2..0c6acb4a 100644
--- a/src/main/java/com/juick/SignatureManager.java
+++ b/src/main/java/com/juick/SignatureManager.java
@@ -123,7 +123,6 @@ public class SignatureManager {
public User verifySignature(String method, String path, Map<String, String> headers) {
String signatureString = headers.get("signature");
- logger.info("Signature: {}", signatureString);
Signature signature = Signature.fromString(signatureString);
Optional<Context> context = getContext(
UriComponentsBuilder.fromUriString(signature.getKeyId()).fragment(null).build().toUri());
@@ -134,7 +133,6 @@ public class SignatureManager {
Verifier verifier = new Verifier(key, signature);
try {
boolean result = verifier.verify(method, path, headers);
- logger.info("signature of {} is valid: {}", signature.getKeyId(), result);
if (result) {
User user = new User();
user.setUri(URI.create(actor.getId()));
diff --git a/src/main/java/com/juick/service/FileSystemStorageService.java b/src/main/java/com/juick/service/FileSystemStorageService.java
index 021e5a9f..f7420f84 100644
--- a/src/main/java/com/juick/service/FileSystemStorageService.java
+++ b/src/main/java/com/juick/service/FileSystemStorageService.java
@@ -246,12 +246,7 @@ public class FileSystemStorageService implements StorageService {
}
}
}
- } else {
- logger.warn("File not exists yet: {}", imgFile.getAbsolutePath());
- return attachment;
}
-
- logger.warn("Not a known image file {}", imgFile.getAbsolutePath());
return attachment;
}