Lh052 — Conformant AP203 file rejected at the `DATA;` boundary (independent-parser differential)

§12.1b header/numbering (sub-class: strict-reader leniency gap)

spec-violation syntax

Sources

Description

A fully-conformant Part-21 AP203 file — HOOPS-Exchange-style header with a `/* File generated by ... */` comment inside HEADER, a spaced `FILE_SCHEMA( ( '...' ) )` list, and an ISO-8601 timestamp with an explicit `+01:00` UTC offset — is accepted by OCCT/HOOPS but has been observed to make a strict independent tokenizer abort at the `DATA;` section boundary. This is an independent-parser leniency gap: every individual token is legal Part-21, yet the strict reader rejects the conformant file. The DATA section carries a valid minimal planar face so a tolerant reader loads it without error.

Reproducer recipe

HEADER with a `/* File generated by ... */` comment, `FILE_SCHEMA( ('AP203_CONFIGURATION_CONTROLLED_3D_DESIGN_OF_MECHANICAL_PARTS_AND_ASSEMBLIES_MIM_LF') )` (interior spaces), timestamp `2025-03-05T17:10:01+01:00`, followed by a legal DATA section (planar face).

Expected kernel behavior

accept — the file is conformant Part-21; a reader that rejects it at the `DATA;` boundary has a tokenizer leniency bug, not the file.

Notes

**See also**: Lh050. Independent-parser interop differential: OCCT/HOOPS accept, a strict `nom`-based tokenizer rejects at `DATA;`. Not to be confused with the out-of-range-UTC-offset sub-case; this fixture uses a legal `+01:00` offset. Synonyms: "conformant STEP rejected at DATA", "strict parser aborts at DATA boundary", "spaced FILE_SCHEMA list", "header comment in HEADER section", "HOOPS Exchange AP203 tokenize failure". Provenance tier: bytes-sufficient. Expected validation is provisional (best-guess) pending oracle rebaseline — the live occt/gmsh oracle is not run here (platform divergence); nightly CI reconciles.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Lh050

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Lh052: conformant AP203 rejected at DATA boundary by strict independent parsers */
3HEADER;
4/* File generated by a conformant AP203 exporter (HOOPS-Exchange-style). */
5FILE_DESCRIPTION(('Lh052 conformant AP203 differential'),'2;1');
6FILE_NAME('Lh052.stp','2025-03-05T17:10:01+01:00',(''),(''),
7  'cad-research-suite','','');
8FILE_SCHEMA( ('AP203_CONFIGURATION_CONTROLLED_3D_DESIGN_OF_MECHANICAL_PARTS_AND_ASSEMBLIES_MIM_LF') );
9ENDSEC;
10DATA;
11/* Legal DATA section: a valid minimal planar face. A tolerant reader
12   loads this without error; a strict independent tokenizer has been
13   observed to abort at the DATA; boundary on such conformant files. */
14#1=CARTESIAN_POINT('',(0.,0.,0.));
15#2=CARTESIAN_POINT('',(10.,0.,0.));
16#3=CARTESIAN_POINT('',(10.,10.,0.));
17#4=CARTESIAN_POINT('',(0.,10.,0.));
18#5=DIRECTION('',(1.,0.,0.));
19#6=DIRECTION('',(0.,1.,0.));
20#7=DIRECTION('',(0.,0.,1.));
21#8=VECTOR('',#5,10.);
22#9=VECTOR('',#6,10.);
23#10=LINE('',#1,#8);
24#11=LINE('',#2,#9);
25#12=VECTOR('',#5,10.);
26#13=LINE('',#4,#12);
27#14=VECTOR('',#6,10.);
28#15=LINE('',#1,#14);
29#16=VERTEX_POINT('',#1);
30#17=VERTEX_POINT('',#2);
31#18=VERTEX_POINT('',#3);
32#19=VERTEX_POINT('',#4);
33#20=EDGE_CURVE('',#16,#17,#10,.T.);
34#21=EDGE_CURVE('',#17,#18,#11,.T.);
35#22=EDGE_CURVE('',#19,#18,#13,.T.);
36#23=EDGE_CURVE('',#16,#19,#15,.T.);
37#24=ORIENTED_EDGE('',*,*,#20,.T.);
38#25=ORIENTED_EDGE('',*,*,#21,.T.);
39#26=ORIENTED_EDGE('',*,*,#22,.F.);
40#27=ORIENTED_EDGE('',*,*,#23,.F.);
41#28=EDGE_LOOP('',(#24,#25,#26,#27));
42#29=AXIS2_PLACEMENT_3D('',#1,#7,#5);
43#30=PLANE('',#29);
44#31=FACE_OUTER_BOUND('',#28,.T.);
45#32=ADVANCED_FACE('',(#31),#30,.T.);
46#33=OPEN_SHELL('',(#32));
47#34=SHELL_BASED_SURFACE_MODEL('',(#33));
48ENDSEC;
49END-ISO-10303-21;