Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1853

zkCli.sh can't issue a CREATE command containing spaces in the data

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.6, 3.5.0
    • Fix Version/s: 3.4.7, 3.5.2, 3.6.0
    • Component/s: java client
    • Labels:
    • Release Note:
      Allows spaces to be used for parameters in zkCli as long as they are in single or double quotes. ie: create /node1 "This will now work"

      Description

      Execute the following command in zkCli.sh :

      create /contacts/1

      {"country":"CA","name":"De La Salle"}

      The results is that only {"id":1,"fullname":"De is stored.
      The expected result is to have the full JSON payload stored.

      The CREATE command seems to be croped after the first space of the data payload. When issuing a create command, all arguments not being -s nor -e shall be treated as the actual data.

        Attachments

        1. ZOOKEEPER-1853-branch-3.4.patch
          6 kB
          Jun Gong
        2. ZOOKEEPER-1853.patch
          6 kB
          Ryan Lamore
        3. ZOOKEEPER-1853.patch
          6 kB
          Ryan Lamore
        4. ZOOKEEPER-1853.patch
          6 kB
          Ryan Lamore
        5. ZkSpaceMan.java
          3 kB
          Edward Capriolo

          Activity

            People

            • Assignee:
              ryanlamore Ryan Lamore
              Reporter:
              scoulibaly sekine coulibaly
            • Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: