[Issue] Add support for multiple space-separated CDATA sections in Magento\Framework\Xml\Parser #29613
Labels
Component: Xml
Issue: Format is not valid
Gate 1 Failed. Automatic verification of issue format is failed
Priority: P3
May be fixed according to the position in the backlog.
Progress: done
Reported on 2.3.4
Indicates original Magento version for the Issue report.
Severity: S3
Affects non-critical data or functionality and does not force users to employ a workaround.
stale issue
This issue is automatically created based on existing pull request: #26822: Add support for multiple space-separated CDATA sections in Magento\Framework\Xml\Parser
Description (*)
Our XML files sometimes contain multiple CDATA sections per node. The XML parser class provided by Magento in
/lib/internal/Magento/Framework/Xml/Parser.php
already supports consecutive CDATA sections like<![CDATA[One]]><![CDATA[Two]]><![CDATA[Three]]>
, which is correctly parsed asOneTwoThree
. However this returns wrong results for empty text nodes in-between, like for<![CDATA[One]]> <![CDATA[Two]]> <![CDATA[Three]]>
. This pull request adds the support and a related unit test.Related Pull Requests
The
switch
statement has been added in #681.Fixed Issues (if relevant)
No separate issue created.
Manual testing scenarios (*)
Unit tests added as part of this pull request.
You can use the current 2.3.4 version for testing. The file in question
/lib/internal/Magento/Framework/Xml/Parser.php
is unchanged since August 2017.Questions or comments
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: