GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat:improve backup database functionality via SQL and add related tests by robfrank · Pull Request #2198 · ArcadeData/arcadedb

Conversation

@robfrank

@robfrank robfrank commented May 9, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

refs to #2116

This pull request introduces several changes aimed at improving database backup functionality, enhancing test coverage, and refining code quality. The most critical updates include adding a new backup feature, improving error handling during backups, and expanding test cases to ensure the robustness of the backup functionality. Additionally, there are various code cleanups and structural improvements across the codebase.

Database Backup Enhancements:

  • Backup Command Handling: Enhanced the BackupDatabaseStatement class to include improved error handling during database backups. It now logs errors and returns detailed results, including success or failure status and error messages when applicable.
  • Backup Settings Improvements: Refactored BackupSettings to use modern Java constructs (e.g., switch expressions) and simplified logic for assigning default filenames.
  • New Backup Test: Added BackupDatabaseTest to test the backup functionality, ensuring the command produces the expected results and file outputs.

Test Coverage Improvements:

  • E2E Tests: Added a new test (testBackupDatabase) in JdbcQueriesTest and RemoteDatabaseJavaApiTest to validate backup functionality. [1] [2]
  • Global Configuration Reset: Updated TestHelper to reset global configuration after each test to ensure test isolation.

Code Quality and Refactoring:

  • Code Cleanup: Removed unused imports and improved readability in multiple files, such as ArcadeContainerTemplate, BackupSettings, and FullBackupFormat. [1] [2] [3]
  • Improved SQL Query Engine: Made the parse method non-static in SQLQueryEngine to align with object-oriented principles.

Packaging and Deployment Updates:

  • Empty Directories for Backups: Updated assembly files (full.xml, headless.xml, minimal.xml) to include empty directories for backups and replication. [1] [2] [3]
  • Dockerfile Updates: Added volumes for backups and replication to the Docker image to support the new backup functionality.

Postgres Integration:

  • Command Context for SQL Execution: Updated PostgresNetworkExecutor to use BasicCommandContext for executing SQL statements, enabling better configuration management. [1] [2]## What does this PR do?

