[
https://issues.apache.org/jira/browse/ZOOKEEPER-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006553#comment-15006553
]
Edward Ribeiro commented on ZOOKEEPER-1853:
-------------------------------------------
Hi [~rgs],
While testing 3.4.7 release I have seen that some space separated data works as
below:
{code}
[zk: localhost:2181(CONNECTED) 5] create /concepts "Hello world"
Created /concepts
[zk: localhost:2181(CONNECTED) 6] get /concepts
Hello world
cZxid = 0x3
ctime = Mon Nov 16 09:17:37 BRST 2015
mZxid = 0x3
mtime = Mon Nov 16 09:17:37 BRST 2015
pZxid = 0x3
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 11
numChildren = 0
{code}
OTOH, the json example on the description of this issue returns incomplete data
on GET, as below:
{code}
[zk: localhost:2181(CONNECTED) 7] create /contacts '{"country":"CA","name":"De
La Salle"}'
Node already exists: /contacts
[zk: localhost:2181(CONNECTED) 8] get /contacts
{"country":"CA","name":"De
cZxid = 0x2
ctime = Mon Nov 16 09:16:34 BRST 2015
mZxid = 0x2
mtime = Mon Nov 16 09:16:34 BRST 2015
pZxid = 0x2
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 26
numChildren = 0
{code}
Is this the expected behaviour of GET? Should we open a new JIRA to address it?
Best regards,
Ed
> zkCli.sh can't issue a CREATE command containing spaces in the data
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-1853
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1853
> Project: ZooKeeper
> Issue Type: Bug
> Components: java client
> Affects Versions: 3.4.6, 3.5.0
> Reporter: sekine coulibaly
> Assignee: Ryan Lamore
> Priority: Minor
> Labels: patch
> Fix For: 3.4.7, 3.5.2, 3.6.0
>
> Attachments: ZOOKEEPER-1853-branch-3.4.patch, ZOOKEEPER-1853.patch,
> ZOOKEEPER-1853.patch, ZOOKEEPER-1853.patch, ZkSpaceMan.java
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)