From: Christian Ullrich <chris@chrullrich.net>
To: pgsql-jdbc@postgresql.org
Subject: Support waffle>1.7.4
Date: Tue, 12 Apr 2016 19:51:49 +0200
Message-ID: <nejcjl$19e$1@ger.gmane.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Hello,
while lately discussion has mostly been about how to exclude waffle from
the non-Windows build, I would like to request an update in the other
direction. Last November, waffle-jna 1.7.5 was released, containing an
incompatible API change that is also present in all released 1.8
versions. The fix is simple; as far as the code goes, it is a one-line
patch. What incantations may be required on the Maven side, I do not know.
The API change was made as part of fixing a handle leak [1].
Applying this patch raises the minimum required waffle version to 1.7.5
or 1.8.0.
Thank you.
[1] <https://github.com/dblock/waffle/pull/239;
--
Christian
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbcAttachments:0001-Track-API-change-in-Waffle-1.7.4.patch (text/plain, 1.1K) download
From 4a3bee8187ce71baaf3f7fdf2fff3b0d4a5c2677 Mon Sep 17 00:00:00 2001
From: Christian Ullrich <chris@chrullrich.net>
Date: Tue, 12 Apr 2016 19:43:09 +0200
Subject: [PATCH] Track API change in Waffle > 1.7.4.
---
pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java b/pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.javaindex de92a2d..74870eb 100644--- a/pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java+++ b/pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java@@ -160,7 +160,7 @@ public class SSPIClient {
sspiContext = new WindowsSecurityContextImpl();
sspiContext.setPrincipalName(targetName);
- sspiContext.setCredentialsHandle(clientCredentials.getHandle());+ sspiContext.setCredentialsHandle(clientCredentials);
sspiContext.setSecurityPackage(securityPackage);
sspiContext.initialize(null, null, targetName);
} catch (Win32Exception ex) {
--
2.7.0.windows.1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: chris@chrullrich.net
Subject: Re: Support waffle>1.7.4
In-Reply-To: <nejcjl$19e$1@ger.gmane.org>
References: <nejcjl$19e$1@ger.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox