Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-406

Client DataSource should not require user property to be set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.1.0, 10.2.1.6
    • 10.1.2.1, 10.2.1.6
    • Network Client
    • None

    Description

      ClientDataSource should not require user to be set. It should default to user APP as described in:
      http://incubator.apache.org/derby/docs/adminguide/cadminappsclient.html

      This all seems to work ok for for DriverManager connections but fails for ClientDataSource
      run the attached repro

      $ java DataSourceNoUser
      embedded no userid/password
      client userid/password set
      client no password
      client no userid/no password
      org.apache.derby.client.am.SqlException: null userid not supported
      at org.apache.derby.client.net.NetConnection.checkUser(NetConnection.java:998)
      at org.apache.derby.client.net.NetConnection.flowConnect(NetConnection.java:380)
      at org.apache.derby.client.net.NetConnection.initialize(NetConnection.java:233)
      at org.apache.derby.client.net.NetConnection.<init>(NetConnection.java:201)
      at org.apache.derby.jdbc.ClientDataSource.getConnection(ClientDataSource.java:156)
      at org.apache.derby.jdbc.ClientDataSource.getConnection(ClientDataSource.java:135)
      at DataSourceNoUser.main(DataSourceNoUser.java:42)

      Attachments

        1. DataSourceNoUser.java
          2 kB
          Katherine Marsden
        2. Derby406_409_410.patch
          11 kB
          Philip Wilder

        Activity

          People

            acadia_student_01 Philip Wilder
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: