commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sushant Kunal (JIRA)" <>
Subject [jira] Created: (TRANSACTION-32) Folder/directory copy operation does not work.
Date Tue, 23 Jun 2009 08:40:08 GMT
Folder/directory copy operation does not work.

                 Key: TRANSACTION-32
             Project: Commons Transaction
          Issue Type: Bug
    Affects Versions: 1.2
         Environment: Windows XP
            Reporter: Sushant Kunal
            Priority: Blocker

In the FileResourceManager.copyResource method, say

objFileResourceManager.copyResource(txId, strSrcPath , strDestinationPath ,true);

if  strSrcPath = "D:/TestFolder/sourceFolder"
    strDestinationPath = "D:/TestFolder/destinationFolder"

then the API fails with a FileNotFound exception at 

This is becuase the readResourceMethod inside the copyResource method is trying to call a
FileInputStream on the directory which fails because FileInputStream does not support directories.

Though, looking at the source code of FileHelper.copy method, it seems that Commons transactions
is trying to support the directory operations as well.

Please see to it, because it does not allow any directory operations i.e fails in all such

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

View raw message