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

o.p.karaf.management bundles must stop when its configured keystore is not available

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.5
    • Fix Version/s: 2.2.6, 3.0.0
    • Component/s: karaf-config
    • Labels:
      None
    • Environment:

      windows/Linux

      Description

      Currently karaf management bundle has a configurable timeout value to wait for karaf's keystore to initialize. However, this if fails karaf spins trying to initialize its SSL JMX connector. User also can not shutdown karaf (it hangs).

      Best to throw RuntimeException when timeout occurs and prevent the spin.

        Activity

        Hide
        danttran Dan Tran added a comment -

        thanks for the review and commit. I will be careful with the tab next time

        Show
        danttran Dan Tran added a comment - thanks for the review and commit. I will be careful with the tab next time
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        FYI, I "fixed" some checkstyle issue (space, etc) and applied on karaf-2.2.x. I'm adapting it for trunk.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - FYI, I "fixed" some checkstyle issue (space, etc) and applied on karaf-2.2.x. I'm adapting it for trunk.
        Hide
        pieber Andreas Pieber added a comment -

        please use spaces instead of tabs the next time. otherwise the patch looks good.

        +1 from my side

        Show
        pieber Andreas Pieber added a comment - please use spaces instead of tabs the next time. otherwise the patch looks good. +1 from my side
        Hide
        danttran Dan Tran added a comment -

        attached is a patch where GenericSecurity exception is thrown when the configured keytore and/or truststore after configurable time.

        Tested with my production to force a failure and also with a good case

        Show
        danttran Dan Tran added a comment - attached is a patch where GenericSecurity exception is thrown when the configured keytore and/or truststore after configurable time. Tested with my production to force a failure and also with a good case

          People

          • Assignee:
            jbonofre Jean-Baptiste Onofré
            Reporter:
            danttran Dan Tran
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development