Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aK5Bc-0008MS-Rf for pgsql-jdbc@arkaria.postgresql.org; Fri, 15 Jan 2016 14:17:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aK5Bc-0008NG-EL for pgsql-jdbc@arkaria.postgresql.org; Fri, 15 Jan 2016 14:17:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aK5B7-0007ep-HZ for pgsql-jdbc@postgresql.org; Fri, 15 Jan 2016 14:16:37 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aK5B4-0000OT-O0 for pgsql-jdbc@postgresql.org; Fri, 15 Jan 2016 14:16:36 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 1FECFC0B89C3; Fri, 15 Jan 2016 14:16:32 +0000 (UTC) Received: from [10.32.224.187] (dhcp-1-187.lcy.redhat.com [10.32.224.187]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0FEGVDL024672; Fri, 15 Jan 2016 09:16:32 -0500 Subject: Re: Connection to PgSQL does not use SSL with JDBC driver 9.4 if the parameter is passed through Properties rather than URL To: Matthieu SANCHEZ References: Cc: Vladimir Sitnikov , "pgsql-jdbc@postgresql.org" From: Jeremy Whiting X-Enigmail-Draft-Status: N1110 Message-ID: <5698FF3F.4000104@redhat.com> Date: Fri, 15 Jan 2016 14:16:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 15/01/16 10:24, Vladimir Sitnikov wrote: > Hi, > > This sounds like a bug. > Can you file a PR? > Vladimir > > Hi, Take a look at this PR [1]. It fixed a regression released in 1205 release. The PR solved the problem of API calls to Driver.setLogLevel(int) not getting overwritten by a default value being loaded in PgConnection at line 187 [2]. It's good this has been raised though and a PR necessary to fix. The change could go here [3] to adapt to the semantic change of isPresent method. Now it does not fall back to the default. Jeremy [1] https://github.com/pgjdbc/pgjdbc/pull/438 [2] https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java#L187 [3] https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java#L79 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc