james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <server-...@james.apache.org>
Subject [jira] [Resolved] (JAMES-1310) Return value of File.[delete|mkdir] is ignored
Date Tue, 21 Jun 2016 08:50:58 GMT

     [ https://issues.apache.org/jira/browse/JAMES-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tellier Benoit resolved JAMES-1310.
-----------------------------------
    Resolution: Fixed

Now I have the rights

> Return value of File.[delete|mkdir] is ignored
> ----------------------------------------------
>
>                 Key: JAMES-1310
>                 URL: https://issues.apache.org/jira/browse/JAMES-1310
>             Project: James Server
>          Issue Type: Bug
>    Affects Versions: 3.0-beta3
>         Environment: All
>            Reporter: Felix Knecht
>            Assignee: Felix Knecht
>             Fix For: 3.0.0-beta5
>
>         Attachments: 0001-JWC-126-Use-FileUtils-when-deleting-file-and-creatin.patch
>
>
> In various places we use java.io.File.[delete|mkdir] without respecting the return value.
File.delete e.g. may just return false if the file/directory can't be deleted/created because
of any other reason than a SecurityException [1]. 
> In case the return value is false an IOException should be thrown



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message