Unresolved
Details
Assignee
Michael Born @ OrtusMichael Born @ OrtusReporter
Michael Born @ OrtusMichael Born @ OrtusPriority
NewLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Details
Details
Assignee
Michael Born @ Ortus
Michael Born @ OrtusReporter
Michael Born @ Ortus
Michael Born @ OrtusPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 26 July 2023 at 03:49
Updated 20 June 2024 at 23:41
Running
XMLParse()
on any doctyped XML succeeds withthis.xmlFeatures.disallowDoctypeDecl=false;
.Running
isXML()
followed byxmlParse()
fails with the below error message:This error occurs whether
this.xmlFeatures.disallowDoctypeDecl
istrue
orfalse
:this.xmlFeatures = { externalGeneralEntities : true, secure : false, disallowDoctypeDecl : false, };
but if you use the full feature name and skip the alias, it works:
this.xmlFeatures = { externalGeneralEntities : true, secure : false, "http://apache.org/xml/features/disallow-doctype-decl" : false };
(Or if you comment out the
isXML()
and restart the Lucee server.)Test case:
var xmlString = '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping> </hibernate-mapping>'; writeDump( isValid( "xml", xmlString ) ); writeDump( xmlParse( xmlString ) );