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

Stephan Trebels commented on XERCESJ-1687:
------------------------------------------

Oh come on,  THe bug is much more likely to happen when the size of the XPath 
expression intermediate result is bigger.  If you look at the example, I 
provided, it specifically had bigger documents, where counts of nodes where 
computed.  

Yes, there are cases where it works, but it cannot be relied on.

BTW: Jesper responded, that Mukul Gandhi maintains the XPath2 branch 
R3_2_maintenance?  I am a bit unsure where the disconnect is, I thought, you 
had no commit privileges.  I recreated a patch for Eclipse XPath2 following the 
Arris legal requirements for EPL 1.0 and submitted it to Jesper via the Eclipse 
bug (Arris did have an agreement for Apache submissions, but not for Eclipse 
submissions).

> XSD 1.1 validation with xs:assert is not thread safe
> ----------------------------------------------------
>
>                 Key: XERCESJ-1687
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1687
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>         Environment: java 8 / java 9
>            Reporter: Stephan Trebels
>            Priority: Critical
>         Attachments: parallel-test.zip
>
>
> The XSD 1.1 validation code uses eclipse webtools xpath to validate 
> assertions. The PsychoPath XPath 2.0 engine has a bug in 
> ResultSequenceFactory, which invalidates correct execution in all parallel 
> invocation of XSD 1.1 validation. 
> This issue affects completely unrelated schemas and input XML, as long as 
> both use assertions. The effect is a lot of spurious assert violations.  The 
> issue is visible even if only two threads are used in parallel.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=527812



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to