Repository navigation
Version 2.13.0
Project
Added
- Every page of the API reference links back from its header to the landing page.
examples/console-app, a command-line census on the client, the scanner and the migrator with no framework around
them.
Changed
examples/spring-appkeeps senators instead of users and has a README with its endpoints and how to run it.
POST /senatorstakes an emptycountryEstates, where it answered with a 500.
Driver
Added
-
OAuth login: under an
oauthline ofpg_hba.confthe driver sends, only over TLS, the bearer token
anOAuthTokenProvidergives, set asoauthTokenProvideroroauthTokenProviderClassName. It never
asks the server for an issuer or a scope. -
TOKEN_PROVIDER_FAILEDinInitializationExceptionReason: the token provider could not be loaded, threw, or gave
something that is not a bearer token. -
sslNegotiation = DIRECT(sslnegotiation=direct) starts the TLS handshake without anSSLRequest, as libpq does:
a round trip less for every connection and cancel request. It needssslModeofREQUIREor stronger.
Changed
-
[BREAKING]
UNSUPPORTED_PASSWORD_ENCRYPTIONis renamedWITHHELD_CREDENTIALS, since it covers an OAuth token
as well as a password. -
[BREAKING]
TransactionManager, the type ofsession.transaction, is renamedTransactionBlocks. Only code
that names the type changes. -
[BREAKING] Three loggers have new names under
io.github.octaviusframework.driver, which still configures the
lot:initialization.OctaviusConnectionFactory, where it wasjdbc.OctaviusConnectionFactory.transaction.TransactionControlfor transactions and savepoints, which were underjdbc.OctaviusConnection.transaction.TransactionBlocks, where it wastransaction.TransactionManager.
Fixed
-
A SCRAM login with a password that SASLprep changes succeeds, such as one with a no-break space, a soft hyphen or a
full-width letter. It failed withSERVER_REJECTED_CREDENTIALS. -
A SCRAM server-first message with an iteration count below one or a bad salt fails the login with
PROTOCOL_VIOLATION, where it escaped as anIllegalArgumentException. -
The server's final SCRAM signature is compared in constant time, as libpq has compared it since CVE-2026-6478. The
old comparison leaked nothing a server could use. -
A row, a composite or a
ROW(...)read as aMapwhose value type is not nullable fails with
MappingException(REQUIRED_ATTRIBUTE_MISSING)at aNULL, which the map used to hold. -
A bound of a
RangeorMultiRangeparameter goes through the converter chain as an array element does. A bound
of a class the subtype does not take fails withMappingException(NO_CONVERTER_FOUND), where it was a
CodecException. -
A failure converting a range bound, read or sent, has
lowerorupperon its path. -
A result converter that returns the wrong class for an array element fails with
MappingException(CONVERSION_ERROR),
where the caller got aClassCastExceptionat the first read. -
A connection refused TLS under
sslmode=requireor stronger no longer makes the server log an invalid startup
packet. -
A login that does not report
server_versionfails withMISSING_PROTOCOL_PARAMETER, so a server older than
PostgreSQL 18 behind a pooler that drops the parameter is refused. -
The
@namescan andSqlScript.split, which cuts migration scripts into statements, read dollar-quote tags outside
ASCII, a name ending inEbefore a literal, anE'...'literal continued on the next line and a name holding$
as PostgreSQL's lexer does.
Migrations
Fixed
migrate()logs no "already exists, skipping" notices for its history table, which every start after the first
logged atinfo.