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

Error in Client parameter parsing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      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

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              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