[GitHub] cloudstack pull request: Cwe 190

2015-12-06 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/1057 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] cloudstack pull request: Cwe 190

2015-12-06 Thread remibergsma
Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-162287862 LGTM based on these tests: ``` nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=true \ component/test_

[GitHub] cloudstack pull request: Cwe 190

2015-11-23 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-159176971 [1057.network.results.txt](https://github.com/apache/cloudstack/files/42440/1057.network.results.txt) [1057.vpc.results.txt](https://github.com/apache/clou

[GitHub] cloudstack pull request: Cwe 190

2015-11-23 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-159127988 @remibergsma, could you send me the stack trace of the test that failed? --- If your project is set up for it, you can reply to this email and have your r

[GitHub] cloudstack pull request: Cwe 190

2015-11-21 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158664606 @remibergsma for me test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL fails. That is not the one you meant is it? I also saw the failure you had. --- If y

[GitHub] cloudstack pull request: Cwe 190

2015-11-21 Thread remibergsma
Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158625241 :-) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature e

[GitHub] cloudstack pull request: Cwe 190

2015-11-21 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158624430 I was busy starting ;) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not

[GitHub] cloudstack pull request: Cwe 190

2015-11-21 Thread remibergsma
Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158624231 @DaanHoogland It could be a result of another failure. On master this test passes, so maybe you can run just this test yourself and look at the details? --- If

[GitHub] cloudstack pull request: Cwe 190

2015-11-21 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158620306 thanks @remibergsma ```cidr is not formatted correctly: cloud``` sound like a valid error message. not sure if it needs fixing in the test or in the code. ---

[GitHub] cloudstack pull request: Cwe 190

2015-11-21 Thread remibergsma
Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158613419 @DaanHoogland @rafaelweingartner Much better now, just one failed test to resolve: Failed test: `TestVPCRouterOneNetwork` ``` Execute cmd:

[GitHub] cloudstack pull request: Cwe 190

2015-11-20 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158499809 I understand why you closed the PR, but after a quick review, I thought that I could help you, so let’s see if now everything is ok --- If your project

[GitHub] cloudstack pull request: Cwe 190

2015-11-20 Thread DaanHoogland
GitHub user DaanHoogland reopened a pull request: https://github.com/apache/cloudstack/pull/1057 Cwe 190 coverity warnings of this type adressed. Some where dismissed and maybe with reason but it seemed possible to remove them and hence obligatory ;p You can merge this pull request

[GitHub] cloudstack pull request: Cwe 190

2015-11-20 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158486604 @rafaelweingartner thanks for picking this up. it is not a matter of giving up but of priorities and I didn't want to keep it open knowing there was work to do

[GitHub] cloudstack pull request: Cwe 190

2015-11-20 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158434570 Hi @DaanHoogland, Do not give up now, I really liked your PR. Those errors can be easily explained. You changed the behavior of com.cloud.utils.ne

[GitHub] cloudstack pull request: Cwe 190

2015-11-20 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158400754 to many unexplained failures for such a small refactor. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub

[GitHub] cloudstack pull request: Cwe 190

2015-11-20 Thread DaanHoogland
Github user DaanHoogland closed the pull request at: https://github.com/apache/cloudstack/pull/1057 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feat

[GitHub] cloudstack pull request: Cwe 190

2015-11-20 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158327637 @remibergsma running them myself as well, now --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. I

[GitHub] cloudstack pull request: Cwe 190

2015-11-19 Thread remibergsma
Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-158314116 FYI: @DaanHoogland My tests show 29 test failures. I will retest to be sure, but please hold until this is done. --- If your project is set up for it, you can

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread rafaelweingartner
Github user rafaelweingartner commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44524995 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -775,11 +776,19 @@ public static String getSubNet(final String ip, final

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread DaanHoogland
Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44520633 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -869,31 +878,44 @@ public static boolean isNetworkAWithinNetworkB(final Strin

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread wilderrodrigues
Github user wilderrodrigues commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44520446 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -869,31 +878,44 @@ public static boolean isNetworkAWithinNetworkB(final St

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread DaanHoogland
Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44519906 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -869,31 +878,44 @@ public static boolean isNetworkAWithinNetworkB(final Strin

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread wilderrodrigues
Github user wilderrodrigues commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44519815 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -869,31 +878,44 @@ public static boolean isNetworkAWithinNetworkB(final St

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread DaanHoogland
Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44515725 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -775,11 +776,19 @@ public static String getSubNet(final String ip, final Stri

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread DaanHoogland
Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44515734 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -869,31 +878,44 @@ public static boolean isNetworkAWithinNetworkB(final Strin

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread wilderrodrigues
Github user wilderrodrigues commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44515608 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -869,31 +878,44 @@ public static boolean isNetworkAWithinNetworkB(final St

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread wilderrodrigues
Github user wilderrodrigues commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1057#discussion_r44515580 --- Diff: utils/src/main/java/com/cloud/utils/net/NetUtils.java --- @@ -775,11 +776,19 @@ public static String getSubNet(final String ip, final S

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-155710622 @rafaelweingartner yes of course. you caught me pants down ;) --- If your project is set up for it, you can reply to this email and have your reply appear on G

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-155710538 I was just re-checking the code, what about creating a test case for "netMaskFromCidr" method? --- If your project is set up for it, you can reply to thi

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-155710144 That is it. Everything looks good to me now LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on G

[GitHub] cloudstack pull request: Cwe 190

2015-11-11 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-155708663 @rafaelweingartner sure, they're not needed but I'll add them for clarity. --- If your project is set up for it, you can reply to this email and have your repl

[GitHub] cloudstack pull request: Cwe 190

2015-11-10 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-155595924 Got it @DaanHoogland. What about using () to surround the “(long) 0x” in lines 885, 925 and 931 as you did in 779. --- If your project

[GitHub] cloudstack pull request: Cwe 190

2015-11-10 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-155577386 @rafaelweingartner the cast was the reason for starting this. Coverity complained about a 32 bit shift on an integer (31 bit + sign) --- If your project is se

[GitHub] cloudstack pull request: Cwe 190

2015-11-10 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/1057#issuecomment-155517568 @DaanHoogland, pretty good job, you created the test cases and removed the return null cases. I just have one question, why you use a cast for the octa

[GitHub] cloudstack pull request: Cwe 190

2015-11-10 Thread DaanHoogland
GitHub user DaanHoogland opened a pull request: https://github.com/apache/cloudstack/pull/1057 Cwe 190 coverity warnings of this type adressed. Some where dismissed and maybe with reason but it seemed possible to remove them and hence obligatory ;p You can merge this pull request i