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 de...@db.apache.org on 2004/09/29 21:09:32 UTC

[jira] Created: (DERBY-19) NPE when trying to create a database at a directory that is not allowed

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/DERBY-19

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DERBY-19
    Summary: NPE when trying to create a database at a directory that is not allowed
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Derby
 Components: 
             Services
   Versions:
             10.0.2.0

   Assignee: 
   Reporter: Ramandeep Kaur

    Created: Wed, 29 Sep 2004 12:09 PM
    Updated: Wed, 29 Sep 2004 12:09 PM

Description:
Opening this bug on behalf of Daniel Debrunner

--------------------------------------------------------------
This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).

This bug can be reproduced in IJ like so:
(if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
ij> connect 'jdbc:derby:d:/wombat2;create=true';
ERROR XJ041: Failed to create database 'd:/wombat2'


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DERBY-19) NPE when trying to create a database at a directory that is not allowed

Posted by "Daniel John Debrunner (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-19?page=all ]
     
Daniel John Debrunner resolved DERBY-19:
----------------------------------------

    Resolution: Fixed

Changes committed as revision 178795.
Handle the exception thrown when accessing a path name, such as drive not ready from a CD-ROM.
Don't see how to add a test for this as a invalid name worked fine, only the exception due to drive not ready caused the problem.

> NPE when trying to create a database at a directory that is not allowed
> -----------------------------------------------------------------------
>
>          Key: DERBY-19
>          URL: http://issues.apache.org/jira/browse/DERBY-19
>      Project: Derby
>         Type: Bug
>   Components: Services
>     Versions: 10.0.2.0
>     Reporter: Ramandeep Kaur
>     Assignee: Daniel John Debrunner
>     Priority: Minor

>
> Opening this bug on behalf of Daniel Debrunner
> --------------------------------------------------------------
> This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).
> This bug can be reproduced in IJ like so:
> (if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
> ij> connect 'jdbc:derby:d:/wombat2;create=true';
> ERROR XJ041: Failed to create database 'd:/wombat2'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DERBY-19) NPE when trying to create a database at a directory that is not allowed

Posted by "Daniel John Debrunner (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-19?page=all ]

Daniel John Debrunner updated DERBY-19:
---------------------------------------

    Fix Version: 10.1.0.0
    Description: 
Opening this bug on behalf of Daniel Debrunner

--------------------------------------------------------------
This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).

This bug can be reproduced in IJ like so:
(if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
ij> connect 'jdbc:derby:d:/wombat2;create=true';
ERROR XJ041: Failed to create database 'd:/wombat2'

  was:
Opening this bug on behalf of Daniel Debrunner

--------------------------------------------------------------
This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).

This bug can be reproduced in IJ like so:
(if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
ij> connect 'jdbc:derby:d:/wombat2;create=true';
ERROR XJ041: Failed to create database 'd:/wombat2'

    Environment: 

> NPE when trying to create a database at a directory that is not allowed
> -----------------------------------------------------------------------
>
>          Key: DERBY-19
>          URL: http://issues.apache.org/jira/browse/DERBY-19
>      Project: Derby
>         Type: Bug
>   Components: Services
>     Versions: 10.0.2.0
>     Reporter: Ramandeep Kaur
>     Assignee: Daniel John Debrunner
>     Priority: Minor
>      Fix For: 10.1.0.0

>
> Opening this bug on behalf of Daniel Debrunner
> --------------------------------------------------------------
> This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).
> This bug can be reproduced in IJ like so:
> (if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
> ij> connect 'jdbc:derby:d:/wombat2;create=true';
> ERROR XJ041: Failed to create database 'd:/wombat2'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DERBY-19) NPE when trying to create a database at a directory that is not allowed

Posted by de...@db.apache.org.
The following comment has been added to this issue:

     Author: Daniel John Debrunner
    Created: Thu, 30 Sep 2004 5:21 AM
       Body:
