Lh041 — REFERENCE section with mixed URI schemes including unsupported schemes

§12.1b header/numbering (sub-class: REFERENCE)

P1 — silent data loss

silent-loss spec-violation syntax

Sources

Description

Edition-3 REFERENCE entries carry URIs to external resources. The spec does not constrain the URI scheme. Receivers implement `file://` and possibly `http(s)://`; uncommon schemes (`urn:`, `ftp:`, custom org-specific) are typically unsupported. A REFERENCE section mixing several schemes — some supported, some not — tests the consistency of the decision.

Reproducer recipe

REFERENCE section with `<file:companion.stp#part_a>`, `<https://example.invalid/companion.stp#part_b>`, `<urn:plm:org-acme:doc:12345#assembly>`, `<plmlink:vault://acme/parts/12345#main>`.

Expected kernel behavior

classify each URI scheme as supported / unsupported and report unsupported entries deterministically; do not abort the whole file load on the first unsupported scheme unless the policy is strict-reject.

Notes

Cross-oracle: pure-Python Part-21 validator rejects (reject(E_UNRESOLVED_REFS)); OCCT silently accepts (load is `empty`). OCC auto-heals a spec-level violation. Synonyms: "REFERENCE section mixed URI schemes", "urn: scheme in STEP REFERENCE unsupported", "STEP REFERENCE includes ftp:", "unknown URI scheme in REFERENCE", "REFERENCE custom-scheme URI".

Expected validation

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

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Lh041: REFERENCE section with mixed URI schemes including unsupported ones */
3/* ISO 10303-21 Ed.3 §8: REFERENCE entries carry URIs; spec does not constrain scheme */
4/* DEFECT: urn: and plmlink: schemes are typically unsupported by receivers */
5/* pure-Python validator rejects (E_UNRESOLVED_REFS); OCC silently accepts empty */
6/* expected: classify each URI scheme; report unsupported entries deterministically */
7HEADER;
8FILE_DESCRIPTION(('Lh041: REFERENCE section with mixed URI schemes'),'2;1');
9FILE_NAME('Lh041.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN'));
11ENDSEC;
12REFERENCE;
13/* supported scheme: file: */
14#10=<file:companion.stp#part_a>;
15/* supported scheme: https: */
16#11=<https://example.invalid/companion.stp#part_b>;
17/* DEFECT: unsupported scheme urn: */
18#12=<urn:plm:org-acme:doc:12345#assembly>;
19/* DEFECT: unsupported custom scheme plmlink: */
20#13=<plmlink:vault://acme/parts/12345#main>;
21ENDSEC;
22DATA;
23#1=CARTESIAN_POINT('origin',(0.,0.,0.));
24#2=CARTESIAN_POINT('corner',(1.,1.,0.));
25#3=DIRECTION('xdir',(1.,0.,0.));
26#4=DIRECTION('zdir',(0.,0.,1.));
27#5=GEOMETRIC_CURVE_SET('mixed-uri-scheme-shape',(#1,#2));
28ENDSEC;
29END-ISO-10303-21;