Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
10.1.2.1, 10.1.3.1, 10.2.1.6
-
None
Description
$ java TestConnect
Derby embedded allows "" as a user id. DerbyClient however,
throws the following exception:
connected with embedded
Exception in thread "main" org.apache.derby.client.am.SqlException: userid length, 0, is not allowed.
at org.apache.derby.client.net.NetConnection.checkUserLength(NetConnection.java:993)
at org.apache.derby.client.net.NetConnection.checkUser(NetConnection.java:1008)
at org.apache.derby.client.net.NetConnection.checkUserPassword(NetConnection.java:1012)
at org.apache.derby.client.net.NetConnection.flowConnect(NetConnection.java:384)
at org.apache.derby.client.net.NetConnection.<init>(NetConnection.java:195)
at org.apache.derby.jdbc.ClientDriver.connect(ClientDriver.java:125)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at TestConnect.main(TestConnect.java:23)
$
Below is the program to reproduce
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.*;
public class TestConnect
{
public static void main(String argv[])
throws Exception
}