xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khaled Noaman (JIRA)" <xerces-j-...@xml.apache.org>
Subject [jira] Resolved: (XERCESJ-1357) pattern causes the parser to hang
Date Wed, 19 May 2010 16:25:53 GMT

     [ https://issues.apache.org/jira/browse/XERCESJ-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Khaled Noaman resolved XERCESJ-1357.
------------------------------------

    Fix Version/s: 2.10.0
       Resolution: Fixed

I have checked in a fix for the problem

> 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
>             Fix For: 2.10.0
>
>
> 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


Mime
View raw message