Issue Details (XML | Word | Printable)

Key: DERBY-374
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Deepa Remesh
Reporter: A B
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

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

Created: 19/Jun/05 04:01 PM   Updated: 24/May/06 04:26 AM
Return to search
Component/s: Network Client
Affects Version/s: 10.1.1.0, 10.2.1.6
Fix Version/s: 10.1.2.1, 10.2.1.6

Time Tracking:
Issue & Sub-Tasks
Issue Only
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works derby-374-patch.diff 2005-09-29 02:45 AM Deepa Remesh 12 kB
File Licensed for inclusion in ASF works derby-374-patch.status 2005-09-29 02:45 AM Deepa Remesh 0.5 kB
File Licensed for inclusion in ASF works derby374_test_changes.diff 2005-10-08 09:27 AM Deepa Remesh 3 kB
Environment: Network Server running with Derby client on Windows 2000.

Resolution Date: 12/Oct/05 04:29 AM

Sub-Tasks  All   Open   

 Description  « Hide
If using the Derby Client to connect to the Derby Network Server, there are some cases where an invalid URL will cause a protocol exception instead of throwing a proper error. The two cases I've found are as follow:

1) Use of a colon to separate attributes:

When connecting to the server with JCC, a colon is required to demarcate the Derby attributes from the JCC attributes. For the Derby Client, however, the colon is not a valid part of the URL, so use of it should return an error. However, the result is a protocol exception:

ij> connect 'jdbc:derby://localhost:1528/sample:user=someUsr;password=somePwd';
agentThread[DRDAConnThread_9,5,main]
ERROR (no SQLState): A communication error has been detected. Communication protocol being used: Reply.fill(). Communication API being used: InputStream.read(). Location where the error was detected:
insufficient data. Communication function detecting the error: *. Protocol specific error codes(s) TCP/IP SOCKETS

2) Use of double-quotes to specify a full path to a database.

The use of double-quotes around a database path is required when connecting to the server with JCC, but should be optional when using the Derby Client. However, attempts to use the double-quotes doesn't work--on the contrary, it throws a protocol exception:

ij> connect 'jdbc:derby://localhost:1528/"C:/myDBs/sample"';
agentThread[DRDAConnThread_11,5,main]
ERROR (no SQLState): A communication error has been detected. Communication protocol being used: Reply.fill(). Communication API being used: InputStream.read(). Location where the error was detected:
insufficient data. Communication function detecting the error: *. Protocol specific error codes(s) TCP/IP SOCKETS

Without quotes, the above example will work as expected.

I'm not sure if the problem is with the Derby client or the Network Server (more investigation required).

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Andrew McIntyre made changes - 30/Jun/05 05:49 AM
Field Original Value New Value
Fix Version/s 10.2.0.0 [ 11187 ]
Affects Version/s 10.2.0.0 [ 11187 ]
Fix Version/s 10.1.1.0 [ 10993 ]
Kathey Marsden made changes - 20/Aug/05 08:56 AM
Component/s Network Server [ 11410 ]
Deepa Remesh made changes - 10/Sep/05 12:36 AM
Assignee Deepa Remesh [ deepa ]
Deepa Remesh made changes - 16/Sep/05 10:58 AM
Attachment derby-374.diff [ 12314393 ]
Attachment derby-374.status [ 12314394 ]
Deepa Remesh made changes - 17/Sep/05 05:44 AM
Attachment derby-374-patch2.diff [ 12314412 ]
Deepa Remesh made changes - 20/Sep/05 12:08 AM
Attachment derby-374-patch3.diff [ 12314452 ]
Deepa Remesh made changes - 23/Sep/05 03:44 AM
Attachment derby-374-patch2.diff [ 12314412 ]
Deepa Remesh made changes - 23/Sep/05 03:45 AM
Attachment derby-374-patch3.diff [ 12314452 ]
Deepa Remesh made changes - 23/Sep/05 03:45 AM
Attachment derby-374.diff [ 12314393 ]
Deepa Remesh made changes - 23/Sep/05 03:46 AM
Attachment derby-374.status [ 12314394 ]
Deepa Remesh made changes - 29/Sep/05 02:45 AM
Attachment derby-374-patch.status [ 12314611 ]
Attachment derby-374-patch.diff [ 12314610 ]
Deepa Remesh made changes - 08/Oct/05 09:27 AM
Attachment derby374_test_changes.diff [ 12314773 ]
Deepa Remesh made changes - 12/Oct/05 04:29 AM
Fix Version/s 10.1.1.2 [ 12310353 ]
Resolution Fixed [ 1 ]
Fix Version/s 10.1.2.0 [ 12310270 ]
Status Open [ 1 ] Resolved [ 5 ]
A B made changes - 24/May/06 04:26 AM
Status Resolved [ 5 ] Closed [ 6 ]