Alla Gofman created CONFIGURATION-828:
-----------------------------------------

             Summary: 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


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)

Reply via email to