coheigea opened a new pull request, #3716: URL: https://github.com/apache/cxf/pull/3716
FIStaxInInterceptor parsed FastInfoset messages with a StAXDocumentParser, which does not support the Woodstox limit properties that CXF sets on XML readers. A FastInfoset message could therefore nest elements far deeper, or contain far more elements, than would be allowed as XML. FIStaxInInterceptor now calls StaxUtils.configureReader, as StaxInInterceptor does. For a reader that does not support the Woodstox limits, configureReader now wraps it in a DepthRestrictingStreamReader that applies the element depth, child element count and total element count limits, taken from the org.apache.cxf.stax.* message properties if set and otherwise from the defaults. Also fix StaxUtils.isSecureReader, which checked for an instance of DocumentDepthProperties rather than DepthRestrictingStreamReader and so never recognised an already-restricted reader. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
