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

        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Freeman Fang made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.2.9 [ 12321741 ]
        Fix Version/s 2.3.0 [ 12320554 ]
        Fix Version/s 3.0.1 [ 12316945 ]
        Fix Version/s 3.1.0 [ 12316946 ]
        Resolution Fixed [ 1 ]
        Freeman Fang made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Freeman Fang made changes -
        Assignee Freeman Fang [ ffang ]
        Jean-Baptiste Onofré made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Andreas Pieber made changes -
        Fix Version/s 3.0.1 [ 12316945 ]
        Jean-Baptiste Onofré made changes -
        Component/s karaf-kar [ 12315011 ]
        Component/s karaf-core [ 12313724 ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 3.1.0 [ 12316946 ]
        Jean-Baptiste Onofré made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Michael Van Geertruy made changes -
        Field Original Value New Value
        Attachment karaf-643.txt [ 12484906 ]
        Yaytay created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development