jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-2274) Data Store: temporary files even if copyWhenReading is false
Date Wed, 26 Aug 2009 08:57:59 GMT

    [ https://issues.apache.org/jira/browse/JCR-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747843#action_12747843

Thomas Mueller commented on JCR-2274:


I tried but can't reproduce this problem. Could you post a simple, standalone test case that
reproduces the problem? It would be great if the test case does not have any dependencies
except Jackrabbit. Please include any initialization code. I used the following code:

public class ErrorHop {
    public static void main(String[] args) throws Exception {
        System.setProperty("java.io.tmpdir", "/tmp/rep");
        Repository repository = new TransientRepository();
        Session session = repository.login(
                new SimpleCredentials("", "".toCharArray()));
        Node n = session.getRootNode();
        n = n.hasNode("x") ? n.getNode("x") : n.addNode("x");
        n.setProperty("x", new ByteArrayInputStream(
                new byte[10000]) {
            public int read(byte[] buff, int off, int len) {
                try {
                } catch (Exception e) {}
                return super.read(buf, off, len);

> Data Store: temporary files even if copyWhenReading is false
> ------------------------------------------------------------
>                 Key: JCR-2274
>                 URL: https://issues.apache.org/jira/browse/JCR-2274
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>            Reporter: premkumar
>            Assignee: Thomas Mueller
>         Attachments: repository.xml
> Im using datastore content repository.  Im getting temporary files in temp folder even
after made <param name="copyWhenReading" value="false" />. After deleting all those
temp files, Im not able to download files from repository.

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

View raw message