Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3.0
-
Fix Version/s: 2.10.0
-
Component/s: XML Schema 1.0 Structures
-
Labels:None
-
Environment:Operating System: All
Platform: All
-
Bugzilla Id:16628
Description
There is a bug with applying a pattern restriction on long strings while trying
to validate an XML file against a schema. I'm including an xml file and xsd
file that demonstrates this problem. One character less in <sequence> and the
problem does not occur.
As it is, I'm getting
java.lang.StackOverflowError
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
at
org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
...