Karaf
  1. Karaf
  2. KARAF-643

KarArtifactInstaller::init has incorrect warning logic

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.2.1
    • Fix Version/s: 2.2.9, 2.3.0
    • Component/s: karaf-kar
    • Labels:
      None
    • Environment:

      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.

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

        Activity

          People

          • Assignee:
            Freeman Fang
            Reporter:
            Yaytay
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development