You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently possible to use UUID as a path parameter for example and this works fine. However, if you pass a LocalDate object, it does not work.
get("/api/reservations/{date}", LocalDate.now())
The reason seems to be that the LocalDate is serialized to "2024-04-10" and then URL encoded to %222024-04-10%22.
I believe that updating SerializationSupport#isSerializableCandidate() to include LocalDate.class could fix it as it would use the toString() of LocalDate instead of letting a JSON serializer serialize the object.
As a workaround, you can currently manually call the toString() on the LocalDate object:
It is currently possible to use
UUID
as a path parameter for example and this works fine. However, if you pass aLocalDate
object, it does not work.The reason seems to be that the
LocalDate
is serialized to"2024-04-10"
and then URL encoded to%222024-04-10%22
.I believe that updating
SerializationSupport#isSerializableCandidate()
to includeLocalDate.class
could fix it as it would use thetoString()
ofLocalDate
instead of letting a JSON serializer serialize the object.As a workaround, you can currently manually call the
toString()
on theLocalDate
object:The text was updated successfully, but these errors were encountered: