-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
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
XmlEncoderflags configurable, as @dunglas proposes in Allow loading big xml files with XmlEncoder #17956 (comment) - Allow
FrameworkBundleto 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
BodyListeneris executed. It has priority 10 onkernel.request.