Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-101

[configuration] testSaveInvalidURL in TestFileConfiguration fails

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: Solaris
      Platform: Sun

      Description

      The newly added test testSaveInvalidURL in TestFileConfiguration fails because
      config.save("http://www.apache.org") does not fail as anticipated. This
      statement actually succeeds in creating a subdirectory "http:" and creates the
      file "www.apache.org" in it.

        Activity

        Hide
        Oliver Heger added a comment -

        Fixed in CVS.

        I removed the code in ConfigurationUtils.getFile() that tries to extract a file
        name from a non file:// URL. As shown by this bug report, this fails anyway.

        Show
        Oliver Heger added a comment - Fixed in CVS. I removed the code in ConfigurationUtils.getFile() that tries to extract a file name from a non file:// URL. As shown by this bug report, this fails anyway.

          People

          • Assignee:
            Unassigned
            Reporter:
            Peter Maurath
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development