Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
10.1.2.1
-
None
-
Normal
-
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.
Attachments
Issue Links
- is related to
-
DERBY-2696 ij reports "Attribute is unknown to Derby" on collate, ssl and some other new attributes.
- Open
- relates to
-
DERBY-5970 Check that connection attributes have legal values.
- Open
-
DERBY-2697 Implement ij.URLCheck property semantics for client driver
- Open