You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Bernt M. Johnsen (JIRA)" <ji...@apache.org> on 2007/05/25 15:53:16 UTC

[jira] Created: (DERBY-2696) ij reports "Attribute is unknown to Derby" on collate, ssl and some other new attributes.

ij reports "Attribute is unknown to Derby" on collate, ssl and some other new attributes.
-----------------------------------------------------------------------------------------

                 Key: DERBY-2696
                 URL: https://issues.apache.org/jira/browse/DERBY-2696
             Project: Derby
          Issue Type: Bug
          Components: Tools
    Affects Versions: 10.3.0.0
            Reporter: Bernt M. Johnsen


ij> connect 'jdbc:derby:test;ssl=basic';
URL Attribute [ssl=basic]
   Attribute is unknown to Derby.
ij>  connect 'jdbc:derby:test;traceFile=x';
URL Attribute [traceFile=x]
   Attribute is unknown to Derby.
ij> connect 'jdbc:derby:test;collate=blah';
URL Attribute [collate=blah]
   Attribute is unknown to Derby.

Reason: 

The attributes traceFileAppend, traceDirectory, traceFile,
traceLevel, collate and ssl are defined in
org.apache.derby.shared.common.reference.Attribute.java
and not in org.apache.derby.iapi.reference.Attribute.java 

and ij does reflection of the latter.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-2696) ij reports "Attribute is unknown to Derby" on collate, ssl and some other new attributes.

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499153 ] 

Dag H. Wanvik commented on DERBY-2696:
--------------------------------------

It seems URLCheck only does its thing for the embedded driver, cf.
DERBY-1151 and URLCheck#getAttributes (see fragment below).

The documentation is silent about this limitation
(http://db.apache.org/derby/docs/dev/tools/rtoolsijpropref38481.html);
on the contrary, a sentence leads one to believe it checks for all
drivers:

"Typically, you would only explicitly turn off the URL checker if you
were using ij with a non-Derby JDBC driver or database."

The code would indicate that this warning is unnecessary:

        if( url.startsWith( "jdbc:derby:net:") ||
           url.startsWith( "jdbc:derby://"))
        {
            validProps = null;
        }
        else if( url.startsWith( "jdbc:derby:"))
        {
            protocol = "jdbc:derby:";
            validProps = getValidDerbyProps();
        }
        else
            validProps = null;

('null' short circuits the check.)

Until this functionality is extended to the client driver, I guess
client URL attributes are not impacted by the omissions (the example
uses embedded driver!). It will still be good to keep those files in
synch, or even better, eliminate the redundancy.


> ij reports "Attribute is unknown to Derby" on collate, ssl and some other new attributes.
> -----------------------------------------------------------------------------------------
>
>                 Key: DERBY-2696
>                 URL: https://issues.apache.org/jira/browse/DERBY-2696
>             Project: Derby
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 10.3.0.0
>            Reporter: Bernt M. Johnsen
>
> ij> connect 'jdbc:derby:test;ssl=basic';
> URL Attribute [ssl=basic]
>    Attribute is unknown to Derby.
> ij>  connect 'jdbc:derby:test;traceFile=x';
> URL Attribute [traceFile=x]
>    Attribute is unknown to Derby.
> ij> connect 'jdbc:derby:test;collate=blah';
> URL Attribute [collate=blah]
>    Attribute is unknown to Derby.
> Reason: 
> The attributes traceFileAppend, traceDirectory, traceFile,
> traceLevel, collate and ssl are defined in
> org.apache.derby.shared.common.reference.Attribute.java
> and not in org.apache.derby.iapi.reference.Attribute.java 
> and ij does reflection of the latter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-2696) ij reports "Attribute is unknown to Derby" on collate, ssl and some other new attributes.

Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kathey Marsden updated DERBY-2696:
----------------------------------

    Derby Categories: [Newcomer]

> ij reports "Attribute is unknown to Derby" on collate, ssl and some other new attributes.
> -----------------------------------------------------------------------------------------
>
>                 Key: DERBY-2696
>                 URL: https://issues.apache.org/jira/browse/DERBY-2696
>             Project: Derby
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 10.3.1.4
>            Reporter: Bernt M. Johnsen
>
> ij> connect 'jdbc:derby:test;ssl=basic';
> URL Attribute [ssl=basic]
>    Attribute is unknown to Derby.
> ij>  connect 'jdbc:derby:test;traceFile=x';
> URL Attribute [traceFile=x]
>    Attribute is unknown to Derby.
> ij> connect 'jdbc:derby:test;collate=blah';
> URL Attribute [collate=blah]
>    Attribute is unknown to Derby.
> Reason: 
> The attributes traceFileAppend, traceDirectory, traceFile,
> traceLevel, collate and ssl are defined in
> org.apache.derby.shared.common.reference.Attribute.java
> and not in org.apache.derby.iapi.reference.Attribute.java 
> and ij does reflection of the latter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.