FileConsumerAbsoluteRootPathDefaultMoveTest deletes C:\Temp
------------------------------------------------------------
Key: CAMEL-2578
URL: https://issues.apache.org/activemq/browse/CAMEL-2578
Project: Apache Camel
Issue Type: Bug
Components: tests
Environment: Windows is more likely to be affected than anything else,
but the test makes assumptions on all platforms.
Reporter: Jim Talbut
The FileConsumerAbsoluteRootPathDefaultMoveTest test contains:
@Override
protected void setUp() throws Exception {
base = "/temp";
deleteDirectory(base);
super.setUp();
}
This deletes C:\Temp, and its entire contents, without any warning.
This risks:
* Losing things that the user does not want to lose (at a potential cost of
both time and money).
* Breaking other programs storing files there.
* Falling foul of sensible permissions that prevent normal users from
creating/deleting files in the root.
It also leaves the /temp file there after execution, which it has no right to
do.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.