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

[configuration] AbstractFileConfiguration.save() creates a new file instead of overwritting the existing one

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      34362

      Description

      The manner in wich a file is found and read... versus how it is check for
      existance and overriden are different. Thus a file that is found and
      successfully read, will not always be updated correctly when using setProperty
      (key,value); Instead a new file will be generated containing the new
      configuration information.

        Attachments

        1. ASF.LICENSE.NOT.GRANTED--AbstractFileConfiguration.diff
          3 kB
          Oliver Heger
        2. ASF.LICENSE.NOT.GRANTED--AbstractFileConfiguration.java
          19 kB
          Jamie M. Guillemette
        3. ASF.LICENSE.NOT.GRANTED--abstractFileConfiguration.patch
          20 kB
          Jamie M. Guillemette
        4. ASF.LICENSE.NOT.GRANTED--fix.txt
          0.5 kB
          Jamie M. Guillemette
        5. ASF.LICENSE.NOT.GRANTED--TestFileConfiguration.diff
          3 kB
          Oliver Heger
        6. ASF.LICENSE.NOT.GRANTED--unitTest.patch
          2 kB
          Jamie M. Guillemette

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jmguillemette@gmail.com Jamie M. Guillemette
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: