Skip to content

Version 2.13.0

Choose a tag to compare

@CaesarAugustus27 CaesarAugustus27 released this 28 Nov 11:28
· 41 commits to master since this release

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-app keeps senators instead of users and has a README with its endpoints and how to run it.
    POST /senators takes an empty countryEstates, where it answered with a 500.

Driver

Added

  • OAuth login: under an oauth line of pg_hba.conf the driver sends, only over TLS, the bearer token
    an OAuthTokenProvider gives, set as oauthTokenProvider or oauthTokenProviderClassName. It never
    asks the server for an issuer or a scope.

  • TOKEN_PROVIDER_FAILED in InitializationExceptionReason: 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 an SSLRequest, as libpq does:
    a round trip less for every connection and cancel request. It needs sslMode of REQUIRE or stronger.

Changed

  • [BREAKING] UNSUPPORTED_PASSWORD_ENCRYPTION is renamed WITHHELD_CREDENTIALS, since it covers an OAuth token
    as well as a password.

  • [BREAKING] TransactionManager, the type of session.transaction, is renamed TransactionBlocks. 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 was jdbc.OctaviusConnectionFactory.
    • transaction.TransactionControl for transactions and savepoints, which were under jdbc.OctaviusConnection.
    • transaction.TransactionBlocks, where it was transaction.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 with SERVER_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 an IllegalArgumentException.

  • 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 a Map whose value type is not nullable fails with
    MappingException(REQUIRED_ATTRIBUTE_MISSING) at a NULL, which the map used to hold.

  • A bound of a Range or MultiRange parameter goes through the converter chain as an array element does. A bound
    of a class the subtype does not take fails with MappingException(NO_CONVERTER_FOUND), where it was a
    CodecException.

  • A failure converting a range bound, read or sent, has lower or upper on its path.

  • A result converter that returns the wrong class for an array element fails with MappingException(CONVERSION_ERROR),
    where the caller got a ClassCastException at the first read.

  • A connection refused TLS under sslmode=require or stronger no longer makes the server log an invalid startup
    packet.

  • A login that does not report server_version fails with MISSING_PROTOCOL_PARAMETER, so a server older than
    PostgreSQL 18 behind a pooler that drops the parameter is refused.

  • The @name scan and SqlScript.split, which cuts migration scripts into statements, read dollar-quote tags outside
    ASCII, a name ending in E before a literal, an E'...' 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 at info.