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

Michael Glavassevich commented on XERCESJ-1493:
-----------------------------------------------

e-mail reply from Radu:

> The used Xerces version is 2.9.1.
> A sample XML Schema is:

  <?xml version="1.0" encoding="UTF-8"?>
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
  <xs:element name="personnel">
  <xs:complexType>
  <xs:sequence>
  </xs:sequence>
  </xs:complexType>
  <xs:unique name="unique1">
  <xs:field xpath="&amp;#0;"/>
  </xs:unique>
  </xs:element>
  </xs:schema>

> For example in our XML editor it blocks when calling this method on the 
> sample XML schema:
> 
> org.apache.xerces.parsers.XMLGrammarPreparser
> 
>      public Grammar preparseGrammar(String type, XMLInputSource
>                  is) throws XNIException, IOException

> Endless loop in xs:field xpath computation
> ------------------------------------------
>
>                 Key: XERCESJ-1493
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1493
>             Project: Xerces2-J
>          Issue Type: Bug
>            Reporter: Radu Coravu
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> If you have something like this in your XML Schema:
> <xs:field xpath="&amp;#0;"/>
> and you try to validate it using Xerces the method:
> org.apache.xerces.impl.xpath.XPath.Scanner.scanExpr() 
> will never end looping.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
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