zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2757) Incorrect path crashes zkCli
Date Fri, 26 May 2017 23:37:04 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027022#comment-16027022
] 

Hudson commented on ZOOKEEPER-2757:
-----------------------------------

FAILURE: Integrated in Jenkins build ZooKeeper-trunk #3403 (See [https://builds.apache.org/job/ZooKeeper-trunk/3403/])
ZOOKEEPER-2757: Incorrect path crashes zkCli (hanm: rev b0b194533c08c8a111497e853668f751b28ae4e9)
* (edit) src/java/main/org/apache/zookeeper/cli/DelQuotaCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/CreateCommand.java
* (add) src/java/main/org/apache/zookeeper/cli/MalformedPathException.java
* (edit) src/java/main/org/apache/zookeeper/cli/LsCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/StatCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/SyncCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/GetAclCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/DeleteCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/SetCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/Ls2Command.java
* (edit) src/java/main/org/apache/zookeeper/cli/SetAclCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/ListQuotaCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/RemoveWatchesCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/DeleteAllCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/SetQuotaCommand.java
* (edit) src/java/main/org/apache/zookeeper/cli/GetCommand.java


> Incorrect path crashes zkCli
> ----------------------------
>
>                 Key: ZOOKEEPER-2757
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2757
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.5.3
>            Reporter: Flavio Junqueira
>            Assignee: Abraham Fine
>            Priority: Minor
>             Fix For: 3.5.4, 3.6.0
>
>
> If I try {{delete test}} without the leading /, then the CLI crashes with this exception:
> {noformat}
> Exception in thread "main" java.lang.IllegalArgumentException: Path must start with /
character
> 	at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:51)
> 	at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:1659)
> 	at org.apache.zookeeper.cli.DeleteCommand.exec(DeleteCommand.java:83)
> 	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:655)
> 	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:586)
> 	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:370)
> 	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:330)
> 	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:292)
> {noformat}
> It should really fail the operation rather than crash the CLI.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message