Checklist

  • I have run the build using mvn clean package command
  • My unit tests cover both failure and success scenarios

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@robfrank
feat: implement backup database functionality and add related tests
d79f62a
@robfrank robfrank added this to the 25.5.1 milestone May 9, 2025
@robfrank
robfrank requested review from Copilot, gramian and lvca May 9, 2025 11:10
Copilot AI reviewed May 9, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request implements a new backup database functionality with enhancements on error handling and test coverage while cleaning up and modernizing several parts of the codebase.

  • Introduces a backup feature with detailed error reporting in the backup command handler.
  • Expands test coverage for backup functionality across various test suites.
  • Updates packaging and configuration files to support backup, replication, and improved test isolation.

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
server/src/main/java/com/arcadedb/server/http/handler/PostCommandHandler.java Removed stray semicolon for cleaner code.
server/src/main/java/com/arcadedb/server/ArcadeDBServer.java Added a createDirectories method to ensure necessary directories (databases and backups) are present.
postgresw/src/test/java/com/arcadedb/postgres/PostgresWJdbcTest.java Added a basic backup database test using a "BACKUP DATABASE" SQL command.
postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkListener.java Reformatted constructor parameters across multiple lines for improved readability.
postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkExecutor.java Updated SQL command execution to use a BasicCommandContext and pass the server configuration.
package/src/main/docker/Dockerfile Added new volumes for configuration, backups, and replication support.
package/src/main/assembly/*.xml Created new file sets to generate empty directories for backups and replication in the distributions.
integration/src/test/java/com/arcadedb/integration/backup/BackupDatabaseTest.java Introduced an integration test validating backup command output.
integration/src/test/java/com/arcadedb/integration/backup/format/FullBackupFormat.java Updated import statements for clarity and maintainability.
integration/src/test/java/com/arcadedb/integration/backup/BackupSettings.java Refactored to use switch expressions and modern imports to assign backup settings.
engine/src/test/java/com/arcadedb/TestHelper.java Improved test isolation by resetting global configuration after each test.
engine/src/main/java/com/arcadedb/query/sql/parser/BackupDatabaseStatement.java Enhanced error handling in backup execution by wrapping the call in a try-catch with detailed error logging.
engine/src/main/java/com/arcadedb/query/sql/executor/BasicCommandContext.java Updated class comments to match the current interface naming.
engine/src/main/java/com/arcadedb/query/sql/SQLQueryEngine.java Converted the parse method from static to an instance method to improve API design.
e2e/src/test/java/com/arcadedb/e2e/RemoteDatabaseJavaApiTest.java & JdbcQueriesTest.java Expanded tests to cover backup command behavior via both SQL and SQLScript interfaces.
e2e/src/test/java/com/arcadedb/e2e/ArcadeContainerTemplate.java Updated the container initialization using generics and a more modern formatting style.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread server/src/main/java/com/arcadedb/server/ArcadeDBServer.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkExecutor.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread engine/src/main/java/com/arcadedb/query/sql/parser/BackupDatabaseStatement.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

robfrank and others added 6 commits May 9, 2025 04:27
@robfrank
Update engine/src/main/java/com/arcadedb/query/sql/parser/BackupDatab…
4533846
…aseStatement.java

Co-authored-by: Copilot <[email protected]>
@robfrank
Update server/src/main/java/com/arcadedb/server/ArcadeDBServer.java
7cb2720
Co-authored-by: Copilot <[email protected]>
@robfrank
Update postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkE…
da1a523
…xecutor.java

Co-authored-by: Copilot <[email protected]>
@robfrank
fix pre-commit
22e85f2
@robfrank
fix: improve error logging in BackupDatabaseStatement for backup dire…
ed09d61
…ctory
@robfrank
fix: refactor command context creation in PostgresNetworkExecutor
1bcf60d
@codacy-production

codacy-production Bot commented May 9, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
✅ +0.13% ✅ 57.14%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (a7bfd27) 69903 44780 64.06%
Head commit (7bd9d55) 69930 (+27) 44885 (+105) 64.19% (+0.13%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#2198) 42 24 57.14%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gramian

gramian commented May 9, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

@robfrank will this affect #2177 ?

It seems such a test could be easily added here https://github.com/ArcadeData/arcadedb/pull/2198/files#diff-d24951ee7936b3abd0aa8458f0fa2e97b6fc7758de35f5f1fda114929eaff7b0 fir sqlscript, right?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@robfrank

robfrank commented May 9, 2025

Copy link
Copy Markdown
Collaborator Author

@gramian added and tested locally, it fails. But I think it is expected to fail

gramian reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@robfrank
test: add backup database command verification in RemoteDatabaseJavaA…
7d57215
…piTest
@gramian

gramian commented May 9, 2025

Copy link
Copy Markdown
Collaborator

What is the replications folder for? Is this a thing for HA (see Dockerfile https://github.com/ArcadeData/arcadedb/pull/2198/files#diff-ee5bdd6fd6551ebaddc404ecef351b661fd0c9b8547819d718feb8b6b5729ae6 )? This folder does not appear in the docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@robfrank

robfrank commented May 9, 2025

Copy link
Copy Markdown
Collaborator Author

Yes, is for HA, but was missing as the backups one, so I added both

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@robfrank
test: enhance backup database command verification in RemoteDatabaseJ…
7bd9d55
…avaApiTest
@robfrank robfrank mentioned this pull request May 10, 2025
[SQLscript] BACKUP DATABASE command and transactions #2177
Closed
@robfrank
robfrank merged commit 540ecc9 into main May 10, 2025
@robfrank robfrank mentioned this pull request May 10, 2025
[PG DRIVER] BACKUP DATABASE doesn't work (result is lying) #2116
Closed
@robfrank robfrank changed the title feat: implement backup database functionality and add related tests feat:improve backup database functionality via SQL and add related tests May 30, 2025
@lvca lvca assigned robfrank May 30, 2025
@robfrank
robfrank deleted the fix/2116-backup-database branch June 20, 2025 07:44
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
@robfrank
ArcadeData#2116 fix backup database functionality and add more tests (A…
98a3ae9
…rcadeData#2198)
mergify Bot added a commit that referenced this pull request Aug 30, 2026
@mergify
chore(deps): bump jline.version from 4.3.1 to 4.4.0 [skip ci]
2760c57
Bumps `jline.version` from 4.3.1 to 4.4.0.
Updates `org.jline:jline-terminal` from 4.3.1 to 4.4.0
Release notes

*Sourced from [org.jline:jline-terminal's releases](https://github.com/jline/jline3/releases).*

> JLine 4.4.0 is a feature-rich release bringing modern terminal protocol support, broader platform compatibility, and continued security hardening.
>
> **Highlights:**
>
> * **Kitty Keyboard Protocol** — full support for the [Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/), enabling unambiguous key event reporting ([#2007](https://redirect.github.com/jline/jline3/issues/2007))
> * **In-band window resize** — support for mode 2048 resize notifications across the terminal, reader, and builtins (Nano, Less, Tmux) ([#2021](https://redirect.github.com/jline/jline3/issues/2021), [#2198](https://redirect.github.com/jline/jline3/issues/2198))
> * **Synchronized output** — full mode 2026 support to eliminate flicker during rapid screen updates ([#2022](https://redirect.github.com/jline/jline3/issues/2022))
> * **musl libc support** — native libraries now load on Alpine and other musl-based distributions ([#2197](https://redirect.github.com/jline/jline3/issues/2197))
> * **JdkConsoleProvider** — drop-in JLine console that can replace `System.console()` ([#2031](https://redirect.github.com/jline/jline3/issues/2031))
> * **Reproducible builds** — source archives can now be built without a git checkout, thanks to nisse property fallbacks ([#2151](https://redirect.github.com/jline/jline3/issues/2151), [#2153](https://redirect.github.com/jline/jline3/issues/2153))
> * **Security hardening** — path traversal guards, ReDoS protection, cross-origin rejection, control character stripping, and SSH agent forwarding tightened across multiple modules
> * **FFM signal handling rewrite** — replaced shared Arena with self-pipe trick for reliable signal delivery ([#2141](https://redirect.github.com/jline/jline3/issues/2141))
>
> ⚠️ **Breaking:** the ambiguous key binding timeout has been reduced from 1000ms to 100ms ([#2186](https://redirect.github.com/jline/jline3/issues/2186)), and SSH agent forwarding now requires the explicit `-A` flag ([#2106](https://redirect.github.com/jline/jline3/issues/2106)).
>
> 💥 Breaking changes
> -----------------------
>
> * fix: reduce ambiguous binding timeout from 1000ms to 100ms ([#2186](https://redirect.github.com/jline/jline3/pull/2186)) [`@​gnodet`](https://github.com/gnodet)
> * fix: only forward the ssh agent when -A is given ([#2106](https://redirect.github.com/jline/jline3/pull/2106)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
>
> 🚀 New features and improvements
> -------------------------------
>
> * feat: support in-band resize (mode 2048) in Nano, Less, and Tmux builtins ([#2198](https://redirect.github.com/jline/jline3/pull/2198)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add musl libc support for native libraries ([#2197](https://redirect.github.com/jline/jline3/pull/2197)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add Kitty Keyboard Protocol support ([#2007](https://redirect.github.com/jline/jline3/pull/2007)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add configurable behavior for too many completion candidates (fixes [#2154](https://redirect.github.com/jline/jline3/issues/2154)) ([#2196](https://redirect.github.com/jline/jline3/pull/2196)) [`@​gnodet`](https://github.com/gnodet)
> * feat: support in-band window resize notifications (mode 2048) ([#2021](https://redirect.github.com/jline/jline3/pull/2021)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add JdkConsoleProvider for drop-in JLine console ([#2031](https://redirect.github.com/jline/jline3/pull/2031)) [`@​gnodet`](https://github.com/gnodet)
> * feat: verify macOS native library signatures in CI ([#2173](https://redirect.github.com/jline/jline3/pull/2173)) [`@​gnodet`](https://github.com/gnodet)
> * feat: allow customizing the help source in Less pager (fixes [#2056](https://redirect.github.com/jline/jline3/issues/2056)) ([#2065](https://redirect.github.com/jline/jline3/pull/2065)) [`@​gnodet`](https://github.com/gnodet)
> * feat: full synchronized output (mode 2026) support ([#2022](https://redirect.github.com/jline/jline3/pull/2022)) [`@​gnodet`](https://github.com/gnodet)
> * refactor: batch DEC mode probing into single DECRQM round-trip ([#2023](https://redirect.github.com/jline/jline3/pull/2023)) [`@​gnodet`](https://github.com/gnodet)
> * feat: allow customizing the default prompt in Less pager ([#2036](https://redirect.github.com/jline/jline3/pull/2036)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add factory to simplify LineDisciplineTerminal + ScreenTerminal wiring ([#2035](https://redirect.github.com/jline/jline3/pull/2035)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add AttributedStringBuilder.appendCodePoint(int) ([#2163](https://redirect.github.com/jline/jline3/pull/2163)) [`@​gnodet`](https://github.com/gnodet)
> * Enable reproducible builds from source archives ([#2151](https://redirect.github.com/jline/jline3/pull/2151)) [`@​gnodet`](https://github.com/gnodet)
> * Add Terminal.getenv() for remote terminal environment support ([#2030](https://redirect.github.com/jline/jline3/pull/2030)) [`@​gnodet`](https://github.com/gnodet)
>
> 🐛 Bug Fixes
> -----------
>
> * fix: remove eval from MVX demo launchers (fixes [#2191](https://redirect.github.com/jline/jline3/issues/2191)) ([#2193](https://redirect.github.com/jline/jline3/pull/2193)) [`@​gnodet`](https://github.com/gnodet)
> * fix: DefaultHistory.read() records per-file entry count instead of total (fixes [#2179](https://redirect.github.com/jline/jline3/issues/2179)) ([#2194](https://redirect.github.com/jline/jline3/pull/2194)) [`@​gnodet`](https://github.com/gnodet)
> * fix: handle IOError in BindingReader gracefully instead of crashing (fixes [#2155](https://redirect.github.com/jline/jline3/issues/2155)) ([#2195](https://redirect.github.com/jline/jline3/pull/2195)) [`@​gnodet`](https://github.com/gnodet)
> * fix: lower native library candidate log level from WARNING to DEBUG (fixes [#2185](https://redirect.github.com/jline/jline3/issues/2185)) ([#2192](https://redirect.github.com/jline/jline3/pull/2192)) [`@​gnodet`](https://github.com/gnodet)
> * fix: reimplement FFM signal handling with self-pipe trick (fixes [#2139](https://redirect.github.com/jline/jline3/issues/2139)) ([#2141](https://redirect.github.com/jline/jline3/pull/2141)) [`@​gnodet`](https://github.com/gnodet)
> * fix: add software signal interception to Windows terminals (fixes [#2127](https://redirect.github.com/jline/jline3/issues/2127)) ([#2148](https://redirect.github.com/jline/jline3/pull/2148)) [`@​gnodet`](https://github.com/gnodet)
> * fix: escape control chars in oversized line-buffer display ([#2175](https://redirect.github.com/jline/jline3/pull/2175)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: escape IAC byte in the telnet data output stream ([#2164](https://redirect.github.com/jline/jline3/pull/2164)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: strip control characters from Less status messages ([#2156](https://redirect.github.com/jline/jline3/pull/2156)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: preserve termios baud rate when setting attributes ([#2170](https://redirect.github.com/jline/jline3/issues/2170)) ([#2172](https://redirect.github.com/jline/jline3/pull/2172)) [`@​arimu1`](https://github.com/arimu1)
> * fix: mask password value in DefaultPrompter result display ([#2167](https://redirect.github.com/jline/jline3/pull/2167)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)

... (truncated)


Commits

* [`57f82ce`](jline/jline3@57f82ce) fix: preserve pending buffer and message during Less resize
* [`f21f332`](jline/jline3@f21f332) fix: enforce dimension bounds in InBandResize.applyResizeParams
* [`1c3801c`](jline/jline3@1c3801c) test: add unit tests for InBandResize utility, fix resize aborting Less file ...
* [`6be4759`](jline/jline3@6be4759) fix: address SonarCloud issues — rename Binding enum to UPPER\_SNAKE\_CASE, red...
* [`571f0fe`](jline/jline3@571f0fe) feat: support in-band resize (mode 2048) in Nano, Less, and Tmux builtins (fi...
* [`6e02fe4`](jline/jline3@6e02fe4) feat: add musl libc support for native libraries (fixes [#1092](https://redirect.github.com/jline/jline3/issues/1092))
* [`11f9346`](jline/jline3@11f9346) fix: remove eval from MVX demo launchers (fixes [#2191](https://redirect.github.com/jline/jline3/issues/2191))
* [`a701558`](jline/jline3@a701558) feat: add Kitty Keyboard Protocol support (fixes [#1217](https://redirect.github.com/jline/jline3/issues/1217))
* [`c7170ea`](jline/jline3@c7170ea) fix: DefaultHistory.read() records per-file entry count instead of total (fix...
* [`e5202a3`](jline/jline3@e5202a3) feat: add configurable behavior for too many completion candidates (fixes [#2154](https://redirect.github.com/jline/jline3/issues/2154))
* Additional commits viewable in [compare view](jline/jline3@4.3.1...4.4.0)
  
Updates `org.jline:jline-reader` from 4.3.1 to 4.4.0
Release notes

*Sourced from [org.jline:jline-reader's releases](https://github.com/jline/jline3/releases).*

> JLine 4.4.0 is a feature-rich release bringing modern terminal protocol support, broader platform compatibility, and continued security hardening.
>
> **Highlights:**
>
> * **Kitty Keyboard Protocol** — full support for the [Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/), enabling unambiguous key event reporting ([#2007](https://redirect.github.com/jline/jline3/issues/2007))
> * **In-band window resize** — support for mode 2048 resize notifications across the terminal, reader, and builtins (Nano, Less, Tmux) ([#2021](https://redirect.github.com/jline/jline3/issues/2021), [#2198](https://redirect.github.com/jline/jline3/issues/2198))
> * **Synchronized output** — full mode 2026 support to eliminate flicker during rapid screen updates ([#2022](https://redirect.github.com/jline/jline3/issues/2022))
> * **musl libc support** — native libraries now load on Alpine and other musl-based distributions ([#2197](https://redirect.github.com/jline/jline3/issues/2197))
> * **JdkConsoleProvider** — drop-in JLine console that can replace `System.console()` ([#2031](https://redirect.github.com/jline/jline3/issues/2031))
> * **Reproducible builds** — source archives can now be built without a git checkout, thanks to nisse property fallbacks ([#2151](https://redirect.github.com/jline/jline3/issues/2151), [#2153](https://redirect.github.com/jline/jline3/issues/2153))
> * **Security hardening** — path traversal guards, ReDoS protection, cross-origin rejection, control character stripping, and SSH agent forwarding tightened across multiple modules
> * **FFM signal handling rewrite** — replaced shared Arena with self-pipe trick for reliable signal delivery ([#2141](https://redirect.github.com/jline/jline3/issues/2141))
>
> ⚠️ **Breaking:** the ambiguous key binding timeout has been reduced from 1000ms to 100ms ([#2186](https://redirect.github.com/jline/jline3/issues/2186)), and SSH agent forwarding now requires the explicit `-A` flag ([#2106](https://redirect.github.com/jline/jline3/issues/2106)).
>
> 💥 Breaking changes
> -----------------------
>
> * fix: reduce ambiguous binding timeout from 1000ms to 100ms ([#2186](https://redirect.github.com/jline/jline3/pull/2186)) [`@​gnodet`](https://github.com/gnodet)
> * fix: only forward the ssh agent when -A is given ([#2106](https://redirect.github.com/jline/jline3/pull/2106)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
>
> 🚀 New features and improvements
> -------------------------------
>
> * feat: support in-band resize (mode 2048) in Nano, Less, and Tmux builtins ([#2198](https://redirect.github.com/jline/jline3/pull/2198)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add musl libc support for native libraries ([#2197](https://redirect.github.com/jline/jline3/pull/2197)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add Kitty Keyboard Protocol support ([#2007](https://redirect.github.com/jline/jline3/pull/2007)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add configurable behavior for too many completion candidates (fixes [#2154](https://redirect.github.com/jline/jline3/issues/2154)) ([#2196](https://redirect.github.com/jline/jline3/pull/2196)) [`@​gnodet`](https://github.com/gnodet)
> * feat: support in-band window resize notifications (mode 2048) ([#2021](https://redirect.github.com/jline/jline3/pull/2021)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add JdkConsoleProvider for drop-in JLine console ([#2031](https://redirect.github.com/jline/jline3/pull/2031)) [`@​gnodet`](https://github.com/gnodet)
> * feat: verify macOS native library signatures in CI ([#2173](https://redirect.github.com/jline/jline3/pull/2173)) [`@​gnodet`](https://github.com/gnodet)
> * feat: allow customizing the help source in Less pager (fixes [#2056](https://redirect.github.com/jline/jline3/issues/2056)) ([#2065](https://redirect.github.com/jline/jline3/pull/2065)) [`@​gnodet`](https://github.com/gnodet)
> * feat: full synchronized output (mode 2026) support ([#2022](https://redirect.github.com/jline/jline3/pull/2022)) [`@​gnodet`](https://github.com/gnodet)
> * refactor: batch DEC mode probing into single DECRQM round-trip ([#2023](https://redirect.github.com/jline/jline3/pull/2023)) [`@​gnodet`](https://github.com/gnodet)
> * feat: allow customizing the default prompt in Less pager ([#2036](https://redirect.github.com/jline/jline3/pull/2036)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add factory to simplify LineDisciplineTerminal + ScreenTerminal wiring ([#2035](https://redirect.github.com/jline/jline3/pull/2035)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add AttributedStringBuilder.appendCodePoint(int) ([#2163](https://redirect.github.com/jline/jline3/pull/2163)) [`@​gnodet`](https://github.com/gnodet)
> * Enable reproducible builds from source archives ([#2151](https://redirect.github.com/jline/jline3/pull/2151)) [`@​gnodet`](https://github.com/gnodet)
> * Add Terminal.getenv() for remote terminal environment support ([#2030](https://redirect.github.com/jline/jline3/pull/2030)) [`@​gnodet`](https://github.com/gnodet)
>
> 🐛 Bug Fixes
> -----------
>
> * fix: remove eval from MVX demo launchers (fixes [#2191](https://redirect.github.com/jline/jline3/issues/2191)) ([#2193](https://redirect.github.com/jline/jline3/pull/2193)) [`@​gnodet`](https://github.com/gnodet)
> * fix: DefaultHistory.read() records per-file entry count instead of total (fixes [#2179](https://redirect.github.com/jline/jline3/issues/2179)) ([#2194](https://redirect.github.com/jline/jline3/pull/2194)) [`@​gnodet`](https://github.com/gnodet)
> * fix: handle IOError in BindingReader gracefully instead of crashing (fixes [#2155](https://redirect.github.com/jline/jline3/issues/2155)) ([#2195](https://redirect.github.com/jline/jline3/pull/2195)) [`@​gnodet`](https://github.com/gnodet)
> * fix: lower native library candidate log level from WARNING to DEBUG (fixes [#2185](https://redirect.github.com/jline/jline3/issues/2185)) ([#2192](https://redirect.github.com/jline/jline3/pull/2192)) [`@​gnodet`](https://github.com/gnodet)
> * fix: reimplement FFM signal handling with self-pipe trick (fixes [#2139](https://redirect.github.com/jline/jline3/issues/2139)) ([#2141](https://redirect.github.com/jline/jline3/pull/2141)) [`@​gnodet`](https://github.com/gnodet)
> * fix: add software signal interception to Windows terminals (fixes [#2127](https://redirect.github.com/jline/jline3/issues/2127)) ([#2148](https://redirect.github.com/jline/jline3/pull/2148)) [`@​gnodet`](https://github.com/gnodet)
> * fix: escape control chars in oversized line-buffer display ([#2175](https://redirect.github.com/jline/jline3/pull/2175)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: escape IAC byte in the telnet data output stream ([#2164](https://redirect.github.com/jline/jline3/pull/2164)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: strip control characters from Less status messages ([#2156](https://redirect.github.com/jline/jline3/pull/2156)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: preserve termios baud rate when setting attributes ([#2170](https://redirect.github.com/jline/jline3/issues/2170)) ([#2172](https://redirect.github.com/jline/jline3/pull/2172)) [`@​arimu1`](https://github.com/arimu1)
> * fix: mask password value in DefaultPrompter result display ([#2167](https://redirect.github.com/jline/jline3/pull/2167)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)

... (truncated)


Commits

* [`57f82ce`](jline/jline3@57f82ce) fix: preserve pending buffer and message during Less resize
* [`f21f332`](jline/jline3@f21f332) fix: enforce dimension bounds in InBandResize.applyResizeParams
* [`1c3801c`](jline/jline3@1c3801c) test: add unit tests for InBandResize utility, fix resize aborting Less file ...
* [`6be4759`](jline/jline3@6be4759) fix: address SonarCloud issues — rename Binding enum to UPPER\_SNAKE\_CASE, red...
* [`571f0fe`](jline/jline3@571f0fe) feat: support in-band resize (mode 2048) in Nano, Less, and Tmux builtins (fi...
* [`6e02fe4`](jline/jline3@6e02fe4) feat: add musl libc support for native libraries (fixes [#1092](https://redirect.github.com/jline/jline3/issues/1092))
* [`11f9346`](jline/jline3@11f9346) fix: remove eval from MVX demo launchers (fixes [#2191](https://redirect.github.com/jline/jline3/issues/2191))
* [`a701558`](jline/jline3@a701558) feat: add Kitty Keyboard Protocol support (fixes [#1217](https://redirect.github.com/jline/jline3/issues/1217))
* [`c7170ea`](jline/jline3@c7170ea) fix: DefaultHistory.read() records per-file entry count instead of total (fix...
* [`e5202a3`](jline/jline3@e5202a3) feat: add configurable behavior for too many completion candidates (fixes [#2154](https://redirect.github.com/jline/jline3/issues/2154))
* Additional commits viewable in [compare view](jline/jline3@4.3.1...4.4.0)
  
Updates `org.jline:jline-terminal-jni` from 4.3.1 to 4.4.0
Release notes

*Sourced from [org.jline:jline-terminal-jni's releases](https://github.com/jline/jline3/releases).*

> JLine 4.4.0 is a feature-rich release bringing modern terminal protocol support, broader platform compatibility, and continued security hardening.
>
> **Highlights:**
>
> * **Kitty Keyboard Protocol** — full support for the [Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/), enabling unambiguous key event reporting ([#2007](https://redirect.github.com/jline/jline3/issues/2007))
> * **In-band window resize** — support for mode 2048 resize notifications across the terminal, reader, and builtins (Nano, Less, Tmux) ([#2021](https://redirect.github.com/jline/jline3/issues/2021), [#2198](https://redirect.github.com/jline/jline3/issues/2198))
> * **Synchronized output** — full mode 2026 support to eliminate flicker during rapid screen updates ([#2022](https://redirect.github.com/jline/jline3/issues/2022))
> * **musl libc support** — native libraries now load on Alpine and other musl-based distributions ([#2197](https://redirect.github.com/jline/jline3/issues/2197))
> * **JdkConsoleProvider** — drop-in JLine console that can replace `System.console()` ([#2031](https://redirect.github.com/jline/jline3/issues/2031))
> * **Reproducible builds** — source archives can now be built without a git checkout, thanks to nisse property fallbacks ([#2151](https://redirect.github.com/jline/jline3/issues/2151), [#2153](https://redirect.github.com/jline/jline3/issues/2153))
> * **Security hardening** — path traversal guards, ReDoS protection, cross-origin rejection, control character stripping, and SSH agent forwarding tightened across multiple modules
> * **FFM signal handling rewrite** — replaced shared Arena with self-pipe trick for reliable signal delivery ([#2141](https://redirect.github.com/jline/jline3/issues/2141))
>
> ⚠️ **Breaking:** the ambiguous key binding timeout has been reduced from 1000ms to 100ms ([#2186](https://redirect.github.com/jline/jline3/issues/2186)), and SSH agent forwarding now requires the explicit `-A` flag ([#2106](https://redirect.github.com/jline/jline3/issues/2106)).
>
> 💥 Breaking changes
> -----------------------
>
> * fix: reduce ambiguous binding timeout from 1000ms to 100ms ([#2186](https://redirect.github.com/jline/jline3/pull/2186)) [`@​gnodet`](https://github.com/gnodet)
> * fix: only forward the ssh agent when -A is given ([#2106](https://redirect.github.com/jline/jline3/pull/2106)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
>
> 🚀 New features and improvements
> -------------------------------
>
> * feat: support in-band resize (mode 2048) in Nano, Less, and Tmux builtins ([#2198](https://redirect.github.com/jline/jline3/pull/2198)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add musl libc support for native libraries ([#2197](https://redirect.github.com/jline/jline3/pull/2197)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add Kitty Keyboard Protocol support ([#2007](https://redirect.github.com/jline/jline3/pull/2007)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add configurable behavior for too many completion candidates (fixes [#2154](https://redirect.github.com/jline/jline3/issues/2154)) ([#2196](https://redirect.github.com/jline/jline3/pull/2196)) [`@​gnodet`](https://github.com/gnodet)
> * feat: support in-band window resize notifications (mode 2048) ([#2021](https://redirect.github.com/jline/jline3/pull/2021)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add JdkConsoleProvider for drop-in JLine console ([#2031](https://redirect.github.com/jline/jline3/pull/2031)) [`@​gnodet`](https://github.com/gnodet)
> * feat: verify macOS native library signatures in CI ([#2173](https://redirect.github.com/jline/jline3/pull/2173)) [`@​gnodet`](https://github.com/gnodet)
> * feat: allow customizing the help source in Less pager (fixes [#2056](https://redirect.github.com/jline/jline3/issues/2056)) ([#2065](https://redirect.github.com/jline/jline3/pull/2065)) [`@​gnodet`](https://github.com/gnodet)
> * feat: full synchronized output (mode 2026) support ([#2022](https://redirect.github.com/jline/jline3/pull/2022)) [`@​gnodet`](https://github.com/gnodet)
> * refactor: batch DEC mode probing into single DECRQM round-trip ([#2023](https://redirect.github.com/jline/jline3/pull/2023)) [`@​gnodet`](https://github.com/gnodet)
> * feat: allow customizing the default prompt in Less pager ([#2036](https://redirect.github.com/jline/jline3/pull/2036)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add factory to simplify LineDisciplineTerminal + ScreenTerminal wiring ([#2035](https://redirect.github.com/jline/jline3/pull/2035)) [`@​gnodet`](https://github.com/gnodet)
> * feat: add AttributedStringBuilder.appendCodePoint(int) ([#2163](https://redirect.github.com/jline/jline3/pull/2163)) [`@​gnodet`](https://github.com/gnodet)
> * Enable reproducible builds from source archives ([#2151](https://redirect.github.com/jline/jline3/pull/2151)) [`@​gnodet`](https://github.com/gnodet)
> * Add Terminal.getenv() for remote terminal environment support ([#2030](https://redirect.github.com/jline/jline3/pull/2030)) [`@​gnodet`](https://github.com/gnodet)
>
> 🐛 Bug Fixes
> -----------
>
> * fix: remove eval from MVX demo launchers (fixes [#2191](https://redirect.github.com/jline/jline3/issues/2191)) ([#2193](https://redirect.github.com/jline/jline3/pull/2193)) [`@​gnodet`](https://github.com/gnodet)
> * fix: DefaultHistory.read() records per-file entry count instead of total (fixes [#2179](https://redirect.github.com/jline/jline3/issues/2179)) ([#2194](https://redirect.github.com/jline/jline3/pull/2194)) [`@​gnodet`](https://github.com/gnodet)
> * fix: handle IOError in BindingReader gracefully instead of crashing (fixes [#2155](https://redirect.github.com/jline/jline3/issues/2155)) ([#2195](https://redirect.github.com/jline/jline3/pull/2195)) [`@​gnodet`](https://github.com/gnodet)
> * fix: lower native library candidate log level from WARNING to DEBUG (fixes [#2185](https://redirect.github.com/jline/jline3/issues/2185)) ([#2192](https://redirect.github.com/jline/jline3/pull/2192)) [`@​gnodet`](https://github.com/gnodet)
> * fix: reimplement FFM signal handling with self-pipe trick (fixes [#2139](https://redirect.github.com/jline/jline3/issues/2139)) ([#2141](https://redirect.github.com/jline/jline3/pull/2141)) [`@​gnodet`](https://github.com/gnodet)
> * fix: add software signal interception to Windows terminals (fixes [#2127](https://redirect.github.com/jline/jline3/issues/2127)) ([#2148](https://redirect.github.com/jline/jline3/pull/2148)) [`@​gnodet`](https://github.com/gnodet)
> * fix: escape control chars in oversized line-buffer display ([#2175](https://redirect.github.com/jline/jline3/pull/2175)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: escape IAC byte in the telnet data output stream ([#2164](https://redirect.github.com/jline/jline3/pull/2164)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: strip control characters from Less status messages ([#2156](https://redirect.github.com/jline/jline3/pull/2156)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)
> * fix: preserve termios baud rate when setting attributes ([#2170](https://redirect.github.com/jline/jline3/issues/2170)) ([#2172](https://redirect.github.com/jline/jline3/pull/2172)) [`@​arimu1`](https://github.com/arimu1)
> * fix: mask password value in DefaultPrompter result display ([#2167](https://redirect.github.com/jline/jline3/pull/2167)) [`@​uchiha-bug-hunter`](https://github.com/uchiha-bug-hunter)

... (truncated)


Commits

* [`57f82ce`](jline/jline3@57f82ce) fix: preserve pending buffer and message during Less resize
* [`f21f332`](jline/jline3@f21f332) fix: enforce dimension bounds in InBandResize.applyResizeParams
* [`1c3801c`](jline/jline3@1c3801c) test: add unit tests for InBandResize utility, fix resize aborting Less file ...
* [`6be4759`](jline/jline3@6be4759) fix: address SonarCloud issues — rename Binding enum to UPPER\_SNAKE\_CASE, red...
* [`571f0fe`](jline/jline3@571f0fe) feat: support in-band resize (mode 2048) in Nano, Less, and Tmux builtins (fi...
* [`6e02fe4`](jline/jline3@6e02fe4) feat: add musl libc support for native libraries (fixes [#1092](https://redirect.github.com/jline/jline3/issues/1092))
* [`11f9346`](jline/jline3@11f9346) fix: remove eval from MVX demo launchers (fixes [#2191](https://redirect.github.com/jline/jline3/issues/2191))
* [`a701558`](jline/jline3@a701558) feat: add Kitty Keyboard Protocol support (fixes [#1217](https://redirect.github.com/jline/jline3/issues/1217))
* [`c7170ea`](jline/jline3@c7170ea) fix: DefaultHistory.read() records per-file entry count instead of total (fix...
* [`e5202a3`](jline/jline3@e5202a3) feat: add configurable behavior for too many completion candidates (fixes [#2154](https://redirect.github.com/jline/jline3/issues/2154))
* Additional commits viewable in [compare view](jline/jline3@4.3.1...4.4.0)
  
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@gramian gramian Awaiting requested review from gramian
@lvca lvca Awaiting requested review from lvca

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@robfrank robfrank

Labels

None yet

Projects

None yet

Milestone

25.5.1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@robfrank @gramian
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.