db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "V.Narayanan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-3541) quit; on ij with authentication enabled does not shutdown the derby modules that are loaded
Date Fri, 14 Mar 2008 13:50:24 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

V.Narayanan updated DERBY-3541:

    Attachment: derby.properties

I modified the derby codebase to print a stack trace (new Throwable().printStackTrace();)
the TopService#shutdown() method (pls find patch attached.)

I then tried getting a connection *with* authentication enabled (pls find derby.properties
attached) with the following connection url

ij>  connect 'jdbc:derby:replicationdb2;create=true;user=oystein;password=pass';
ij> quit;

There was no stack trace printed.

I then tried a connection *without* authentication enabled

There was a stack trace printed (pls find attached stack trace)

ij> connect 'jdbc:derby:replicationdb1;create=true';
ij> quit;
        at org.apache.derby.impl.services.monitor.TopService.shutdown(TopService.java:327)
        at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(BaseMonitor.java:237)
        at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(BaseMonitor.java:203)
        at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:231)
        at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:119)
        at java.sql.DriverManager.getConnection(DriverManager.java:582)
        at java.sql.DriverManager.getConnection(DriverManager.java:207)
        at org.apache.derby.impl.tools.ij.utilMain.cleanupGo(utilMain.java:416)
        at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:249)
        at org.apache.derby.impl.tools.ij.Main.go(Main.java:215)
        at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:181)
        at org.apache.derby.impl.tools.ij.Main.main(Main.java:73)
        at org.apache.derby.tools.ij.main(ij.java:59)

        ............... and so on (attached is the full stack trace)

Not shutting down the modules when authentication is enabled I believe is not correct.

> quit; on ij with authentication enabled does not shutdown the derby modules that are
> -------------------------------------------------------------------------------------------
>                 Key: DERBY-3541
>                 URL: https://issues.apache.org/jira/browse/DERBY-3541
>             Project: Derby
>          Issue Type: Bug
>          Components: Security
>    Affects Versions:
>            Reporter: V.Narayanan
>         Attachments: derby.properties, PrintStackTrace.diff, WithoutAuthentication_StackTrace.txt

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

View raw message