[
https://issues.apache.org/jira/browse/CONFIGURATION-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680179#comment-17680179
]
Michael Osipov commented on CONFIGURATION-828:
----------------------------------------------
I think this is a non-issue. This library should not try to solve a general
problem.
> Configuration file truncated then there isn't enough disk space for writing
> ---------------------------------------------------------------------------
>
> Key: CONFIGURATION-828
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-828
> Project: Commons Configuration
> Issue Type: Bug
> Components: File reloading
> Affects Versions: 2.8.0
> Reporter: Alla Gofman
> Priority: Major
>
> Please consider:
> 1) Not to create output stream to file in case there is not enough disk space
> for writing it's content in case of save.
> 2) Enable to register some FileHandlerListener in this case to be notified on
> such issue and can react by throwing some Exception.
> The FileHandlerListener.saving(FileHandler handler) method not suitable,
> because called after the file being already truncated.
> * Meanwhile, the workaround is to extend
> DefaultFileSystem.getOutputStream(File file) method.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)