Skip to content

Content_Types Override missing for commentsExtended/endnotes + endnotes orphan part (sister concern from kiki830621/collaboration_guo_analysis#20) #64

Description

@kiki830621

Problem

ooxml-swift v0.22+ 寫出的 docx 有 [Content_Types].xml Override 缺漏:

  1. word/commentsExtended.xml 在 zip 但[Content_Types].xml 宣告 Override
  2. word/endnotes.xml 在 zip 但[Content_Types].xml 宣告 Override
  3. word/endnotes.xml沒有word/_rels/document.xml.rels 引用 → orphan part

Type

bug

Evidence

$ unzip -l file.docx | grep endnotes
   word/endnotes.xml

$ unzip -p file.docx '[Content_Types].xml' | grep endnotes
# (無輸出)

$ unzip -p file.docx word/_rels/document.xml.rels | grep endnotes
# (無輸出)

Expected

序列化 docx 時:

  • 每個 zip part 都有對應的 <Override>[Content_Types].xml
  • 沒被任何 rels 引用的 part 應不寫入 zip(不留 orphan)

Actual

漏宣告 + 留 orphan,會造成 Word strict validator 警告或拒絕。

Impact

不單獨會讓 Word 拒收(subordinate to sister #A 的 rPr 順序),但是 schema cleanliness 問題;應該與 #A 一起修。

Source

Surfaced during /idd-diagnose kiki830621/collaboration_guo_analysis#20 sister concern surfacing (Step 3.6).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions