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 "Kristian Waagan (JIRA)" <ji...@apache.org> on 2007/05/08 13:37:16 UTC

[jira] Updated: (DERBY-2555) Remove use of doPrivileged in EncryptionKeyTest

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

Kristian Waagan updated DERBY-2555:
-----------------------------------

    Attachment: derby-2555-1a.diff

Attaching a patch that removed the doPrivileged-blocks from the test.
If I apply this patch and run tests.store._Suite (which currently run all the three encryption key tests), I get 9 errors (three per algorithm); testInvalidRestoreFrom, testRestoreFrom and testCreateDbFromBackup.

The patch cannot be committed before DERBY-2556 has been resolved.

> Remove use of doPrivileged in EncryptionKeyTest
> -----------------------------------------------
>
>                 Key: DERBY-2555
>                 URL: https://issues.apache.org/jira/browse/DERBY-2555
>             Project: Derby
>          Issue Type: Sub-task
>          Components: Test
>    Affects Versions: 10.3.0.0
>            Reporter: Kristian Waagan
>            Priority: Trivial
>         Attachments: derby-2555-1a.diff
>
>
> When converted to JUnit, the test originally wrapped connections used to create/restore databases from a backup image in doPrivileged-calls. This was done to allow the backup images to be read by Derby. It should not be necessary, as the Derby code itself should use doPrivileged-calls in the appropriate places.

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