Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-1010

ssoadm batch mode comand line parser fails on single quote

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Expired
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None
    • Rank:
      1|hzlvu7:
    • Needs backport:
      No
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      No (add reasons in the comment)

      Description

      When trying to execute batch with commands that have arguments escaped/guarded with single quotes ('), ssoadm fails to parse those (and will execute only commands it managed to parse before line with quote). Error message is 'Unmatched ".' and issue seems to be that com.sun.identity.cli.BulkOperations method makeStringArray incorrectly sets inDblQuote to be true in case of single quote (line 114).

      OTOH, if someone is to refactor this part of the code, it could be more like shell's parser which allows quotes to be in the middle of argument as well (blaah="asdasd", the current parser will yield asdasd as result, IMHO).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major [X] (Inactive)
                Reporter:
                jjpp jjpp
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: