XMLValidate error with valid xml

Description

Starting from version 5.3.7 we receive a XML validation error for valid xml (see attachment). On version 5.3.6 validated correctly.

XMLValidate('[full-path]/transfer.xml', '[full-path]/transfer.xsd');

Environment

None

Attachments

2
  • 02 Jun 2020, 05:45 am
  • 02 Jun 2020, 05:45 am

Activity

Show:

Pothys - MitrahSoft 14 November 2022 at 07:45

I've checked this ticket with both the lucee versions 5.3.9.170-SNAPSHOT and 5.3.10.92-SNAPSHOT. Now XMLValidate() works fine and didn't throw an error

Pothys - MitrahSoft 5 October 2022 at 07:54

I added a testcase to this ticket
Pull Request: https://github.com/lucee/Lucee/pull/1833

Pete Freitag 18 October 2021 at 15:35

Here’s another failure that appears to be related:

xmlValidate("https://www.w3schools.com/xml/note.xml", "https://www.w3schools.com/xml/note.xsd").status

 

The XML:

<?xml version="1.0" encoding="UTF-8"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>

The XSD:

<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs=""> <xs:element name="note"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:string"/> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>

 

Runnable here: https://trycf.com/gist/f027bfc5ecd465c2d72787a53e37f2c2/lucee5

Returns false on Lucee, True on ACF (and was true on older versions of lucee as well).

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

Affects versions

Created 2 June 2020 at 05:46
Updated 14 November 2022 at 07:45
Resolved 14 November 2022 at 07:45