Skip to content

Fix Excel global dispatch bugs - #523

Merged
jozefizso merged 3 commits into
releases/netoffice_v1.9.12from
bugfix/v1.9-excel-global-dispatch
Oct 17, 2026
Merged

jozefizso merged 3 commits into
releases/netoffice_v1.9.12from
bugfix/v1.9-excel-global-dispatch

Conversation

@jozefizso

Copy link
Copy Markdown
Member

Why

Two Excel global wrappers in the v1.9 maintenance line dispatch to different COM member names than their public APIs promise. This can execute Selection instead of DDERequest, or Run instead of the maximum-arity _Run2.

Changes

  • Correct only the two dispatch strings in Source/Excel/Modules/Global.cs; signatures, argument order, attributes and neighboring overloads remain unchanged.
  • Add Office-free regression coverage for DDERequest, the 31-argument _Run2 overload and its 30-argument neighbor using the actual public wrappers and NetOffice invocation path.
  • Prepare v1.9.12 through the existing shared release property and changelog.

The release wrappers are patched manually because the imported method definitions are already correct. No generator change or mass regeneration is needed. The separate generator compatibility baseline remains unchanged.

Verification

  • Actual v1.9.11 reproduction: two failing regression cases; neighboring overload passes.
  • Same compiled net462 consumer before/after the two literal fixes: Selection -> DDERequest; Run@31 -> _Run2@31; _Run2@30 unchanged; all argument values/order preserved.
  • Locked dependency restore succeeds; lock files unchanged.
  • Full v1.9.12 Release solution build succeeds (29 warnings, 0 errors).
  • Office-free suite: 72 passed in Release and 72 passed in Debug.
  • All 14 NuGet packages built locally at 1.9.12 with net462 assemblies; an executable using the packaged DLLs confirms the corrected behavior.
  • Excel assembly follows existing 1.9.12.0 versioning and retains the previous strong-name public key token.

No Office applications were launched. No release tag, GitHub release or package publication has been performed. Validation logs are retained locally in artifacts/netoffice-v1.9-validation.

Fixes #522.
Fixes #521.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T15:49:46.279425Z 987a0f8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jozefizso jozefizso changed the title Fix Excel global dispatch bugs and prepare v1.9.12 Fix Excel global dispatch bugs Oct 17, 2026
@jozefizso
jozefizso changed the base branch from releases/netoffice_v1.9.11 to releases/netoffice_v1.9.12 October 17, 2026 21:12
DDERequest currently executes Selection, and the 31-argument _Run2 overload executes Run. Correct only these member names so callers reach the requested Excel APIs without changing signatures or argument order.

Add Office-free regressions exercising public wrappers through the real reflection invocation path, including the neighboring _Run2 overload. Patch the maintained release wrappers manually because the imported method definitions are already correct and mass regeneration would introduce unrelated output.

Refs #522, #521
@jozefizso
jozefizso force-pushed the bugfix/v1.9-excel-global-dispatch branch from 987a0f8 to e3cfdeb Compare October 17, 2026 21:13
@jozefizso
jozefizso force-pushed the bugfix/v1.9-excel-global-dispatch branch from e3cfdeb to b073a1f Compare October 17, 2026 21:14
@jozefizso
jozefizso merged commit 66fa30c into releases/netoffice_v1.9.12 Oct 17, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in NetOffice Oct 17, 2026
jozefizso added a commit that referenced this pull request Oct 17, 2026
- Correct only the two dispatch strings in
`Source/Excel/Modules/Global.cs`; signatures, argument order, attributes
and neighboring overloads remain unchanged.
- Add Office-free regression coverage for DDERequest, the 31-argument
_Run2 overload and its 30-argument neighbor using the actual public
wrappers and NetOffice invocation path.
- Prepare v1.9.12 through the existing shared release property and
changelog.

Fixes #522.
Fixes #521.
@jozefizso
jozefizso deleted the bugfix/v1.9-excel-global-dispatch branch October 17, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant