You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "bd2019us (JIRA)" <ji...@apache.org> on 2019/03/31 19:04:00 UTC

[jira] [Updated] (CLOUDSTACK-10406) File.mkdir() may fail and cause crash.

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

bd2019us updated CLOUDSTACK-10406:
----------------------------------
    Attachment: 1.patch

> File.mkdir() may fail and cause crash.
> --------------------------------------
>
>                 Key: CLOUDSTACK-10406
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10406
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.12
>            Reporter: bd2019us
>            Priority: Major
>         Attachments: 1.patch
>
>
> The File.mkdir() API may fail if the parent directory does not exist, which potentially will cause program crash. Since we need to create this directory anyway, to ensure safety, the File.mkdirs() should be preferred. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)