[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2017-03-13 Thread Michael Han (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Han updated ZOOKEEPER-2019:
---
Fix Version/s: (was: 3.5.3)
   3.5.4

> Unhandled exception when setting invalid limits data in 
> /zookeeper/quota/some/path/zookeeper_limits 
> 
>
> Key: ZOOKEEPER-2019
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Reporter: Raul Gutierrez Segales
>Assignee: Raul Gutierrez Segales
> Fix For: 3.5.4, 3.6.0
>
> Attachments: ZOOKEEPER-2019.patch, ZOOKEEPER-2019.patch, 
> ZOOKEEPER-2019-v2.patch, ZOOKEEPER-2019-v3.patch, ZOOKEEPER-2019-ver1.patch
>
>
> If you have quotas properly set for a given path, i.e.:
> {noformat}
> create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
> create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
> {noformat}
> and then you update the limits znode with bogus data, i.e.:
> {noformat}
> set /zookeeper/quota/test/zookeeper_limits ''
> {noformat}
> you'll crash the cluster because IllegalArgumentException isn't handled when 
> dealing with quotas znodes:
> https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
> https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
> We should handle IllegalArgumentException. Optionally, we should also throw 
> BadArgumentsException from PrepRequestProcessor. 
> Review Board: https://reviews.apache.org/r/25968/



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


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2016-06-21 Thread Chris Nauroth (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Nauroth updated ZOOKEEPER-2019:
-
Fix Version/s: (was: 3.5.2)
   3.5.3

> Unhandled exception when setting invalid limits data in 
> /zookeeper/quota/some/path/zookeeper_limits 
> 
>
> Key: ZOOKEEPER-2019
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Reporter: Raul Gutierrez Segales
>Assignee: Raul Gutierrez Segales
> Fix For: 3.6.0, 3.5.3
>
> Attachments: ZOOKEEPER-2019-v2.patch, ZOOKEEPER-2019-v3.patch, 
> ZOOKEEPER-2019-ver1.patch, ZOOKEEPER-2019.patch, ZOOKEEPER-2019.patch
>
>
> If you have quotas properly set for a given path, i.e.:
> {noformat}
> create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
> create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
> {noformat}
> and then you update the limits znode with bogus data, i.e.:
> {noformat}
> set /zookeeper/quota/test/zookeeper_limits ''
> {noformat}
> you'll crash the cluster because IllegalArgumentException isn't handled when 
> dealing with quotas znodes:
> https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
> https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
> We should handle IllegalArgumentException. Optionally, we should also throw 
> BadArgumentsException from PrepRequestProcessor. 
> Review Board: https://reviews.apache.org/r/25968/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2014-09-23 Thread Hongchao Deng (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongchao Deng updated ZOOKEEPER-2019:
-
Attachment: ZOOKEEPER-2019-v3.patch

fix findbug warning.

 Unhandled exception when setting invalid limits data in 
 /zookeeper/quota/some/path/zookeeper_limits 
 

 Key: ZOOKEEPER-2019
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Reporter: Raul Gutierrez Segales
Assignee: Raul Gutierrez Segales
 Fix For: 3.5.1

 Attachments: ZOOKEEPER-2019-v2.patch, ZOOKEEPER-2019-v3.patch, 
 ZOOKEEPER-2019-ver1.patch, ZOOKEEPER-2019.patch, ZOOKEEPER-2019.patch


 If you have quotas properly set for a given path, i.e.:
 {noformat}
 create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
 create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
 {noformat}
 and then you update the limits znode with bogus data, i.e.:
 {noformat}
 set /zookeeper/quota/test/zookeeper_limits ''
 {noformat}
 you'll crash the cluster because IllegalArgumentException isn't handled when 
 dealing with quotas znodes:
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
 We should handle IllegalArgumentException. Optionally, we should also throw 
 BadArgumentsException from PrepRequestProcessor. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2014-09-23 Thread Hongchao Deng (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongchao Deng updated ZOOKEEPER-2019:
-
Attachment: (was: ZOOKEEPER-2019-v3.patch)

 Unhandled exception when setting invalid limits data in 
 /zookeeper/quota/some/path/zookeeper_limits 
 

 Key: ZOOKEEPER-2019
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Reporter: Raul Gutierrez Segales
Assignee: Raul Gutierrez Segales
 Fix For: 3.5.1

 Attachments: ZOOKEEPER-2019-v2.patch, ZOOKEEPER-2019-v3.patch, 
 ZOOKEEPER-2019-ver1.patch, ZOOKEEPER-2019.patch, ZOOKEEPER-2019.patch


 If you have quotas properly set for a given path, i.e.:
 {noformat}
 create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
 create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
 {noformat}
 and then you update the limits znode with bogus data, i.e.:
 {noformat}
 set /zookeeper/quota/test/zookeeper_limits ''
 {noformat}
 you'll crash the cluster because IllegalArgumentException isn't handled when 
 dealing with quotas znodes:
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
 We should handle IllegalArgumentException. Optionally, we should also throw 
 BadArgumentsException from PrepRequestProcessor. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2014-09-23 Thread Hongchao Deng (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongchao Deng updated ZOOKEEPER-2019:
-
Attachment: ZOOKEEPER-2019-v3.patch

The previous v3 was a wrong one uploaded...

 Unhandled exception when setting invalid limits data in 
 /zookeeper/quota/some/path/zookeeper_limits 
 

 Key: ZOOKEEPER-2019
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Reporter: Raul Gutierrez Segales
Assignee: Raul Gutierrez Segales
 Fix For: 3.5.1

 Attachments: ZOOKEEPER-2019-v2.patch, ZOOKEEPER-2019-v3.patch, 
 ZOOKEEPER-2019-ver1.patch, ZOOKEEPER-2019.patch, ZOOKEEPER-2019.patch


 If you have quotas properly set for a given path, i.e.:
 {noformat}
 create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
 create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
 {noformat}
 and then you update the limits znode with bogus data, i.e.:
 {noformat}
 set /zookeeper/quota/test/zookeeper_limits ''
 {noformat}
 you'll crash the cluster because IllegalArgumentException isn't handled when 
 dealing with quotas znodes:
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
 We should handle IllegalArgumentException. Optionally, we should also throw 
 BadArgumentsException from PrepRequestProcessor. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2014-09-23 Thread Hongchao Deng (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongchao Deng updated ZOOKEEPER-2019:
-
Description: 
If you have quotas properly set for a given path, i.e.:

{noformat}
create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
{noformat}

and then you update the limits znode with bogus data, i.e.:

{noformat}
set /zookeeper/quota/test/zookeeper_limits ''
{noformat}

you'll crash the cluster because IllegalArgumentException isn't handled when 
dealing with quotas znodes:

https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425

We should handle IllegalArgumentException. Optionally, we should also throw 
BadArgumentsException from PrepRequestProcessor. 

Review Board: https://reviews.apache.org/r/25968/

  was:
If you have quotas properly set for a given path, i.e.:

{noformat}
create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
{noformat}

and then you update the limits znode with bogus data, i.e.:

{noformat}
set /zookeeper/quota/test/zookeeper_limits ''
{noformat}

you'll crash the cluster because IllegalArgumentException isn't handled when 
dealing with quotas znodes:

https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425

We should handle IllegalArgumentException. Optionally, we should also throw 
BadArgumentsException from PrepRequestProcessor. 


 Unhandled exception when setting invalid limits data in 
 /zookeeper/quota/some/path/zookeeper_limits 
 

 Key: ZOOKEEPER-2019
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Reporter: Raul Gutierrez Segales
Assignee: Raul Gutierrez Segales
 Fix For: 3.5.1

 Attachments: ZOOKEEPER-2019-v2.patch, ZOOKEEPER-2019-v3.patch, 
 ZOOKEEPER-2019-ver1.patch, ZOOKEEPER-2019.patch, ZOOKEEPER-2019.patch


 If you have quotas properly set for a given path, i.e.:
 {noformat}
 create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
 create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
 {noformat}
 and then you update the limits znode with bogus data, i.e.:
 {noformat}
 set /zookeeper/quota/test/zookeeper_limits ''
 {noformat}
 you'll crash the cluster because IllegalArgumentException isn't handled when 
 dealing with quotas znodes:
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
 We should handle IllegalArgumentException. Optionally, we should also throw 
 BadArgumentsException from PrepRequestProcessor. 
 Review Board: https://reviews.apache.org/r/25968/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2014-09-10 Thread Rakesh R (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rakesh R updated ZOOKEEPER-2019:

Fix Version/s: (was: 3.5.0)
   3.5.1

 Unhandled exception when setting invalid limits data in 
 /zookeeper/quota/some/path/zookeeper_limits 
 

 Key: ZOOKEEPER-2019
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Reporter: Raul Gutierrez Segales
Assignee: Raul Gutierrez Segales
 Fix For: 3.5.1

 Attachments: ZOOKEEPER-2019-ver1.patch, ZOOKEEPER-2019.patch, 
 ZOOKEEPER-2019.patch


 If you have quotas properly set for a given path, i.e.:
 {noformat}
 create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
 create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
 {noformat}
 and then you update the limits znode with bogus data, i.e.:
 {noformat}
 set /zookeeper/quota/test/zookeeper_limits ''
 {noformat}
 you'll crash the cluster because IllegalArgumentException isn't handled when 
 dealing with quotas znodes:
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
 We should handle IllegalArgumentException. Optionally, we should also throw 
 BadArgumentsException from PrepRequestProcessor. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2014-08-25 Thread Raul Gutierrez Segales (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raul Gutierrez Segales updated ZOOKEEPER-2019:
--

Attachment: ZOOKEEPER-2019.patch

Thanks for the quick review [~shralex], I've addressed the items you mentioned.

 Unhandled exception when setting invalid limits data in 
 /zookeeper/quota/some/path/zookeeper_limits 
 

 Key: ZOOKEEPER-2019
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Reporter: Raul Gutierrez Segales
Assignee: Raul Gutierrez Segales
 Fix For: 3.5.0

 Attachments: ZOOKEEPER-2019.patch, ZOOKEEPER-2019.patch


 If you have quotas properly set for a given path, i.e.:
 {noformat}
 create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
 create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
 {noformat}
 and then you update the limits znode with bogus data, i.e.:
 {noformat}
 set /zookeeper/quota/test/zookeeper_limits ''
 {noformat}
 you'll crash the cluster because IllegalArgumentException isn't handled when 
 dealing with quotas znodes:
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
 We should handle IllegalArgumentException. Optionally, we should also throw 
 BadArgumentsException from PrepRequestProcessor. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2014-08-25 Thread Alexander Shraer (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Shraer updated ZOOKEEPER-2019:


Attachment: ZOOKEEPER-2019-ver1.patch

Thanks Raul! I made a small change to the code that was doing the parsing, take 
a look. The motivation is to check not only the numbers but also the strings 
'count' and 'bytes' and throw an exception if something is wrong. 

 Unhandled exception when setting invalid limits data in 
 /zookeeper/quota/some/path/zookeeper_limits 
 

 Key: ZOOKEEPER-2019
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Reporter: Raul Gutierrez Segales
Assignee: Raul Gutierrez Segales
 Fix For: 3.5.0

 Attachments: ZOOKEEPER-2019-ver1.patch, ZOOKEEPER-2019.patch, 
 ZOOKEEPER-2019.patch


 If you have quotas properly set for a given path, i.e.:
 {noformat}
 create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
 create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
 {noformat}
 and then you update the limits znode with bogus data, i.e.:
 {noformat}
 set /zookeeper/quota/test/zookeeper_limits ''
 {noformat}
 you'll crash the cluster because IllegalArgumentException isn't handled when 
 dealing with quotas znodes:
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
 We should handle IllegalArgumentException. Optionally, we should also throw 
 BadArgumentsException from PrepRequestProcessor. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (ZOOKEEPER-2019) Unhandled exception when setting invalid limits data in /zookeeper/quota/some/path/zookeeper_limits

2014-08-22 Thread Raul Gutierrez Segales (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raul Gutierrez Segales updated ZOOKEEPER-2019:
--

Attachment: ZOOKEEPER-2019.patch

This is does the bare minimum (i.e.: doesn't crash when reading a bad 
zookeeper_limits znode). We could probably do more, i.e.: sanitize 
zookeeper_limits znodes as they are being created/updated (the reconfig 
commands do this). But since the quotas stuff might change (it's very basic 
currently) Maybe we don't want to set validations yet.

Thoughts?

cc: [~phunt], [~shralex], [~hdeng]

 Unhandled exception when setting invalid limits data in 
 /zookeeper/quota/some/path/zookeeper_limits 
 

 Key: ZOOKEEPER-2019
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2019
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Reporter: Raul Gutierrez Segales
Assignee: Raul Gutierrez Segales
 Fix For: 3.5.0

 Attachments: ZOOKEEPER-2019.patch


 If you have quotas properly set for a given path, i.e.:
 {noformat}
 create /zookeeper/quota/test/zookeeper_limits 'count=1,bytes=100'
 create /zookeeper/quota/test/zookeeper_stats 'count=1,bytes=100'
 {noformat}
 and then you update the limits znode with bogus data, i.e.:
 {noformat}
 set /zookeeper/quota/test/zookeeper_limits ''
 {noformat}
 you'll crash the cluster because IllegalArgumentException isn't handled when 
 dealing with quotas znodes:
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L379
 https://github.com/apache/zookeeper/blob/ZOOKEEPER-823/src/java/main/org/apache/zookeeper/server/DataTree.java#L425
 We should handle IllegalArgumentException. Optionally, we should also throw 
 BadArgumentsException from PrepRequestProcessor. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)