Skip to content

feat: normalize non-standard DOCX/XLSX before parse - #414

Merged
EricNGOntos merged 1 commit into
mainfrom
feat/wuchengke/office-compat-normalize
Sep 14, 2026
Merged

feat: normalize non-standard DOCX/XLSX before parse#414
EricNGOntos merged 1 commit into
mainfrom
feat/wuchengke/office-compat-normalize

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • Detect encrypted Office containers and known DOCX/XLSX variants (macro/template content types) after download, then convert variants to standard files before billing and parse.
  • Reject encrypted files with a clear client error instead of wrapping them as an unknown worker failure.
  • Record office_compat on job metadata when a conversion ran, for later debugging.

Test plan

  • make check
  • Focused unit + parse-task contract tests for variant conversion, encrypted rejection, and existing invalid DOCX/XLSX errors

Made with Cursor

…alidation

- Added normalization functions for DOCX and XLSX variants to handle non-standard containers.
- Integrated office compatibility normalization into the source preparation process, updating job metadata accordingly.
- Improved office container validation by replacing zipfile checks with a more robust inspection method.
- Updated job metadata schema to include office compatibility information for better tracking of conversion processes.
@EricNGOntos
EricNGOntos merged commit 01d97fd into main Sep 14, 2026
6 checks passed
@EricNGOntos
EricNGOntos deleted the feat/wuchengke/office-compat-normalize branch September 14, 2026 10:18
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.

1 participant