Ip058 — 3MF duplicate object id silently doubles geometry (resource-id uniqueness violation)

§12.15 import-format parser robustness (sub-class: duplicate-resource-id)

P2 — spec deviation (no data loss)

silent-loss spec-violation

Sources

Description

The `<resources>` section declares two `<object>` elements that both use `id="1"`, and `<build><item objectid="1"/>` references that id. The 3MF Core spec requires resource ids to be unique within a model; a duplicate makes every reference to that id ambiguous. A conforming reader must reject the duplicate id (or deterministically pick one); a lenient reader resolves the reference to both objects and includes each object's mesh, silently doubling the geometry into coincident, non-manifold faces. This is the opposite failure direction from the dangling-reference Ip055 (which loses all geometry): here an ambiguous id yields too much.

Reproducer recipe

an OPC/ZIP package whose model part declares two `<object id="1">` elements, each carrying the same valid 4-vertex / 4-triangle tetrahedron mesh, with `<build><item objectid="1"/>`. Packed STORED with fixed 1980-01-01 timestamps.

Expected kernel behavior

enforce resource-id uniqueness at parse time; reject a model that reuses an id (or, at minimum, resolve each reference to exactly one object) — never silently union two objects sharing an id into overlapping coincident geometry.

Notes

Cross-oracle: trimesh 4.12.2 (+networkx/lxml) loads 4 vertices / 8 faces — both id="1" objects are included, so all 4 triangles appear twice as coincident faces (a valid single object loads 4/4) — silent, no diagnostic — verified 2026-08-11. Graded-and-dropped siblings this round: NaN/INF vertex coordinates are NOT silently accepted (trimesh drops the offending vertex — no NaN reaches the mesh, bbox stays finite), and self-referential / mutually-recursive `<components>` load empty (0/0) rather than hanging, i.e. they collapse into the Ip055 silent-total-loss class, not a DoS. Synonyms: "3MF duplicate object id", "resource id not unique", "3mf id collision doubles mesh", "coincident faces from duplicate id". Provenance tier: bytes-only.

Expected validation

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Byte assertions

Cross-references

Ip055

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1PK!=U!BB[Content_Types].xml<?xml version="1.0" encoding="UTF-8"?>
2<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
3<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
4<Default Extension="model" ContentType="application/vnd.ms-package.3dmanufacturing-3dmodel+xml"/>
5</Types>
6PK!\LH#_rels/.rels<?xml version="1.0" encoding="UTF-8"?>
7<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
8<Relationship Target="/3D/3dmodel.model" Id="rel0" Type="http://schemas.microsoft.com/3dmanufacturing/2013/01/3dmodel"/>
9</Relationships>
10PK!AÆfꎎ3D/3dmodel.model<?xml version="1.0" encoding="UTF-8"?>
11<model unit="millimeter" xml:lang="en-US" xmlns="http://schemas.microsoft.com/3dmanufacturing/core/2015/02">
12<resources>
13<object id="1" type="model">
14<mesh>
15<vertices>
16<vertex x="0" y="0" z="0"/>
17<vertex x="1" y="0" z="0"/>
18<vertex x="0" y="1" z="0"/>
19<vertex x="0" y="0" z="1"/>
20</vertices>
21<triangles>
22<triangle v1="0" v2="1" v3="2"/>
23<triangle v1="0" v2="1" v3="3"/>
24<triangle v1="0" v2="2" v3="3"/>
25<triangle v1="1" v2="2" v3="3"/>
26</triangles>
27</mesh>
28</object>
29<object id="1" type="model">
30<mesh>
31<vertices>
32<vertex x="0" y="0" z="0"/>
33<vertex x="1" y="0" z="0"/>
34<vertex x="0" y="1" z="0"/>
35<vertex x="0" y="0" z="1"/>
36</vertices>
37<triangles>
38<triangle v1="0" v2="1" v3="2"/>
39<triangle v1="0" v2="1" v3="3"/>
40<triangle v1="0" v2="2" v3="3"/>
41<triangle v1="1" v2="2" v3="3"/>
42</triangles>
43</mesh>
44</object>
45</resources>
46<build><item objectid="1"/></build>
47</model>
48PK!=U!BB€[Content_Types].xmlPK!\LH#€s_rels/.relsPK!AÆfꎎ€¢3D/3dmodel.modelPK¸^