
|
If you were logged in you would be able to see more operations.
|
|
|
| Labels: |
|
| User impact: |
High
|
| Similar Issues: |
|
|
If a file (or folder) can't be created in the archive then the source file is not retained but removed and the information in the source file is permanently destroyed.
|
|
Description
|
If a file (or folder) can't be created in the archive then the source file is not retained but removed and the information in the source file is permanently destroyed. |
Show » |
|
1. Creation of tmp-dirs are done without checking for success.
An exception should be throwed if the dirs are not created successfully.
2. The sftp-transport only tries to create the archve folder if it is configured to be used with tmp-files.
The archive-folder should also be created (if not existing) when used without tmp-folders.
3. Incorrect tests that tried to verify if is possible to create the archive folder
4. setErrorOccurred() not called in all error-handling on the sftp-connector specific input-streams.
Leading to that the source-file is removed even if an error occurred during creation of the archive file
5. The tests for archive handling, SftpArchiveFunctionlTestCase.java, are not sufficient, e.g. not detecting these problems.