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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.6, 3.5.0
    • 3.4.7, 3.5.2, 3.6.0
    • java client
    • 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. ZkSpaceMan.java
          3 kB
          Edward Capriolo
        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. ZOOKEEPER-1853-branch-3.4.patch
          6 kB
          Jun Gong

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: