step-examples/12-12-cross-product/Xp041.stp
Sources
- github.com/IfcOpenShell/IfcOpenShell issue #1311 "Bug report: fail at parsing IFC4x1 standard files"
- bug-reporter language: "ifcopenshell rejects my IFC4x1 file", "the file is valid but the parser refuses it because of the lowercase x".
Sender
IFC writers (some that emit lowercase 'x') / equivalently any STEP writer using a non-canonical case in FILE_SCHEMA
Description
FILE_SCHEMA carries 'IFC4x1' (lowercase x). ISO 10303-21 doesn't constrain the case of trailing characters in schema names; ISO 10303-11 schema identifiers are conventionally uppercase but real-world IFC writers have shipped both cases. A strict equality check against an uppercase-only allowlist rejects the file before any parsing of the data section.
Reproducer recipe
FILE_SCHEMA(('IFC4x1')); minimal IFC data section with IFCPROJECT, IFCGEOMETRICREPRESENTATIONCONTEXT, IFCAXIS2PLACEMENT3D, IFCCARTESIANPOINT.
Expected kernel behavior
case-insensitive schema-name matching; or at minimum, accept both 'IFC4x1' and 'IFC4X1' as aliases. Strict-mode kernels should reject with a clear "schema name case mismatch" diagnostic naming the expected canonical form.
Notes
Synonyms: "IFC4x1 lowercase x rejected", "schema name case-sensitive parser bug", "IfcOpenShell strict whitelist reject", "FILE_SCHEMA case mismatch", "valid file rejected by uppercase-only check".
Expected validation
occt=empty/empty gmsh=empty ifc=accept(6)
Byte assertions
contains(b"FILE_SCHEMA(('IFC4x1'))")
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Xp041: IFC4x1 lowercase-x schema name rejected by IfcOpenShell strict whitelist */ 3HEADER; 4FILE_DESCRIPTION(('Xp041'),'2;1'); 5FILE_NAME('Xp041.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('IFC4x1')); 7ENDSEC; 8DATA; 9#1=IFCCARTESIANPOINT((0.,0.,0.)); 10#2=IFCCARTESIANPOINT((0.,0.,1.)); 11#3=IFCAXIS2PLACEMENT3D(#1,#2,$); 12#4=IFCDIRECTION((1.,0.,0.)); 13#5=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.0E-5,#3,#4); 14#6=IFCPROJECT('xp041',#5,'Xp041 IFC4x1 lowercase-x schema test',$,$,$,$,(#6),$); 15ENDSEC; 16END-ISO-10303-21;