[ http://issues.apache.org/jira/browse/DERBY-304?page=all ]
Mike Matrigali updated DERBY-304:
---------------------------------
Description:
If by mistake you give he location for the db backup as the db itself , then
windows created directories recursively until it crashes!
Repro:
CallableStatement cs = conn.prepareCall("CALL
SYSCS_UTIL.SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE(?, ?)");
cs.setString(1, "c:/maildb");
cs.setInt(2, 1);
cs.execute();
cs.close();
result:
C:\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\.....................
Until windows can not show the path!!!
was:
If by mistake you give he location for the db backup as the db itself , then
windows created directories recursively until it crashes!
Repro:
CallableStatement cs = conn.prepareCall("CALL
SYSCS_UTIL.SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE(?, ?)");
cs.setString(1, "c:/maildb");
cs.setInt(2, 1);
cs.execute();
cs.close();
result:
C:\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\.....................
Until windows can not show the path!!!
I reviewed, ran tests and committed this patch:
m1_142:204>svn commit
Sending java\engine\org\apache\derby\iapi\services\io\FileUtil.java
Sending java\engine\org\apache\derby\iapi\store\access\FileResource.java
Sending java\engine\org\apache\derby\impl\sql\execute\JarDDL.java
Sending java\engine\org\apache\derby\impl\store\raw\RawStore.java
Sending java\engine\org\apache\derby\loc\messages_en.properties
Sending java\shared\org\apache\derby\shared\common\reference\SQLState.jav
a
Adding java\testing\org\apache\derbyTesting\functionTests\master\BackupP
athTests.out
Sending java\testing\org\apache\derbyTesting\functionTests\suites\storemo
re.runall
Adding java\testing\org\apache\derbyTesting\functionTests\tests\store\Ba
ckupPathTests.java
Adding java\testing\org\apache\derbyTesting\functionTests\tests\store\Ba
ckupPathTests_app.properties
Sending java\testing\org\apache\derbyTesting\functionTests\tests\store\co
pyfiles.ant
Transmitting file data ...........
Committed revision 379620.
> If by mistake you give he location for the db backup as the db itself , then
> windows created directories recursively until windows crashes!
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-304
> URL: http://issues.apache.org/jira/browse/DERBY-304
> Project: Derby
> Type: Bug
> Components: Store
> Versions: 10.1.1.0
> Environment: With JDK 142 on Windows XP
> Reporter: Manjula Kutty
> Assignee: Suresh Thalamati
> Priority: Minor
> Attachments: derby-304.diff
>
> If by mistake you give he location for the db backup as the db itself , then
> windows created directories recursively until it crashes!
> Repro:
> CallableStatement cs = conn.prepareCall("CALL
> SYSCS_UTIL.SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE(?, ?)");
> cs.setString(1, "c:/maildb");
> cs.setInt(2, 1);
> cs.execute();
> cs.close();
> result:
> C:\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\maildb\.....................
> Until windows can not show the path!!!
--
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