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

Command feature:info fails showing conditional dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.1
    • 4.2.2
    • karaf
    • None
    • Linux (CentOS) and Windows

    Description

      The command feature:info with option -t (to show a tree of dependencies) fails when dependencies are conditional.

      I get this message : Error executing command: Index: 0, Size: 0

      And these logs :

      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
       at java.util.ArrayList.rangeCheck(ArrayList.java:653) [?:?]
       at java.util.ArrayList.get(ArrayList.java:429) [?:?]
       at java.util.Collections$UnmodifiableList.get(Collections.java:1309) [?:?]
       at org.apache.karaf.features.command.InfoFeatureCommand.displayFeatureTree(InfoFeatureCommand.java:252)

       

      In InfoFeatureCommand.java, at line 252,

      dependencies.get( i) should be replaced by conditionDependencies.get( i)

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              MrMeudiz Julien Malaise
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified