Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U26S2-00074Z-7q for pgsql-jdbc@arkaria.postgresql.org; Sun, 03 Feb 2013 20:46:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U26S1-0008Jv-At for pgsql-jdbc@arkaria.postgresql.org; Sun, 03 Feb 2013 20:46:09 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U26S0-0008Jp-Gw for pgsql-jdbc@postgresql.org; Sun, 03 Feb 2013 20:46:08 +0000 Received: from outbound.vnet-inc.com ([216.146.104.103]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U26Rw-0001AQ-Nd for pgsql-jdbc@postgresql.org; Sun, 03 Feb 2013 20:46:07 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id 5512F59DD; Sun, 3 Feb 2013 13:46:04 -0700 (MST) Message-ID: <510ECC43.3020008@ttc-cmc.net> Date: Sun, 03 Feb 2013 13:44:51 -0700 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: Chen Huajun , pgsql-jdbc@postgresql.org Subject: Re: [BUGS]log can not be output when use DataSource 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> <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> <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> In-Reply-To: <510DD9F0.5070403@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.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 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