Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-45

[configuration] Fails silently if asked to save to an invalid filename

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • None
    • None
    • Operating System: All
      Platform: All

    • 32020

    Description

      Running code like this...

      FileConfiguration config = new PropertiesConfiguration();
      config.setFile(new File("/invalid/path/my.properties"));
      config.save();

      ...doesn't throw any Exception. AbstractFileConfiguration.save(File) swallows
      the FileNotFoundException, prints a stack trace, and completes normally,
      without having saved the file.

      Cheers
      Iain Shepherd

      Attachments

        Activity

          People

            Unassigned Unassigned
            apache.org@ishepherd.co.uk Iain Shepherd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: