You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Mukul Gandhi (Jira)" <xe...@xml.apache.org> on 2019/10/25 06:40:00 UTC

[jira] [Commented] (XERCESJ-1714) Validator does not find missing match for keyref error

    [ https://issues.apache.org/jira/browse/XERCESJ-1714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16959472#comment-16959472 ] 

Mukul Gandhi commented on XERCESJ-1714:
---------------------------------------

I've checked this issue with Xerces. I've tested with JDK 1.7, using the file attachments available on cited issue url from OpenJDK. Below are my findings,

1) The file invalid.xml when validated by schema.xsd, using Xerces-J codebase on trunk passes validation. This seems to be a bug with Xerces.

2) The file invalid.xml when validated by schema.xsd, using Xerces-J codebase on XSD 1.1 branch (using both XSD 1.0 & 1.1 modes) emits right validation error.

It seems to me that, this bug got introduced into Xerces-J's 2.12.0 XSD 1.0 release.

> Validator does not find missing match for keyref error
> ------------------------------------------------------
>
>                 Key: XERCESJ-1714
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1714
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.12.0
>            Reporter: Armin Häberling
>            Priority: Major
>         Attachments: xerces-validation-bug.zip
>
>
> The XML Schema Validator in the OpenJDK contains a bug in the validation of keys an keyrefs. It fails to find a missing match for a keyref. See [https://bugs.openjdk.java.net/browse/JDK-8220818]
> I checked the example files with the Xerces2 Validator and it shows the same behavior as described in the OpenJDK bug.
> The attached project reproduces the error with Xerces.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org