Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 74963 invoked from network); 21 Jun 2006 22:04:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2006 22:04:57 -0000 Received: (qmail 41693 invoked by uid 500); 21 Jun 2006 22:04:56 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 41662 invoked by uid 500); 21 Jun 2006 22:04:56 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 41653 invoked by uid 99); 21 Jun 2006 22:04:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2006 15:04:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2006 15:04:55 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A06DD410006 for ; Wed, 21 Jun 2006 22:03:30 +0000 (GMT) Message-ID: <32634111.1150927410654.JavaMail.jira@brutus> Date: Wed, 21 Jun 2006 22:03:30 +0000 (GMT+00:00) From: "A B (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1434) Client can send incorrect database name to server after having made multiple connections to different databases. In-Reply-To: <6507467.1150926929896.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1434?page=all ] A B updated DERBY-1434: ----------------------- Attachment: d1434.java _driver_1 Server2.trace Attaching a simple repro of the problem. To run, start the server with tracing on: > java -Dderby.drda.traceAll=true org.apache.derby.drda.NetworkServerControl start -p 1527 & Then run the repro: > java d1434 A look at the client trace in _driver_1 shows that the client is sending "SECONDDB_2" for the authentication phase--i.e. for the EXCSAT, ACCSEC, SECCHK, and ACCRDB codepoints--but then it's sending "FIRSTDB_1" for the EXCSQLIMM codepoint. However, a look at the the actual Connection object name shows that it is (correctly) the connection object for SECONDDB_2--so the connection is correct, but the database name is wrong. And a look at the server trace (Server2.trace) shows that the server is in fact receiving the wrong database name. I've attached the server and client traces for the repro when run against 10.1. > Client can send incorrect database name to server after having made multiple connections to different databases. > ---------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1434 > URL: http://issues.apache.org/jira/browse/DERBY-1434 > Project: Derby > Type: Bug > Components: Network Client > Versions: 10.2.0.0, 10.1.3.0, 10.1.2.5 > Reporter: A B > Priority: Minor > Fix For: 10.2.0.0 > Attachments: Server2.trace, _driver_1, d1434.java > > I have a simple program that connects to a database using the Derby Client, executes a simple query, then connects to a different database using a different Connection object and executes another simple query on that second connection. The queries both execute without error, so it appears that the connections are correct--i.e. each query will only work on one of the databases, and both queries work, therefore each must be getting executed against the correct database. > But in looking at the client and server traces, I noticed that for the query on the second database, the client is actually sending the name of the *first* database as RDBNAM, which (I think?) is wrong--it should be sending the name of the second database, since the query is being executed on the second Connection object. > This behavior does not appear to occur for JCC. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira