Closed
Description
Ever since we upgraded our server, libxml was upgraded to 2.9
, which introduced a protection on the max text length.
We have one single route for which we want to add LIBXML_PARSEHUGE
to the XmlEncoder
, because an external party delivers us huge text nodes. Our problem is that the decoding happens (and makes the application crash) pre-controller in the FOS\RestBundle\EventListener\BodyListener:114
. See #17956 and #16873 for more background information. What should be done to solve this:
- Make
XmlEncoder
flags configurable, as @dunglas proposes in Allow loading big xml files with XmlEncoder #17956 (comment) - Allow
FrameworkBundle
to configure these flags on a specific route, maybe @nicolas-grekas can elaborate on what he meant in Allow loading big xml files with XmlEncoder #17956 (comment). - That configuration should be applied before the
BodyListener
is executed. It has priority 10 onkernel.request
.