[ https://issues.apache.org/jira/browse/KNOX-3060?focusedWorklogId=968294&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-968294 ]
ASF GitHub Bot logged work on KNOX-3060: ---------------------------------------- Author: ASF GitHub Bot Created on: 01/May/25 14:17 Start Date: 01/May/25 14:17 Worklog Time Spent: 10m Work Description: moresandeep opened a new pull request, #1036: URL: https://github.com/apache/knox/pull/1036 ## What changes were proposed in this pull request? This PR addresses an issue where JsonUtilsTest.testRenderAsJsonStringWithDateFormat would fail on some machines and not other. The problem is the epoch chosen before `1609459200000L` was on a boundary or day, date and month (2020-12-31-2021-01-01), a bit of a clock skew with millisecond precision might throw the tests off. ## How was this patch tested? This patch was tested locally. Issue Time Tracking ------------------- Worklog Id: (was: 968294) Time Spent: 50m (was: 40m) > Knox Homepage token management does not work when Cookie Management is enabled > ------------------------------------------------------------------------------ > > Key: KNOX-3060 > URL: https://issues.apache.org/jira/browse/KNOX-3060 > Project: Apache Knox > Issue Type: Bug > Components: Server > Reporter: Sandeep More > Assignee: Sandeep More > Priority: Major > Fix For: 2.1.0 > > Time Spent: 50m > Remaining Estimate: 0h > > Following is the error > {code:java} > ERROR knox.gateway (JsonUtils.java:renderAsJsonString(46)) - Failed to > serialize map to Json string > {tokens=[org.apache.knox.gateway.services.security.token.KnoxToken@131fb849]}: > com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 > date/time type `java.time.Instant` not supported by default: add Module > "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling > (through reference chain: > java.util.Collections$SingletonMap["tokens"]->java.util.TreeSet[0]->org.apache.knox.gateway.services.security.token.KnoxToken["metadata"]->org.apache.knox.gateway.services.security.token.TokenMetadata["lastUsedAt"]) > > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)