From e386994fe5290eadbe71efdaf20fa0c79f7a51b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Fri, 1 Dec 2017 00:09:15 +0100 Subject: [PATCH] Fix detail key in sub-problem --- acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java | 4 ---- acme4j-client/src/test/resources/json/problem.json | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java b/acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java index c2df9984..1389629b 100644 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java +++ b/acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java @@ -65,10 +65,6 @@ public class Problem implements Serializable { * Returns a human-readable description of the problem. */ public String getDetail() { - String value = problemJson.get("value").asString(); - if (value != null) { - return value; - } return problemJson.get("detail").asString(); } diff --git a/acme4j-client/src/test/resources/json/problem.json b/acme4j-client/src/test/resources/json/problem.json index 4fbd4fe6..981dc492 100644 --- a/acme4j-client/src/test/resources/json/problem.json +++ b/acme4j-client/src/test/resources/json/problem.json @@ -5,7 +5,7 @@ "sub-problems": [ { "type": "urn:ietf:params:acme:error:malformed", - "value": "Invalid underscore in DNS name \"_example.com\"", + "detail": "Invalid underscore in DNS name \"_example.com\"", "identifier": { "type": "dns", "value": "_example.com" @@ -13,7 +13,7 @@ }, { "type": "urn:ietf:params:acme:error:rejectedIdentifier", - "value": "This CA will not issue for \"example.net\"", + "detail": "This CA will not issue for \"example.net\"", "identifier": { "type": "dns", "value": "example.net"