[
https://issues.jboss.org/browse/JBESB-3882?page=com.atlassian.jira.plugin...
]
RH Bugzilla Integration commented on JBESB-3882:
------------------------------------------------
tcunning(a)redhat.com made a comment on [bug
876337|https://bugzilla.redhat.com/show_bug.cgi?id=876337]
Reproduced this on Windows using David B's suggestion (see
FileUtilUnitTest.test_renameTo).
FileUtils.renameTo should return false
--------------------------------------
Key: JBESB-3882
URL:
https://issues.jboss.org/browse/JBESB-3882
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.11
Reporter: Tom Cunningham
Assignee: Tom Cunningham
Fix For: 4.11 CP2
The problem is that FileUtil.renameTo(..) returns true even if it fails to rename the
file (in the step where it renames a localfile to a filename that includes the UUID).
This in turn makes setFileWorking(..) return a non-null value and AbstractFileGateway
will go ahead and try to process the non-existing file.
I propose that FileUtil.renameTo(..) should in these cases return false thus
AbstractFileGateway will NOT try to process a non-existing file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira