Skip to content

Take odrcore 6.10.1 - #613

Merged
andiwand merged 1 commit into
mainfrom
take-odrcore-6.10.1
Aug 21, 2026
Merged

Take odrcore 6.10.1#613
andiwand merged 1 commit into
mainfrom
take-odrcore-6.10.1

Conversation

@andiwand

@andiwand andiwand commented Aug 21, 2026

Copy link
Copy Markdown
Member

One fix, and it is ours: a linked image in a docx or xlsx is now named relative
to the document, the way the odf engines always named theirs. The ooxml side
resolved the relationship into an absolute container path and the html layer
emitted it verbatim, so src="/word/media/image1.jpeg" resolved against the
server root rather than against /file/odr/, and every picture in a Word or
Excel document 404ed into the core's broken-image placeholder.

Nothing here has to move with it. The app already asks for linked images rather
than embedded ones - embedImages = false - which is the shape the fix is for,
and relativeResourcePaths is not the lever it looks like: it governs only the
shipped resources, core's own css and js, never a document's own. No file
type, extension or mime type changes either, so SupportedDocumentTypes derives
the same two sets and SupportedFormatsTest still holds.

Drafted ahead of the release: 6.10.1 is not on maven central yet, so the one
unresolved dependency in the tree is this one and CI cannot go green until the
core's release run publishes the AAR. Everything else resolves.

Not yet checked on a device for the same reason. image-anchor.docx and
file-sample_100kB.docx from the core's corpus are the two that showed it, and
both should come back with their pictures rather than the placeholder.

Closes #551

🤖 Generated with Claude Code

One fix, and it is ours: a linked image in a docx or xlsx is now named relative
to the document, the way the odf engines always named theirs. The ooxml side
resolved the relationship into an absolute container path and the html layer
emitted it verbatim, so `src="/word/media/image1.jpeg"` resolved against the
server root rather than against `/file/odr/`, and every picture in a Word or
Excel document 404ed into the core's broken-image placeholder.

Nothing here has to move with it. The app already asks for linked images rather
than embedded ones - `embedImages = false` - which is the shape the fix is for,
and `relativeResourcePaths` is not the lever it looks like: it governs only the
*shipped* resources, core's own css and js, never a document's own. No file
type, extension or mime type changes either, so `SupportedDocumentTypes` derives
the same two sets and `SupportedFormatsTest` still holds.

Drafted ahead of the release: 6.10.1 is not on maven central yet, so the one
unresolved dependency in the tree is this one and CI cannot go green until the
core's release run publishes the AAR. Everything else resolves.

Not yet checked on a device for the same reason. `image-anchor.docx` and
`file-sample_100kB.docx` from the core's corpus are the two that showed it, and
both should come back with their pictures rather than the placeholder.

Closes #551
@andiwand
andiwand enabled auto-merge (squash) August 21, 2026 09:52
@andiwand
andiwand merged commit e75ca31 into main Aug 21, 2026
18 of 21 checks passed
@andiwand
andiwand deleted the take-odrcore-6.10.1 branch August 21, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Images in OOXML documents render as "Error: image not found or unsupported"

1 participant