/[Apache-SVN]
ViewVC logotype

Revision 292917


Jump to revision: Previous Next
Author: kmarsden
Date: Sat Oct 1 04:30:43 2005 UTC (4 years, 1 month ago)
Changed paths: 7
Log Message:
DERBY-374

Invalid URL with Derby Client when connecting to Network Server causes protocol exception.

This patch does the following:

1. Network server used to give NPE when InternalDriver returns null connection for certain malformed URLs. With this patch, network server checks for null connections returned by InternalDriver and returns RDBAFLRM and SQLCARD with null SQLException.
2. The client parses the SQLCARD and if finds null SQLException, it sets connectionNull variable in NetConnection to true.
3. ClientDriver connect method, which calls the constructor of NetConnection, gets back an object with connectionNull set to true. And it inturn returns null connection.
4. Added tests to checkDriver.java for more Client URLs. 

Contributed by Deepa Remesh


Changed paths:

Path Details
Directorydb/derby/code/trunk/java/client/org/apache/derby/client/net/NetConnection.java modified , text changed
Directorydb/derby/code/trunk/java/client/org/apache/derby/client/net/NetConnectionReply.java modified , text changed
Directorydb/derby/code/trunk/java/client/org/apache/derby/jdbc/ClientDriver.java modified , text changed
Directorydb/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java modified , text changed
Directorydb/derby/code/trunk/java/drda/org/apache/derby/impl/drda/Database.java modified , text changed
Directorydb/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/DerbyNetClient/checkDriver.out modified , text changed
Directorydb/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDriver.java modified , text changed

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2