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

Error in Client parameter parsing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1, 4.0.0.M3
    • karaf
    • None

    Description

      The command line parsing has introduced a bug on line 71

      else if (args[i].equals("-f "))

      there is an extra whitespace after -f which makes it necessary to wrap the argument in quotes to use the file switch, e.g.

      ./client "-f " script.txt

      Code in https://github.com/apache/karaf/blob/master/client/src/main/java/org/apache/karaf/client/ClientConfig.java

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            jonasf Jonas Fügedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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