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

In an embedded env, connection happens properly even when the password supplied is wrong.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 10.1.3.1
    • None
    • JDBC
    • None
    • Win XP,Java 1.4.x

    Description

      Hi,
      I am a new user of Derby.
      Have tried to set user authorization at the database level using the example given in the Derby Dev Guide.(Page 85).
      The steps that I do are as follows,
      1)Create a db (using create=true attribute in the connection url)
      2) Connect to the db and set the appropriate properties i.e. set requireAuthentication to true,provider to builtin, add a new user,passwrd and give it full access.
      3) Set the default access level to noAccess.
      4) Close this connection.
      5) Now make a new connection using the user name/passwd.It connects fine.
      6) Now try to make a new connection using a wrong user name and it gives a Connection Refused exception.
      7) Finally try giving a right username and wrong passwd and the connection still happens.

      Have attached the source file which does all these above steps for reproducing the issue.

      Thanks,
      Chinmay.

      Attachments

        1. 1171.sql
          1 kB
          Rajesh Kartha
        2. ASF.LICENSE.NOT.GRANTED--derby.zip
          2 kB
          Chinmay Bajikar

        Activity

          People

            Unassigned Unassigned
            chinbaj Chinmay Bajikar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: