This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4118 - Regex tests using unescaped square brackets
Summary: Regex tests using unescaped square brackets
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: metadated updated 2010-01-26
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-01 10:55 UTC by Michael Kay
Modified: 2010-01-26 13:55 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2007-01-01 10:55:41 UTC
The following tests use unescaped square brackets within a character group, in a context where the nested brackets cannot be interpreted as a subtraction. For example RegexTest_441 has "[a-f-[]]+" (which cannot be a subtraction because a character class cannot be empty). In each case the test schema is invalid, but is marked as valid in the metadata.

   <test group="RegexTest_441" name="RegexTest_441"/>
   <test group="RegexTest_442" name="RegexTest_442"/>
   <test group="RegexTest_443" name="RegexTest_443"/>
   <test group="RegexTest_448" name="RegexTest_448"/>
   <test group="RegexTest_449" name="RegexTest_449"/>
   <test group="RegexTest_450" name="RegexTest_450"/>
   <test group="RegexTest_451" name="RegexTest_451"/>
   <test group="RegexTest_458" name="RegexTest_458"/>
   <test group="RegexTest_464" name="RegexTest_464"/>
   <test group="RegexTest_464" name="RegexTest_464.v"/>
   <test group="RegexTest_465" name="RegexTest_465"/>
   <test group="RegexTest_469" name="RegexTest_469"/>
   <test group="RegexTest_470" name="RegexTest_470"/>
   <test group="RegexTest_471" name="RegexTest_471"/>
   <test group="RegexTest_472" name="RegexTest_472"/>
   <test group="RegexTest_473" name="RegexTest_473"/>
   <test group="RegexTest_477" name="RegexTest_477"/>
   <test group="RegexTest_478" name="RegexTest_478"/>
   <test group="RegexTest_478" name="RegexTest_478.v"/>
   <test group="RegexTest_479" name="RegexTest_479"/>
   <test group="RegexTest_480" name="RegexTest_480"/>
Comment 1 Michael Kay 2007-01-01 11:51:07 UTC
Also affects:

   <test group="RegexTest_586" name="RegexTest_586"/>
   <test group="RegexTest_587" name="RegexTest_587"/>
   <test group="RegexTest_592" name="RegexTest_592"/>
   <test group="RegexTest_593" name="RegexTest_593"/>
   <test group="RegexTest_755" name="RegexTest_755"/>
   <test group="RegexTest_756" name="RegexTest_756"/>
   <test group="RegexTest_761" name="RegexTest_761"/>
   <test group="RegexTest_762" name="RegexTest_762"/>
   <test group="RegexTest_989" name="RegexTest_989"/>
   <test group="RegexTest_990" name="RegexTest_990"/>
   <test group="RegexTest_991" name="RegexTest_991"/>
   <test group="RegexTest_994" name="RegexTest_994"/>
   <test group="RegexTest_1070" name="RegexTest_1070"/>
   <test group="RegexTest_1071" name="RegexTest_1071"/>
   <test group="RegexTest_1076" name="RegexTest_1076"/>
   <test group="RegexTest_1077" name="RegexTest_1077"/>
   <test group="RegexTest_1239" name="RegexTest_1239"/>
   <test group="RegexTest_1240" name="RegexTest_1240"/>
   <test group="RegexTest_1245" name="RegexTest_1245"/>
   <test group="RegexTest_1246" name="RegexTest_1246"/>
   <test group="RegexTest_1473" name="RegexTest_1473"/>
   <test group="RegexTest_1474" name="RegexTest_1474"/>
   <test group="RegexTest_1475" name="RegexTest_1475"/>
   <test group="RegexTest_1478" name="RegexTest_1478"/>
Comment 2 Henry S. Thompson 2010-01-26 13:55:44 UTC
Confirrmed using MSM's regex parser