pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chen Huajun <chenhj@cn.fujitsu.com>
To: dmp <danap@ttc-cmc.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [BUGS]log can not be output when use DataSource
Date: Mon, 04 Feb 2013 10:28:33 +0800
Message-ID: <510F1CD1.3060608@cn.fujitsu.com> (raw)
In-Reply-To: <510ECC43.3020008@ttc-cmc.net>
References: <50F8335B.6070404@ttc-cmc.net>
	<50FA1403.7020301@cn.fujitsu.com>
	<50FAF98A.1030008@ttc-cmc.net>
	<50FBCA78.3040007@cn.fujitsu.com>
	<50FC3529.3060101@ttc-cmc.net>
	<50FCC7EC.7050307@cn.fujitsu.com>
	<50FD1818.8060002@cn.fujitsu.com>
	<CADK3HHJ71-or6kcrg8YytLJc00ZU6M7LRkAdvqhgK1U1d=EsiA@mail.gmail.com>
	<50FD379F.1020304@cn.fujitsu.com>
	<50FD7094.9050104@ttc-cmc.net>
	<50FFEB3C.5050700@cn.fujitsu.com>
	<51002D8E.9040905@ttc-cmc.net>
	<510660C5.1080801@cn.fujitsu.com>
	<CADK3HHLYUL52uSg37E_0a8R-W-n1V7r0KpwGQ2Hnw__OtQRqCQ@mail.gmail.com>
	<5106BB52.5000203@ttc-cmc.net>
	<51076176.5070800@cn.fujitsu.com>
	<51080592.5080904@ttc-cmc.net>
	<510D5247.5030508@cn.fujitsu.com>
	<510DCC36.5000207@ttc-cmc.net>
	<510DD9F0.5070403@cn.fujitsu.com>
	<510ECC43.3020008@ttc-cmc.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

danap,

 > 5. getURL() - Changed from private to public, Why?, DriverManager Contains
 > no such public method nor Does the Java API define for interface
 > DataSource,
 > OK???

The changing is just for testing.
It is also useful to compare two DataSource(for instance one is a copy of another )
But if just for testing,now i have an another idea,
implementing toString() method which just call getURL().
What about that?

 > 6. user & password - Even if 5. approved public why would these be open to
 > a public interface for returning these values with URL. In a basic
 > instinct I feel this is security risk.
 > NOT OK

oh,they are not needed just as you said.
Sorry,i failed to understood your reply.
 > in getURL(). The properties user & password are included in getConnection()
 > and therefore do not not need to be in getURL().

Chen Huajun
(2013/02/04 4:44), dmp wrote:
> Review for patch:
>
> org/postgresql/ds/common/BaseDataSource:
>
> 1. databaseName - Was null possibly so getURL(), getReference(), &
> writeBaseObject() checked,
> OK
>
> 2. binaryTransferEnable/Disable - Same as databaseName for writeBaseObject(),
> OK
>
> 3. logLevelSet - Needed to Address Bug this patch applies to directly,
> OK
>
> 4. receiveBufferSize & sendBufferSize - Addresses lack of getter Methods,
> OK
>
> 5. getURL() - Changed from private to public, Why?, DriverManager Contains
> no such public method nor Does the Java API define for interface
> DataSource,
> OK???
>
> 6. user & password - Even if 5. approved public why would these be open to
> a public interface for returning these values with URL. In a basic
> instinct I feel this is security risk.
> NOT OK
>
> 7. sslFactory - Proper check for null in getReference(),
> OK
>
> 8. applicationName - Proper check for null in getReference(),
> OK
>
> org/postgresql/test/jdbc2/optional/BaseDataSourceTest:
>
> 1. I'm not proficient with JUnit, but appears to add testing for getURL()
> in 5. above. If that is not approved then test suite addition is
> not needed.
> OK?
>
> danap
>
> Chen Huajun wrote:
>> danap,
>>
>> Please use the new patch.
>> I add a test case,and fixed a mistake in the old one.
>>
>> Chen Huajun
>> (2013/02/03 10:32), dmp wrote:
>>> Hello,
>>>
>>> I can review this tomorrow and get back by Monday, or sooner.
>>>
>>> danap.
>>>
>>> Chen Huajun wrote:
>>>> Hi
>>>>
>>>> I have made a new patch for BaseDataSource ,please check it.
>>>> Some modifications in getReference() is just for keeping
>>>> the same style to other String parameters .
>>>>
>>>> Chen Huajun
>
>




-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (30+ messages)  latest in thread

Message-ID: <510F1CD1.3060608@cn.fujitsu.com>
Permalink:  ../510F1CD1.3060608@cn.fujitsu.com/
Also on:    postgresql.org/message-id/510F1CD1.3060608@cn.fujitsu.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: chenhj@cn.fujitsu.com, danap@ttc-cmc.net
  Subject: Re: [BUGS]log can not be output when use DataSource
  In-Reply-To: <510F1CD1.3060608@cn.fujitsu.com>
  References: <50F8335B.6070404@ttc-cmc.net> <50FA1403.7020301@cn.fujitsu.com> <50FAF98A.1030008@ttc-cmc.net> <50FBCA78.3040007@cn.fujitsu.com> <50FC3529.3060101@ttc-cmc.net> <50FCC7EC.7050307@cn.fujitsu.com> <50FD1818.8060002@cn.fujitsu.com> <CADK3HHJ71-or6kcrg8YytLJc00ZU6M7LRkAdvqhgK1U1d=EsiA@mail.gmail.com> <50FD379F.1020304@cn.fujitsu.com> <50FD7094.9050104@ttc-cmc.net> <50FFEB3C.5050700@cn.fujitsu.com> <51002D8E.9040905@ttc-cmc.net> <510660C5.1080801@cn.fujitsu.com> <CADK3HHLYUL52uSg37E_0a8R-W-n1V7r0KpwGQ2Hnw__OtQRqCQ@mail.gmail.com> <5106BB52.5000203@ttc-cmc.net> <51076176.5070800@cn.fujitsu.com> <51080592.5080904@ttc-cmc.net> <510D5247.5030508@cn.fujitsu.com> <510DCC36.5000207@ttc-cmc.net> <510DD9F0.5070403@cn.fujitsu.com> <510ECC43.3020008@ttc-cmc.net> <510F1CD1.3060608@cn.fujitsu.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