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 "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2009/01/13 05:36:59 UTC
[jira] Assigned: (XERCESJ-1357) pattern causes the parser to hang
[ https://issues.apache.org/jira/browse/XERCESJ-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich reassigned XERCESJ-1357:
---------------------------------------------
Assignee: Khaled Noaman
> pattern causes the parser to hang
> ---------------------------------
>
> Key: XERCESJ-1357
> URL: https://issues.apache.org/jira/browse/XERCESJ-1357
> Project: Xerces2-J
> Issue Type: Bug
> Components: XML Schema 1.0 Datatypes
> Affects Versions: 2.9.1
> Environment: Windows XP
> Reporter: Navaneet Kumar
> Assignee: Khaled Noaman
> Priority: Critical
>
> I have a pattern in my Schema:
> <xsd:simpleType name="ElsterString">
> <xsd:annotation>
> <xsd:documentation> Alphanumeric and ".", "-", "_".
> </xsd:documentation>
> </xsd:annotation>
> <xsd:restriction base="xsd:string">
> <xsd:pattern value="(([A-Za-z0-9]|\-|\.|_)+(( )*([A-Za-z0-9]|\-|\.|_)+)*)?"/>
> </xsd:restriction>
> </xsd:simpleType>
> Th pattern is trying to force this rule:
> no characters other than letters and numbers and -, . and _. And no white spaces at the ends. White space is allowed in the middle.
> When I try and parse it against a document, the parser hangs some times. Longer strings appear to cause the hang more frequently.
> I was validating this string (it has a space in the end which is not allowed by the pattern)
> Name="aPipeTest_LANPerformance sksksk sksksk sksksk "
> This string caused the parser to hang. I can use longer strings and get the parser to hang at will.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org