step-examples/12-1b-header/Lh029.stp
Sources
- 11-translator-vendors W047
Sender
CAD Exchanger CHANGES v3.24.8 ("improved parsing of FILE_SCHEMA headers")
Description
Multi-schema FILE_SCHEMA with embedded comments inside the schema-name list (`FILE_SCHEMA(('CONFIG_CONTROL_DESIGN' /* legacy */, 'AUTOMOTIVE_DESIGN'))`) or with vendor-specific extensions confuses naive header parsers.
Reproducer recipe
`FILE_SCHEMA(('CONFIG_CONTROL_DESIGN' /* legacy */, 'AUTOMOTIVE_DESIGN'));`
Expected kernel behavior
Heal and accept: parse FILE_SCHEMA via the same robust string-literal tokenizer as DATA; choose the most-capable supported schema; never fall back to byte-level regex on the raw header.
Notes
Synonyms: "comment inside FILE_SCHEMA list", "vendor extension in schema name list", "whitespace in FILE_SCHEMA element", "FILE_SCHEMA with embedded comment", "schema-name list malformed".
Expected validation
occt=reject/reject gmsh=reject ifc=reject
Byte assertions
matches(rb"FILE_SCHEMA\([^;]*/\*[^;]*\*/")contains(b'/* legacy */') or contains(b'/* ')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Lh029: FILE_SCHEMA with embedded comment inside the schema-name list */ 3/* DEFECT: FILE_SCHEMA(('CONFIG_CONTROL_DESIGN' /* legacy */, 'AUTOMOTIVE_DESIGN')) */ 4/* Naive parsers using byte-level regex on the raw header text choke on inline comments */ 5/* OCC silently accepts (no diagnostic, empty result); catalog requires heal and accept */ 6HEADER; 7FILE_DESCRIPTION(('Lh029: FILE_SCHEMA with embedded comment in schema-name list'),'2;1'); 8FILE_NAME('Lh029.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 9/* DEFECT: embedded /* legacy */ comment inside the schema name list */ 10FILE_SCHEMA(('CONFIG_CONTROL_DESIGN' /* legacy */, 'AUTOMOTIVE_DESIGN')); 11ENDSEC; 12DATA; 13#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 14#2=CARTESIAN_POINT('corner',(1.,1.,0.)); 15#3=DIRECTION('xdir',(1.,0.,0.)); 16#4=DIRECTION('zdir',(0.,0.,1.)); 17#5=GEOMETRIC_CURVE_SET('comment-in-schema-name-shape',(#1,#2)); 18ENDSEC; 19END-ISO-10303-21;