pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sehrope Sarkuni <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] cd0b55: Add connection property to limit server error deta...
Date: Thu, 14 Nov 2019 06:13:22 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/c99ed1-cd0b55@github.com> (raw)

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: cd0b555c8045fc71e6f4d0fb0f24a2deb726301e
      https://github.com/pgjdbc/pgjdbc/commit/cd0b555c8045fc71e6f4d0fb0f24a2deb726301e
  Author: Sehrope Sarkuni <sehrope@jackdb.com>
  Date:   2019-11-14 (Thu, 14 Nov 2019)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/PGProperty.java
    M pgjdbc/src/main/java/org/postgresql/core/QueryExecutorBase.java
    M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java
    M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
    M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
    M pgjdbc/src/main/java/org/postgresql/gss/GssAction.java
    M pgjdbc/src/main/java/org/postgresql/gss/MakeGSS.java
    M pgjdbc/src/main/java/org/postgresql/util/PSQLException.java
    M pgjdbc/src/main/java/org/postgresql/util/ServerErrorMessage.java
    A pgjdbc/src/test/java/org/postgresql/test/core/LogServerMessagePropertyTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java

  Log Message:
  -----------
  Add connection property to limit server error detail in exception exceptions (#1579)

* feat: Add connection property to limit server error detail in exception messages

Adds a boolean connection property, LOG_SERVER_MESSAGE_DETAIL ("logServerMessage") that
controls whether the full error detail, as reported back by the server, is included in
the exception messages. This property can be used to limit potentially sensitive content
in server messages from bubbling up in exception messages and stack traces.

If set to "false" then only the top level error will be included in the exception message.
If set to "true" then all details in the server error will be included.

Default value for the new property is "true" to reflect the prior behavior of logging the
full error detail.

Closes #1577

* fix: Add getter and setter for LOG_SERVER_ERROR_DETAIL to BaseDataSource

* test: Add test for logServerErrorDetail connection property







Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/c99ed1-cd0b55@github.com>
Permalink:  ../pgjdbc%2Fpgjdbc%2Fpush%2Frefs%2Fheads%2Fmaster%2Fc99ed1-cd0b55@github.com/
Also on:    postgresql.org/message-id/pgjdbc/pgjdbc/push/refs/heads/master/c99ed1-cd0b55@github.com

 · 

reply

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: noreply@github.com
  Subject: Re: [pgjdbc/pgjdbc] cd0b55: Add connection property to limit server error deta...
  In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/c99ed1-cd0b55@github.com>
  References: <pgjdbc/pgjdbc/push/refs/heads/master/c99ed1-cd0b55@github.com>

* 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