Derby
  1. Derby
  2. DERBY-1151

ij does not issue a warning if the attribute verifyKey.dat is set on an embedded URL.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 10.1.2.1
    • Fix Version/s: None
    • Component/s: Tools
    • Urgency:
      Normal
    • Issue & fix info:
      Newcomer

      Description

      ij has code to check that the JDBC attributes on a URL are valid for embedded. It obtains the list of attributes by using reflection on the Attributes class for the list fo fields.

      The field Attribute.CRYPTO_EXTERNAL_KEY_VERIFY_FILE is not an attribute and so this constant should be elsewhere,, most likely with the encryption code.

      Also going through the list of fields may not be the best approach for getting the list of valid attributes. A simple array of valid attributes
      may be a much clearer and easier solution. Especially if the Attribute class contains client side attributes as well, as a future version might.

      ij> connect 'jdbc:derby:fred;foo=true';
      URL Attribute [foo=true]
      Attribute is unknown to Derby.
      ERROR XJ004: Database 'fred' not found.
      ij> connect 'jdbc:derby:fred;verifyKey.dat=fr
      ERROR XJ004: Database 'fred' not found.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Daniel John Debrunner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development