[pgjdbc/pgjdbc] 97f6ab: test: set gssEncMode only in case it is not alread...

From: Vladimir Sitnikov <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 97f6ab: test: set gssEncMode only in case it is not alread...
Date: 2021-01-10 20:27:33
Message-ID: pgjdbc/pgjdbc/push/refs/heads/release/42.2/2df6c9-b7e70d@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/release/42.2
Home: https://github.com/pgjdbc/pgjdbc
Commit: 97f6abd1c8cc16af4056bceccc3c1f52faa27c02
https://github.com/pgjdbc/pgjdbc/commit/97f6abd1c8cc16af4056bceccc3c1f52faa27c02
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2021-01-10 (Sun, 10 Jan 2021)

Changed paths:
M build.gradle.kts
M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
M pgjdbc/src/test/java/org/postgresql/test/ssl/SslTest.java

Log Message:
-----------
test: set gssEncMode only in case it is not already present in Properties

Previously TestUtil always overwrited gssEncMode.

Commit: 5f584cd4a5c2f19a526874e14c66fad4ab1b2d79
https://github.com/pgjdbc/pgjdbc/commit/5f584cd4a5c2f19a526874e14c66fad4ab1b2d79
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2021-01-10 (Sun, 10 Jan 2021)

Changed paths:
M pgjdbc/src/test/java/org/postgresql/test/ssl/SslTest.java

Log Message:
-----------
test: temporarily allow CONNECTION_UNABLE_TO_CONNECT in SslTest for bad client certificates

Java 11 does not drain input stream completely during the handshake,
so alert("bad client certificate") is not received until pgjdbc sends
the startup message, which is too late.

So we allow a generic CONNECTION_UNABLE_TO_CONNECT code for "bad client certificate"
case.

Commit: b7e70d856276ff75dc487bc20694c7ff5ddebbaa
https://github.com/pgjdbc/pgjdbc/commit/b7e70d856276ff75dc487bc20694c7ff5ddebbaa
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2021-01-10 (Sun, 10 Jan 2021)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/core/PGStream.java

Log Message:
-----------
perf: avoid duplicate PGStream#changeSocket calls

Typical usages are changeSocket(createSocket()), so changeSocket
should not be called from createSocket().

Compare: https://github.com/pgjdbc/pgjdbc/compare/2df6c97b6b4a...b7e70d856276

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2021-01-10 20:31:42 [pgjdbc/pgjdbc] 7ffb13: chore: verify code via forbidden-apis (jdk-interna...
Previous Message Vladimir Sitnikov 2021-01-10 20:27:16 [pgjdbc/pgjdbc] 2df6c9: fix: "Required class information missing" when old...