A solution to Jan's concern about the ability to create databases anywhere is to use the Java 2 security manager. Then the policy file for the JVM running Derby can limit Derby's file access as required.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/DERBY-19?page=comments#action_53543

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/DERBY-19

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DERBY-19
    Summary: NPE when trying to create a database at a directory that is not allowed
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Derby
 Components: 
             Services
   Versions:
             10.0.2.0

   Assignee: 
   Reporter: Ramandeep Kaur

    Created: Wed, 29 Sep 2004 12:09 PM
    Updated: Thu, 30 Sep 2004 5:21 AM

Description:
Opening this bug on behalf of Daniel Debrunner

--------------------------------------------------------------
This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).

This bug can be reproduced in IJ like so:
(if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
ij> connect 'jdbc:derby:d:/wombat2;create=true';
ERROR XJ041: Failed to create database 'd:/wombat2'


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (DERBY-19) NPE when trying to create a database at a directory that is not allowed

Posted by "Daniel John Debrunner (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-19?page=all ]

Daniel John Debrunner reassigned DERBY-19:
------------------------------------------

    Assign To: Daniel John Debrunner

> NPE when trying to create a database at a directory that is not allowed
> -----------------------------------------------------------------------
>
>          Key: DERBY-19
>          URL: http://issues.apache.org/jira/browse/DERBY-19
>      Project: Derby
>         Type: Bug
>   Components: Services
>     Versions: 10.0.2.0
>     Reporter: Ramandeep Kaur
>     Assignee: Daniel John Debrunner
>     Priority: Minor

>
> Opening this bug on behalf of Daniel Debrunner
> --------------------------------------------------------------
> This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).
> This bug can be reproduced in IJ like so:
> (if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
> ij> connect 'jdbc:derby:d:/wombat2;create=true';
> ERROR XJ041: Failed to create database 'd:/wombat2'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DERBY-19) NPE when trying to create a database at a directory that is not allowed

Posted by "Daniel John Debrunner (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-19?page=all ]
     
Daniel John Debrunner closed DERBY-19:
--------------------------------------


> NPE when trying to create a database at a directory that is not allowed
> -----------------------------------------------------------------------
>
>          Key: DERBY-19
>          URL: http://issues.apache.org/jira/browse/DERBY-19
>      Project: Derby
>         Type: Bug
>   Components: Services
>     Versions: 10.0.2.0
>     Reporter: Ramandeep Kaur
>     Assignee: Daniel John Debrunner
>     Priority: Minor
>      Fix For: 10.1.0.0

>
> Opening this bug on behalf of Daniel Debrunner
> --------------------------------------------------------------
> This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).
> This bug can be reproduced in IJ like so:
> (if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
> ij> connect 'jdbc:derby:d:/wombat2;create=true';
> ERROR XJ041: Failed to create database 'd:/wombat2'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DERBY-19) NPE when trying to create a database at a directory that is not allowed

Posted by de...@db.apache.org.
The following comment has been added to this issue:

     Author: Jan Hlavatý
    Created: Thu, 30 Sep 2004 1:36 AM
       Body:
This is a broader problem - you let anyone create databases whereever he wants. I dont think this is a good idea - someone might create garbage all over the server system. Maybe there should be a way to allow only certain directories.

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/DERBY-19?page=comments#action_53534

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/DERBY-19

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DERBY-19
    Summary: NPE when trying to create a database at a directory that is not allowed
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Derby
 Components: 
             Services
   Versions:
             10.0.2.0

   Assignee: 
   Reporter: Ramandeep Kaur

    Created: Wed, 29 Sep 2004 12:09 PM
    Updated: Thu, 30 Sep 2004 1:36 AM

Description:
Opening this bug on behalf of Daniel Debrunner

--------------------------------------------------------------
This bug occurs in embedded Derby and Derby Network Server. In Derby Network Server, it might be best for a security exception to be thrown when trying to create a database at a disallowed directory (SQLSTATE 38000).

This bug can be reproduced in IJ like so:
(if your 'D' drive is an inaccessible disk. e.g. your CD-ROM)
ij> connect 'jdbc:derby:d:/wombat2;create=true';
ERROR XJ041: Failed to create database 'd:/wombat2'


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira