Skip to content

fix(templates): include ooxml types in form filling - #6024

Merged
elzody merged 1 commit into
mainfrom
fix/ooxml-template-form-filling
Sep 3, 2026
Merged

fix(templates): include ooxml types in form filling#6024
elzody merged 1 commit into
mainfrom
fix/ooxml-template-form-filling

Conversation

@elzody

@elzody elzody commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

MS office MIME types should be considered in addition to OpenDocument
types when creating a document from a template. This allows support for
form filling on the MS office document types

Assisted-by: ClaudeCode:claude-sonnet-5

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@elzody
elzody requested a review from moodyjmz September 3, 2026 14:41
@elzody elzody self-assigned this Sep 3, 2026
@elzody elzody added the 2. developing Work in progress label Sep 3, 2026
@elzody
elzody force-pushed the fix/ooxml-template-form-filling branch from 54b4d71 to caf07ac Compare September 3, 2026 14:44
@elzody
elzody marked this pull request as ready for review September 3, 2026 14:45
@elzody
elzody requested a review from juliusknorr as a code owner September 3, 2026 14:45

@moodyjmz moodyjmz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — this matches the array_merge(MIMETYPES, MIMETYPES_MSOFFICE) guard already used in FileCreatedFromTemplateListener.php:39, and the new test actually exercises the OOXML case that was broken.

Minor, non-blocking: this union is now duplicated in two places, and AppConfig::getMimeTypes() already computes almost the same thing — could be a shared helper at some point.

@elzody

elzody commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

The failures are not related to this. The tests pass when run against stable Collabora, but nightly fails due to an unrelated error. I've already raised it with Collabora.

MS office MIME types should be considered in addition to OpenDocument
types when creating a document from a template. This allows support for
form filling on the MS office document types

Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
@elzody
elzody force-pushed the fix/ooxml-template-form-filling branch from caf07ac to 8ad491e Compare September 3, 2026 19:40
@elzody

elzody commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable35

@elzody

elzody commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable34

@elzody

elzody commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable33

@elzody

elzody commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Template field filling is silently inert for MS Office / OOXML templates

2 participants