Skip to content

H2 bump - #2332

Merged
kunal0137 merged 21 commits into
devfrom
h2-bump
Oct 30, 2026
Merged

H2 bump#2332
kunal0137 merged 21 commits into
devfrom
h2-bump

Conversation

@rithvik-doshi

@rithvik-doshi rithvik-doshi commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

Following migration of all H2 databases from 1.x to 2.x, bump the H2 version, fixing CVE https://github.com/SEMOSS/Semoss/security/dependabot/3 and change connection strings to remain compatible. Actual db conversion occurs using https://github.com/SEMOSS/h2-update-utility

@rithvik-doshi
rithvik-doshi changed the base branch from dev to format-h2-rdmbs-ccs April 16, 2026 18:39
Base automatically changed from format-h2-rdmbs-ccs to dev April 16, 2026 20:33
@rithvik-doshi rithvik-doshi self-assigned this Apr 17, 2026
rithvik-doshi and others added 7 commits April 20, 2026 16:53
# Conflicts:
#	src/prerna/reactor/agent/GitHubCopilotTranscriptLocator.java
Line endings were mangled during merge conflict resolution; restore byte-for-byte from origin/dev to keep the diff clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Strip early_filter=true and query_cache_size=24 from all H2 JDBC URLs;
these options were removed in H2 v2. The cleanup originally lived in
RDBMSUtility (deleted in #2473) so the params crept back via the
H2QueryUtil.BASE_H2_FILE_CONNECTION constant, InsightsRDBMSUtils,
SmssUtilities, and Constants.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@snyk-io

snyk-io Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

# Conflicts:
#	src/prerna/engine/impl/SmssUtilities.java
#	src/prerna/util/Constants.java
- strip H2 1.x url settings (early_filter, LOG, UNDO_LOG, MVCC, ...) at
  connect time and remove early_filter from tracked smss files
- add H2 2.x reserved words to RDF_Map.prop and merge them in H2QueryUtil
- escape BRAIN_RULE.VALUE and form builder audit USER column in raw SQL
- clear error when an H2 1.x format file is opened
- RAWTOHEX the H2 hashColumn result (2.x returns binary)
- convert form_builder_engine db to H2 2.x format, drop unused 2016
  security/database.mv.db
terryozaki-wq pushed a commit that referenced this pull request Oct 26, 2026
USER is reserved in H2 2.x, which IL4-dev already runs (2.2.220). The
audit-log CREATE TABLE/INSERT statements in AbstractFormBuilder and
FormBuilder left USER unquoted, so first-time audit table creation on
any newly provisioned engine threw a syntax error that was caught and
only logged, silently breaking all subsequent audit INSERTs. Quote it
in all four spots (two CREATE TABLE, two INSERT).

Found while reviewing #2332, which hits the same
reserved-word fallout from its own H2 1.4.200->2.4.240 bump and fixes
three of these four sites on dev but misses the AbstractFormBuilder
CREATE TABLE; IL4-dev had none of the four fixed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kunal0137
kunal0137 marked this pull request as ready for review October 30, 2026 14:38
@kunal0137
kunal0137 requested a review from a team as a code owner October 30, 2026 14:38
@kunal0137
kunal0137 merged commit b0ecc25 into dev Oct 30, 2026
5 checks passed
@kunal0137
kunal0137 deleted the h2-bump branch October 30, 2026 14:39
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.

2 participants