Skip to content

Fix oracle storage failure - #455

Merged
tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
mgaffigan:fix/oracle-message-history
Sep 24, 2026
Merged

tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
mgaffigan:fix/oracle-message-history

Conversation

@mgaffigan

@mgaffigan mgaffigan commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

A historical change set did not use the closeDatabaseObjectIfNeeded method which permits the oracle connections to batch inserts. Updated to use that.

Non-oracle databases are not affected by this change since they do not override the closeDatabaseObjectIfNeeded method.

Closes #454

@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Test Results

126 files  +1  126 suites  +1   2m 52s ⏱️ + 1m 0s
713 tests +2  713 ✅ +2  0 💤 ±0  0 ❌ ±0 
755 runs  +2  749 ✅ +2  6 💤 ±0  0 ❌ ±0 

Results for commit 3235172. ± Comparison against base commit 9d99f43.

♻️ This comment has been updated with latest results.

pacmano1
pacmano1 previously approved these changes Sep 20, 2026

@pacmano1 pacmano1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reverted just the JdbcDao hunk and ran ci/runtests.sh alpine-temurin21-oracle. 101-raw-no-op/01-hello-world fails with "Expected source encoded content but the server stored none", while the other assertions on that channel still pass. Fails without the fix, passes with it.

jonbartels
jonbartels previously approved these changes Sep 24, 2026
@mgaffigan
mgaffigan force-pushed the fix/oracle-message-history branch from a1253a1 to 13d4453 Compare September 24, 2026 15:38
@mgaffigan
mgaffigan force-pushed the fix/oracle-message-history branch from 13d4453 to 3235172 Compare September 24, 2026 16:32
@mgaffigan mgaffigan added this to the 4.6.x CVE fixes milestone Sep 24, 2026
@mgaffigan mgaffigan added the 4.6.x CVE Fixes A quick way to organize a batch of CVE issues for 4.6.x, Sept 2026 label Sep 24, 2026
@tonygermano tonygermano removed this from the 4.6.x CVE fixes milestone Sep 24, 2026
@pacmano1
pacmano1 self-requested a review September 24, 2026 17:59
A previous change set prematurely called closeDatabaseObjectIfNeeded()
after every addBatch() call. This prevented Oracle connections from
accumulating and executing batch inserts properly, as the statement
was closed before the batch could run.

This patch removes the aggressive closure, allowing the PreparedStatement
to remain open while the batch accumulates, and correctly closes it only
after executeBatch() is called. It also introduces safe batch clearing
on exceptions to prevent bleeding leftover batches into subsequent messages.

Non-Oracle databases are not affected by this change since they do not
override the closeDatabaseObjectIfNeeded method.

Issue: OpenIntegrationEngine#454
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Tony Germano <tony@germano.name>
@tonygermano
tonygermano force-pushed the fix/oracle-message-history branch from 3235172 to 864ede7 Compare September 24, 2026 18:34
@tonygermano
tonygermano merged commit 864ede7 into OpenIntegrationEngine:main Sep 24, 2026
2 checks passed
@tonygermano tonygermano added bug Something isn't working and removed 4.6.x CVE Fixes A quick way to organize a batch of CVE issues for 4.6.x, Sept 2026 labels Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Oracle MirthDB does not seem to store transformed or encoded content

5 participants