camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Talbut (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-2578) FileConsumerAbsoluteRootPathDefaultMoveTest deletes C:\Temp
Date Fri, 26 Mar 2010 07:43:08 GMT
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.


Mime
View raw message