Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-643

KarArtifactInstaller::init has incorrect warning logic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.2.0, 2.2.1
    • 2.2.9, 2.3.0
    • karaf
    • None
    • Ubuntu Linux (though I believe the issue affects all platforms).

    Description

      KarArtifactInstaller.java has the following block:
      if (new File(timestampPath).mkdirs()) {
      logger.warn("Unable to create directory for Karaf Archive timestamps. Results may vary...");
      }

      which looks as though it's missing a !
      mkdirs returns true if and only if the directory was created, along with all necessary parent directories; false otherwise.

      Attachments

        1. karaf-643.txt
          0.7 kB
          Michael Van Geertruy

        Activity

          People

            ffang Freeman Yue Fang
            yaytay Yaytay
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: