XmlSearch returning empty arrays after 5.3.1.95 update

Description

After the update to 5.3.1.95, XmlSearch is returning empty arrays even though the elements exist. The same code worked before the update. My version of Lucee before updating was 5.2.9.31.

Example:

<cfset xmlString = "<test:Response xmlns:test='https://test.com'> <test:Success> <test:user>testUser</test:user> </test:Success> </test:Response>"> <cfdump var="#xmlString#" label="XmlString"> <cfset xmlParse = xmlParse(xmlString)> <cfdump var="#xmlParse#" label="XMLParse"> <cfset searched = xmlSearch(XMLParse, "test:Response/test:Success/test:user")> <cfdump var="#searched#" label="searched">

I've also attached a screenshot of the output of the code above.

Environment

Windows Server 2016 w/ IIS 10

Attachments

1

Activity

Michael Offner 
25 March 2019 at 19:37

issue only happens if the tags have a prefix.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

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

Sprint

Created 25 March 2019 at 19:07
Updated 22 January 2024 at 23:47
Resolved 25 March 2019 at 22:29