[jira] Updated: (ZOOKEEPER-192) trailing whitespace in config file can cause number format exceptions

2009-05-22 Thread Benjamin Reed (JIRA)

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

Benjamin Reed updated ZOOKEEPER-192:


Resolution: Fixed
Status: Resolved  (was: Patch Available)

Committed revision 777658.


> trailing whitespace in config file can cause number format exceptions
> -
>
> Key: ZOOKEEPER-192
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-192
> Project: Zookeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.0.0
>Reporter: Patrick Hunt
>Assignee: Patrick Hunt
>Priority: Minor
> Fix For: 3.2.0
>
> Attachments: ZOOKEEPER-192.patch
>
>
> a config file with trailing whitespace can cause number format exception
> for example a line such as
> clientPort=2181
> where 2181 is followed by a space character, will fail to parse with number 
> format excetion "2181 " (notice the space).
> We need to trim whitespace when parsing numbers

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-192) trailing whitespace in config file can cause number format exceptions

2009-05-22 Thread Benjamin Reed (JIRA)

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

Benjamin Reed updated ZOOKEEPER-192:


Hadoop Flags: [Reviewed]

+1 looks good

> trailing whitespace in config file can cause number format exceptions
> -
>
> Key: ZOOKEEPER-192
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-192
> Project: Zookeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.0.0
>Reporter: Patrick Hunt
>Assignee: Patrick Hunt
>Priority: Minor
> Fix For: 3.2.0
>
> Attachments: ZOOKEEPER-192.patch
>
>
> a config file with trailing whitespace can cause number format exception
> for example a line such as
> clientPort=2181
> where 2181 is followed by a space character, will fail to parse with number 
> format excetion "2181 " (notice the space).
> We need to trim whitespace when parsing numbers

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-192) trailing whitespace in config file can cause number format exceptions

2009-05-21 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-192:
---

Attachment: ZOOKEEPER-192.patch

added trim() for key/value when reading config file.

added test that verifies

> trailing whitespace in config file can cause number format exceptions
> -
>
> Key: ZOOKEEPER-192
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-192
> Project: Zookeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.0.0
>Reporter: Patrick Hunt
>Assignee: Patrick Hunt
>Priority: Minor
> Fix For: 3.2.0
>
> Attachments: ZOOKEEPER-192.patch
>
>
> a config file with trailing whitespace can cause number format exception
> for example a line such as
> clientPort=2181
> where 2181 is followed by a space character, will fail to parse with number 
> format excetion "2181 " (notice the space).
> We need to trim whitespace when parsing numbers

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-192) trailing whitespace in config file can cause number format exceptions

2009-05-21 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-192:
---

Status: Patch Available  (was: Open)

> trailing whitespace in config file can cause number format exceptions
> -
>
> Key: ZOOKEEPER-192
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-192
> Project: Zookeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.0.0
>Reporter: Patrick Hunt
>Assignee: Patrick Hunt
>Priority: Minor
> Fix For: 3.2.0
>
> Attachments: ZOOKEEPER-192.patch
>
>
> a config file with trailing whitespace can cause number format exception
> for example a line such as
> clientPort=2181
> where 2181 is followed by a space character, will fail to parse with number 
> format excetion "2181 " (notice the space).
> We need to trim whitespace when parsing numbers

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-192) trailing whitespace in config file can cause number format exceptions

2009-03-12 Thread Patrick Hunt (JIRA)

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

Patrick Hunt updated ZOOKEEPER-192:
---

Fix Version/s: 3.2.0

> trailing whitespace in config file can cause number format exceptions
> -
>
> Key: ZOOKEEPER-192
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-192
> Project: Zookeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.0.0
>Reporter: Patrick Hunt
>Priority: Minor
> Fix For: 3.2.0
>
>
> a config file with trailing whitespace can cause number format exception
> for example a line such as
> clientPort=2181
> where 2181 is followed by a space character, will fail to parse with number 
> format excetion "2181 " (notice the space).
> We need to trim whitespace when parsing numbers

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.