Support ProblemDetail serialization to XML with Jackson #29927
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Affects: 6.0.4
During the analysis of #29588 it was discovered that the XML version of Problem Details document is invalid (per RFC 7807).
curl -H "Accept: application/problem+xml, application/xml" -i http://localhost:8080/foo
The root node has to be
<problem xmlns="urn:ietf:rfc:7807">
per Appendix A of RFC 7807. Also a<?xml version="1.0" encoding="UTF-8"?>
header is prepended in the RFC example.For the sake of compleness, this is my
applicaton.properties
:The Java code is pretty uninteresting as this example requests a non-existing resource (404) anyway.
The text was updated successfully, but these errors were encountered: