Le025 — Empty / blank / single-space NAME silently emptied

§12.1a encoding/strings (sub-class: trim/whitespace)

P2 — spec deviation (no data loss)

silent-loss encoding

Sources

Description

A `PRODUCT(' ',…)` with a NAME consisting only of a single space becomes an empty XCAF attribute name after trim, losing the original sender's intent.

Reproducer recipe

`PRODUCT(' ','id','desc',(..));`

Expected kernel behavior

Heal and accept: distinguish empty `''` from whitespace-only `' '`; preserve the sender's literal value, or apply a "useful-length" trim only after explicit user opt-in. Must not silently empty.

Notes

Synonyms: "empty PRODUCT name silently dropped", "single-space NAME becomes empty", "blank string trimmed in STEP", "whitespace-only NAME loses content", "STEP attribute becomes empty after import".

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/* Le025: Empty / blank / single-space NAME silently emptied; PRODUCT(' ',...) NAME is whitespace-only — a single space; OCCT XCAF attribute loading trims the name to '' losing the sender's intent; ISO 10303-21 §6.4.3.1: string values are preserved as-is; heap must distinguish empty '' from whitespace-only ' '; heal and accept: preserve literal value or trim only after explicit user opt-in; must not silently empty a non-empty whitespace string; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le025'),'2;1');
5FILE_NAME('Le025.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=GEOMETRIC_CURVE_SET('',(#1));
11#8997=PRODUCT(' ','blank-name-id','desc',(#9000));
12#8998=PRODUCT('   ','multi-space-name','desc',(#9000));
13
14ENDSEC;
15END-ISO-10303-21;