Skip to content

Commit

Permalink
KNOX-3060 - Knox Homepage token management does not work when Cookie …
Browse files Browse the repository at this point in the history
…Management is enabled (#932)
  • Loading branch information
moresandeep authored Aug 23, 2024
1 parent 0358054 commit dab2074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gateway-util-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>

<dependency>
<groupId>commons-codec</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.apache.knox.gateway.i18n.GatewayUtilCommonMessages;
import org.apache.knox.gateway.i18n.messages.MessagesFactory;

Expand All @@ -37,7 +38,7 @@ public class JsonUtils {

public static String renderAsJsonString(Map<String, Object> map) {
String json = null;
ObjectMapper mapper = new ObjectMapper();
ObjectMapper mapper = new ObjectMapper().registerModule(new JavaTimeModule());

try {
// write JSON to a file
Expand Down

0 comments on commit dab2074

Please sign in to comment.