You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Hugo Trippaers <hu...@trippaers.nl> on 2014/01/25 12:39:06 UTC
Findbugs report on 4.3-forward
Hey all,
I’ve made Jenkins run the findbugs analysis on 4.3-forward. Is there somebody who is willing to help triage the findings? Maybe there is some stuff that we need to fix?
the url is http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build/3/findbugsResult/
Cheers,
Hugo
Re: Findbugs report on 4.3-forward
Posted by David Nalley <da...@gnsa.us>.
On Mon, Jan 27, 2014 at 2:58 PM, Hugo Trippaers <tr...@gmail.com> wrote:
> Hey David,
>
> As always you are completely right.
I plan on referring to this message alot in the future. Especially in
discussions with my wife. :)
> I feel a bit bad about getting the findbugs report through at the last moment. However the coverity reports (with 6000+ issues) didn't make it easy to find what really needed fixing.
>
> However the fixes we made based on findbugs are pretty nasty. Especially the == vs equals can have some serious impact in how things behave.
>
Agreed == vs eq could have had very bad impact. I just don't want us
fixing things 'just because' this close to 4.3.0. Worried the medicine
is worse than the disease. (doesn't mean they shouldn't be fixed in
4.3-forward and master - please fix everything we can)
> From my end I'm tackling this as follows. We (Schuberg) have a limited functional test environment that runs the basic create zone with zen test. I have manual tests that will cover Nicira support for advanced zones with VR, VPC and NVP router. I won't vote +1 before these tests complete.
>
> Maybe some other folks can respond with what tests they are doing pre release so we have an idea on what is covered when somebody gives a +1. Actually I would rather have the report now, any test findings now will save animesh quite some time in doing all the work to cut the next RC.
>
Agreed - I'd really like to see the smoke and regression tests running
to make sure that we haven't accidentally 'fixed' ourselves into new
bugs.
--David
Re: Findbugs report on 4.3-forward
Posted by Hugo Trippaers <tr...@gmail.com>.
Hey David,
As always you are completely right. I feel a bit bad about getting the findbugs report through at the last moment. However the coverity reports (with 6000+ issues) didn't make it easy to find what really needed fixing.
However the fixes we made based on findbugs are pretty nasty. Especially the == vs equals can have some serious impact in how things behave.
From my end I'm tackling this as follows. We (Schuberg) have a limited functional test environment that runs the basic create zone with zen test. I have manual tests that will cover Nicira support for advanced zones with VR, VPC and NVP router. I won't vote +1 before these tests complete.
Maybe some other folks can respond with what tests they are doing pre release so we have an idea on what is covered when somebody gives a +1. Actually I would rather have the report now, any test findings now will save animesh quite some time in doing all the work to cut the next RC.
Cheers,
Hugo
Sent from my iPhone
> On 27 jan. 2014, at 20:46, David Nalley <da...@gnsa.us> wrote:
>
> So just curious if I am the only one concerned about a ton of fixes
> going in at the last minute. If the fixes are for serious bugs and we
> have consensus around their severity being high enough, indeed lets
> fix things. My concern is that much of the QA we do is manual; and
> while we are getting better; fixing tons of things at the last minute
> may have unintended consequences that we don't know about and won't
> easily find.
>
> I yearn for the day when our automated testing is broad enough that we
> can do fixes right up to the wire and know that things still work, I
> am just not sure that I have confidence that we are there yet.
> Thoughts? I am being paranoid?
>
> --David
>
>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <da...@gmail.com> wrote:
>> Animesh, I commented the once i made yesterday with findbugs:
>>
>> I allready send a few and will get you a list of the rest later today.
>>
>> regards,
>>
>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>> <an...@citrix.com> wrote:
>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch. Are their specific commits you want me to pick up out of these?
>>>
>>> Animesh
>>>
>>> -----Original Message-----
>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>> Sent: Sunday, January 26, 2014 2:41 AM
>>> To: dev
>>> Subject: Re: Findbugs report on 4.3-forward
>>>
>>> I didn't get very far last night and will be looking at the server package again this afternoon.
>>>
>>> bon appétit,
>>>
>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>> Hi,
>>>>
>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>
>>>> Have pushed to 4.3-forward.
>>>>
>>>> Thanks,
>>>> Ian
>>>>
>>>>
>>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com> wrote:
>>>>
>>>>>> or reply to this mail with the filename you are working on
>>>>> I'll be looking at the server package as it seems to contain the most
>>>>> issues.
>>>>>
>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>>>>>> I've also added a job to master with the Findbugs report and the
>>>>> cobertura code coverage report.
>>>>>>
>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>> Huge
>>>>> improvement over the last release where we had 4% iirc. We have 306
>>>>> reports from Findbugs, of which the majority are internationalization issues.
>>>>> (String.getBytes without charset mostly). On the coverity site we
>>>>> have
>>>>> 6000+ issues still open, but at least that number is relatively
>>>>> 6000+ stable, we
>>>>> fix as much issues as we introduce and it's untuned so we can assume
>>>>> a large number of false positives there.
>>>>>>
>>>>>> I think that on average the automated tools tell us that code
>>>>>> quality is
>>>>> improving, which a good thing. Combined with the functional testing
>>>>> and the simulator build we can prove that we are doing quite well on
>>>>> the code quality angle.
>>>>>>
>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> Hugo
>>>>>>
>>>>>>
>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> H Hugo,
>>>>>>>
>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>> distribution scheme or is it random access?
>>>>>>> ;)
>>>>>>>
>>>>>>> regards
>>>>>>>
>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>> <hu...@trippaers.nl>
>>>>> wrote:
>>>>>>>> Hey all,
>>>>>>>>
>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>>>>>>>> there
>>>>> somebody who is willing to help triage the findings? Maybe there is
>>>>> some stuff that we need to fix?
>>>>>>>>
>>>>>>>> the url is
>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build
>>>>> /3/findbugsResult/
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> Hugo
>>>>>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
-----Original Message-----
From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
Sent: Wednesday, January 29, 2014 1:06 PM
To: dev; Animesh Chaturvedi
Subject: Re: Findbugs report on 4.3-forward
H Animesh,
I am done cherry-picking, compiling and pushing.
[Animesh] Cool, I will also need to pull in fix from Syed
I wonder if now is opportune to build a new rc. shouldn't we wait till more people have tested?
[Animesh] I guess we should still push an RC because without an RC the feedback trickles slowly.
I for instance (doing a quarter of the test plans that we have at Schuberg Philis) ran into some issues and am not sure yet if they are in the rc or in my env. Also my colleagues are busy testing I know and will continue at it. I am not sure what procedures are at other plants but I would hope something similar.
regards,
On Wed, Jan 29, 2014 at 9:52 PM, Daan Hoogland <da...@gmail.com> wrote:
> On Wed, Jan 29, 2014 at 9:50 PM, Daan Hoogland <da...@gmail.com> wrote:
>> and will the push
>
> and will then push
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
H Animesh,
I am done cherry-picking, compiling and pushing.
I wonder if now is opportune to build a new rc. shouldn't we wait till
more people have tested? I for instance (doing a quarter of the test
plans that we have at Schuberg Philis) ran into some issues and am not
sure yet if they are in the rc or in my env. Also my colleagues are
busy testing I know and will continue at it. I am not sure what
procedures are at other plants but I would hope something similar.
regards,
On Wed, Jan 29, 2014 at 9:52 PM, Daan Hoogland <da...@gmail.com> wrote:
> On Wed, Jan 29, 2014 at 9:50 PM, Daan Hoogland <da...@gmail.com> wrote:
>> and will the push
>
> and will then push
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
On Wed, Jan 29, 2014 at 9:50 PM, Daan Hoogland <da...@gmail.com> wrote:
> and will the push
and will then push
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
On Wed, Jan 29, 2014 at 9:36 PM, Animesh Chaturvedi
<an...@citrix.com> wrote:
> [Animesh] I know but at this time we need closer scrutiny and just the specific change helps in that. There was a similar comment in private when some of us were reviewing security patches.
point taken
I am not cherry picking the serializable issues and the hiding
overidden fields issues.
also
- result.replaceAll("<br>", "/n");
+ result = result.replaceAll("<br>", "/n");
where result is returned without the replacement , because i think /n
should be \n anyway
I have removed excess formatting changes in only one case. I am going
to run a test compile and will the push
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
-----Original Message-----
From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
Sent: Wednesday, January 29, 2014 12:14 PM
To: dev
Subject: Re: Findbugs report on 4.3-forward
On Wed, Jan 29, 2014 at 8:48 PM, Animesh Chaturvedi <an...@citrix.com> wrote:
> Instant gratification on fixing something is trumping managing risk.
I don't think I like the implication of that remark. I am sure you mean well and are tired.
[Animesh] Of course Daan, I guess I need more caffeine
> The patches are littered with formatting changes that make review timeconsuming.
Those are caused by a well accepted automatic feature for eclipse that we agreed to use.
[Animesh] I know but at this time we need closer scrutiny and just the specific change helps in that. There was a similar comment in private when some of us were reviewing security patches.
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
On Wed, Jan 29, 2014 at 8:48 PM, Animesh Chaturvedi
<an...@citrix.com> wrote:
> Instant gratification on fixing something is trumping managing risk.
I don't think I like the implication of that remark. I am sure you
mean well and are tired.
> The patches are littered with formatting changes that make review timeconsuming.
Those are caused by a well accepted automatic feature for eclipse that
we agreed to use.
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com]
Sent: Wednesday, January 29, 2014 11:15 AM
To: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
I agree that quality should be our primary focus.
[Animesh] No one would disagree that quality should be the focus
My one point of caution here would be, "How risky are these fixes?"
[Animesh] Exactly release management is about mitigating risks.
Just because we believe we have fixes for issues does not necessarily mean they should be put in a release late in the game. We have to weigh the benefits of having the fixes versus the risks of introducing them so late in the game.
[Animesh] That's my opinion too. Instant gratification on fixing something is trumping managing risk. The patches are littered with formatting changes that make review timeconsuming.
Now, I don't know what fixes we're referring to here (I haven't read through this entire e-mail chain), but I just wanted to throw that out there.
Thanks!
On Wed, Jan 29, 2014 at 12:04 PM, Chip Childers <ch...@apache.org>wrote:
> On Tue, Jan 28, 2014 at 11:36:52PM +0100, Hugo Trippaers wrote:
> > Hey Animesh,
> >
> > Not in agreement here. These are squashed bugs and we want as less
> > bugs
> in the release as possible.
> >
> > This is why we test any RC before we release it. I say include all
> > the
> big fixes we have in the release. If that means more testing before we
> cut the RC then that is what it is. I can't rightfully vote for a
> release with known issues with existing fixes. Quality over release
> schedule would be my vote then.
> >
> > Cheers,
> > Hugo
>
> +1 - to me, the schedule is really about constraining scope. Quality
> should be primary.
>
--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*(tm)*
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
good point Mike,
I would like to add that in our case 'quality' means 'usability'. We
are not writing military or madical grade code. However I don't want
to tell a big far eastern telco that their it is out because i left an
== in the code that was meant to be an equals() call, or a leak
because a set of lists of storage pools is removed from a list of
longs, resulting in no action and their ids therefor stay in the list
of poolsToAvoid.
Note that other types of examples exist.
In short if we don't like the risk we do need to consider those fixes
one by one. And even then we are closing our eyes for what we now know
because of findbugs. I only resolved the scariest and only in the
server package (and Ian did one in ldap)
anyways, I am testing and have found other issues. I am not ready to
say -1 yet but who knows. life is a mystery
On Wed, Jan 29, 2014 at 8:14 PM, Mike Tutkowski
<mi...@solidfire.com> wrote:
> I agree that quality should be our primary focus. My one point of caution
> here would be, "How risky are these fixes?"
>
> Just because we believe we have fixes for issues does not necessarily mean
> they should be put in a release late in the game. We have to weigh the
> benefits of having the fixes versus the risks of introducing them so late
> in the game.
>
> Now, I don't know what fixes we're referring to here (I haven't read
> through this entire e-mail chain), but I just wanted to throw that out
> there.
>
> Thanks!
>
>
> On Wed, Jan 29, 2014 at 12:04 PM, Chip Childers <ch...@apache.org>wrote:
>
>> On Tue, Jan 28, 2014 at 11:36:52PM +0100, Hugo Trippaers wrote:
>> > Hey Animesh,
>> >
>> > Not in agreement here. These are squashed bugs and we want as less bugs
>> in the release as possible.
>> >
>> > This is why we test any RC before we release it. I say include all the
>> big fixes we have in the release. If that means more testing before we cut
>> the RC then that is what it is. I can't rightfully vote for a release with
>> known issues with existing fixes. Quality over release schedule would be my
>> vote then.
>> >
>> > Cheers,
>> > Hugo
>>
>> +1 - to me, the schedule is really about constraining scope. Quality
>> should be primary.
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *(tm)*
Re: Findbugs report on 4.3-forward
Posted by Mike Tutkowski <mi...@solidfire.com>.
I agree that quality should be our primary focus. My one point of caution
here would be, "How risky are these fixes?"
Just because we believe we have fixes for issues does not necessarily mean
they should be put in a release late in the game. We have to weigh the
benefits of having the fixes versus the risks of introducing them so late
in the game.
Now, I don't know what fixes we're referring to here (I haven't read
through this entire e-mail chain), but I just wanted to throw that out
there.
Thanks!
On Wed, Jan 29, 2014 at 12:04 PM, Chip Childers <ch...@apache.org>wrote:
> On Tue, Jan 28, 2014 at 11:36:52PM +0100, Hugo Trippaers wrote:
> > Hey Animesh,
> >
> > Not in agreement here. These are squashed bugs and we want as less bugs
> in the release as possible.
> >
> > This is why we test any RC before we release it. I say include all the
> big fixes we have in the release. If that means more testing before we cut
> the RC then that is what it is. I can't rightfully vote for a release with
> known issues with existing fixes. Quality over release schedule would be my
> vote then.
> >
> > Cheers,
> > Hugo
>
> +1 - to me, the schedule is really about constraining scope. Quality
> should be primary.
>
--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*(tm)*
Re: Findbugs report on 4.3-forward
Posted by Chip Childers <ch...@apache.org>.
On Tue, Jan 28, 2014 at 11:36:52PM +0100, Hugo Trippaers wrote:
> Hey Animesh,
>
> Not in agreement here. These are squashed bugs and we want as less bugs in the release as possible.
>
> This is why we test any RC before we release it. I say include all the big fixes we have in the release. If that means more testing before we cut the RC then that is what it is. I can't rightfully vote for a release with known issues with existing fixes. Quality over release schedule would be my vote then.
>
> Cheers,
> Hugo
+1 - to me, the schedule is really about constraining scope. Quality
should be primary.
Re: Findbugs report on 4.3-forward
Posted by Rajani Karuturi <Ra...@citrix.com>.
toString() will just print its hashcode.
I think what we should be doing is new String(Base64.encode(bytes)) instead of Base64.encode(bytes).toString()
~Rajani
On 28-Jan-2014, at 2:28 pm, Ian Duffy <ia...@ianduffy.ie>> wrote:
Rajani,
The findbugs report recorded that the conversion from the bytes array to a
string failed. As a result the database value was ending up as some object.
On 28 January 2014 08:49, Rajani Karuturi <Ra...@citrix.com>>wrote:
Hi Ian,
Any reasons for changing the LDAP random password logic? I think this way
it would make it less secure than the previous one.
Thanks,
~Rajani
On 28-Jan-2014, at 10:55 am, Ian Duffy <ia...@ianduffy.ie>> wrote:
Hi Animesh,
Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
Fix findbug issues within LDAP authenticator
commit 92b4f66d73562e4211d2d787554ff229dbeb5705
Thanks,
Ian
On 28 January 2014 03:48, Animesh Chaturvedi
<an...@citrix.com>>wrote:
Hugo I was reviewing your commits to 4.3-forward and looked at your
commits
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=f18c5a1910b6370585a1d61638b8310c3ecba5ef
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=60ac12780bfa1604902a89d5dc7937a8b9334e0d
I think you want the last one which has fixes for NetUtils and
XenServerStorageMotionStrategy for which you had put -1 in first RC but
the
commit includes more files. Can you make limited changes directly to
4.3? I
want to build another RC later tonight
Animesh
-----Original Message-----
From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
Sent: Monday, January 27, 2014 1:30 PM
To: dev@cloudstack.apache.org
Subject: RE: Findbugs report on 4.3-forward
Agreed
We need to fix the most important ones for 4.3. There may be assumptions
in the code which we may not know and may get broken if these issues are
fixed late. I will pull in the one Hugo casted his -1 for the first
vote,
any others?
Animesh
-----Original Message-----
From: David Nalley [mailto:david@gnsa.us]
Sent: Monday, January 27, 2014 11:46 AM
To: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
So just curious if I am the only one concerned about a ton of fixes
going
in at the last minute. If the fixes are for serious bugs and we have
consensus around their severity being high enough, indeed lets fix
things.
My concern is that much of the QA we do is manual; and while we are
getting
better; fixing tons of things at the last minute may have unintended
consequences that we don't know about and won't easily find.
I yearn for the day when our automated testing is broad enough that we
can
do fixes right up to the wire and know that things still work, I am just
not sure that I have confidence that we are there yet.
Thoughts? I am being paranoid?
--David
On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <daan.hoogland@gmail.com
wrote:
Animesh, I commented the once i made yesterday with findbugs:
I allready send a few and will get you a list of the rest later today.
regards,
On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
<an...@citrix.com> wrote:
Good job fellas. I see a number of commits 20+ into 4.3-forward
branch.
Are their specific commits you want me to pick up out of these?
Animesh
-----Original Message-----
From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
Sent: Sunday, January 26, 2014 2:41 AM
To: dev
Subject: Re: Findbugs report on 4.3-forward
I didn't get very far last night and will be looking at the server
package again this afternoon.
bon appétit,
On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
Hi,
Fixed the issues highlighted in the ldap user authentication package.
Have pushed to 4.3-forward.
Thanks,
Ian
On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
wrote:
or reply to this mail with the filename you are working on
I'll be looking at the server package as it seems to contain the
most issues.
On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl>
wrote:
I've also added a job to master with the Findbugs report and the
cobertura code coverage report.
Good stuff, we have a 12% coverage of our classes with unit tests.
Huge
improvement over the last release where we had 4% iirc. We have 306
reports from Findbugs, of which the majority are
internationalization
issues.
(String.getBytes without charset mostly). On the coverity site we
have
6000+ issues still open, but at least that number is relatively
6000+ stable, we
fix as much issues as we introduce and it's untuned so we can
assume a large number of false positives there.
I think that on average the automated tools tell us that code
quality is
improving, which a good thing. Combined with the functional testing
and the simulator build we can prove that we are doing quite well
on the code quality angle.
http://jenkins.buildacloud.org/job/build-master-slowbuild/
Cheers,
Hugo
On 25 jan. 2014, at 14:13, Daan Hoogland
<da...@gmail.com>
wrote:
H Hugo,
I'll spend some time on it tonight. Do you have a work load
distribution scheme or is it random access?
;)
regards
On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
<hu...@trippaers.nl>
wrote:
Hey all,
I've made Jenkins run the findbugs analysis on 4.3-forward. Is
there
somebody who is willing to help triage the findings? Maybe there is
some stuff that we need to fix?
the url is
http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-bui
ld
/3/findbugsResult/
Cheers,
Hugo
Re: Findbugs report on 4.3-forward
Posted by Ian Duffy <ia...@ianduffy.ie>.
Rajani,
The findbugs report recorded that the conversion from the bytes array to a
string failed. As a result the database value was ending up as some object.
On 28 January 2014 08:49, Rajani Karuturi <Ra...@citrix.com>wrote:
> Hi Ian,
> Any reasons for changing the LDAP random password logic? I think this way
> it would make it less secure than the previous one.
>
> Thanks,
> ~Rajani
>
>
>
> On 28-Jan-2014, at 10:55 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>
> > Hi Animesh,
> >
> > Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
> >
> > Fix findbug issues within LDAP authenticator
> > commit 92b4f66d73562e4211d2d787554ff229dbeb5705
> >
> > Thanks,
> > Ian
> >
> > On 28 January 2014 03:48, Animesh Chaturvedi
> > <an...@citrix.com>wrote:
> >
> >> Hugo I was reviewing your commits to 4.3-forward and looked at your
> commits
> >>
> >>
> >>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=f18c5a1910b6370585a1d61638b8310c3ecba5ef
> >>
> >>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=60ac12780bfa1604902a89d5dc7937a8b9334e0d
> >> I think you want the last one which has fixes for NetUtils and
> >> XenServerStorageMotionStrategy for which you had put -1 in first RC but
> the
> >> commit includes more files. Can you make limited changes directly to
> 4.3? I
> >> want to build another RC later tonight
> >>
> >> Animesh
> >>
> >>
> >> -----Original Message-----
> >> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
> >> Sent: Monday, January 27, 2014 1:30 PM
> >> To: dev@cloudstack.apache.org
> >> Subject: RE: Findbugs report on 4.3-forward
> >>
> >> Agreed
> >>
> >> We need to fix the most important ones for 4.3. There may be assumptions
> >> in the code which we may not know and may get broken if these issues are
> >> fixed late. I will pull in the one Hugo casted his -1 for the first
> vote,
> >> any others?
> >>
> >> Animesh
> >>
> >> -----Original Message-----
> >> From: David Nalley [mailto:david@gnsa.us]
> >> Sent: Monday, January 27, 2014 11:46 AM
> >> To: dev@cloudstack.apache.org
> >> Subject: Re: Findbugs report on 4.3-forward
> >>
> >> So just curious if I am the only one concerned about a ton of fixes
> going
> >> in at the last minute. If the fixes are for serious bugs and we have
> >> consensus around their severity being high enough, indeed lets fix
> things.
> >> My concern is that much of the QA we do is manual; and while we are
> getting
> >> better; fixing tons of things at the last minute may have unintended
> >> consequences that we don't know about and won't easily find.
> >>
> >> I yearn for the day when our automated testing is broad enough that we
> can
> >> do fixes right up to the wire and know that things still work, I am just
> >> not sure that I have confidence that we are there yet.
> >> Thoughts? I am being paranoid?
> >>
> >> --David
> >>
> >> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <daan.hoogland@gmail.com
> >
> >> wrote:
> >>> Animesh, I commented the once i made yesterday with findbugs:
> >>>
> >>> I allready send a few and will get you a list of the rest later today.
> >>>
> >>> regards,
> >>>
> >>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
> >>> <an...@citrix.com> wrote:
> >>>> Good job fellas. I see a number of commits 20+ into 4.3-forward
> branch.
> >> Are their specific commits you want me to pick up out of these?
> >>>>
> >>>> Animesh
> >>>>
> >>>> -----Original Message-----
> >>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
> >>>> Sent: Sunday, January 26, 2014 2:41 AM
> >>>> To: dev
> >>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>
> >>>> I didn't get very far last night and will be looking at the server
> >> package again this afternoon.
> >>>>
> >>>> bon appétit,
> >>>>
> >>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
> >>>>> Hi,
> >>>>>
> >>>>> Fixed the issues highlighted in the ldap user authentication package.
> >>>>>
> >>>>> Have pushed to 4.3-forward.
> >>>>>
> >>>>> Thanks,
> >>>>> Ian
> >>>>>
> >>>>>
> >>>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
> >> wrote:
> >>>>>
> >>>>>>> or reply to this mail with the filename you are working on
> >>>>>> I'll be looking at the server package as it seems to contain the
> >>>>>> most issues.
> >>>>>>
> >>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl>
> >> wrote:
> >>>>>>> I've also added a job to master with the Findbugs report and the
> >>>>>> cobertura code coverage report.
> >>>>>>>
> >>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
> >>>>>>> Huge
> >>>>>> improvement over the last release where we had 4% iirc. We have 306
> >>>>>> reports from Findbugs, of which the majority are
> internationalization
> >> issues.
> >>>>>> (String.getBytes without charset mostly). On the coverity site we
> >>>>>> have
> >>>>>> 6000+ issues still open, but at least that number is relatively
> >>>>>> 6000+ stable, we
> >>>>>> fix as much issues as we introduce and it's untuned so we can
> >>>>>> assume a large number of false positives there.
> >>>>>>>
> >>>>>>> I think that on average the automated tools tell us that code
> >>>>>>> quality is
> >>>>>> improving, which a good thing. Combined with the functional testing
> >>>>>> and the simulator build we can prove that we are doing quite well
> >>>>>> on the code quality angle.
> >>>>>>>
> >>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
> >>>>>>>
> >>>>>>>
> >>>>>>> Cheers,
> >>>>>>>
> >>>>>>> Hugo
> >>>>>>>
> >>>>>>>
> >>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
> >>>>>>> <da...@gmail.com>
> >>>>>> wrote:
> >>>>>>>
> >>>>>>>> H Hugo,
> >>>>>>>>
> >>>>>>>> I'll spend some time on it tonight. Do you have a work load
> >>>>>>>> distribution scheme or is it random access?
> >>>>>>>> ;)
> >>>>>>>>
> >>>>>>>> regards
> >>>>>>>>
> >>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
> >>>>>>>> <hu...@trippaers.nl>
> >>>>>> wrote:
> >>>>>>>>> Hey all,
> >>>>>>>>>
> >>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
> >>>>>>>>> there
> >>>>>> somebody who is willing to help triage the findings? Maybe there is
> >>>>>> some stuff that we need to fix?
> >>>>>>>>>
> >>>>>>>>> the url is
> >>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-bui
> >>>>>> ld
> >>>>>> /3/findbugsResult/
> >>>>>>>>>
> >>>>>>>>> Cheers,
> >>>>>>>>>
> >>>>>>>>> Hugo
> >>>>>>>
> >>>>>>
> >>
>
>
Re: Findbugs report on 4.3-forward
Posted by Rajani Karuturi <Ra...@citrix.com>.
Hi Ian,
Any reasons for changing the LDAP random password logic? I think this way it would make it less secure than the previous one.
Thanks,
~Rajani
On 28-Jan-2014, at 10:55 am, Ian Duffy <ia...@ianduffy.ie> wrote:
> Hi Animesh,
>
> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>
> Fix findbug issues within LDAP authenticator
> commit 92b4f66d73562e4211d2d787554ff229dbeb5705
>
> Thanks,
> Ian
>
> On 28 January 2014 03:48, Animesh Chaturvedi
> <an...@citrix.com>wrote:
>
>> Hugo I was reviewing your commits to 4.3-forward and looked at your commits
>>
>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=60ac12780bfa1604902a89d5dc7937a8b9334e0d
>> I think you want the last one which has fixes for NetUtils and
>> XenServerStorageMotionStrategy for which you had put -1 in first RC but the
>> commit includes more files. Can you make limited changes directly to 4.3? I
>> want to build another RC later tonight
>>
>> Animesh
>>
>>
>> -----Original Message-----
>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>> Sent: Monday, January 27, 2014 1:30 PM
>> To: dev@cloudstack.apache.org
>> Subject: RE: Findbugs report on 4.3-forward
>>
>> Agreed
>>
>> We need to fix the most important ones for 4.3. There may be assumptions
>> in the code which we may not know and may get broken if these issues are
>> fixed late. I will pull in the one Hugo casted his -1 for the first vote,
>> any others?
>>
>> Animesh
>>
>> -----Original Message-----
>> From: David Nalley [mailto:david@gnsa.us]
>> Sent: Monday, January 27, 2014 11:46 AM
>> To: dev@cloudstack.apache.org
>> Subject: Re: Findbugs report on 4.3-forward
>>
>> So just curious if I am the only one concerned about a ton of fixes going
>> in at the last minute. If the fixes are for serious bugs and we have
>> consensus around their severity being high enough, indeed lets fix things.
>> My concern is that much of the QA we do is manual; and while we are getting
>> better; fixing tons of things at the last minute may have unintended
>> consequences that we don't know about and won't easily find.
>>
>> I yearn for the day when our automated testing is broad enough that we can
>> do fixes right up to the wire and know that things still work, I am just
>> not sure that I have confidence that we are there yet.
>> Thoughts? I am being paranoid?
>>
>> --David
>>
>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <da...@gmail.com>
>> wrote:
>>> Animesh, I commented the once i made yesterday with findbugs:
>>>
>>> I allready send a few and will get you a list of the rest later today.
>>>
>>> regards,
>>>
>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>> <an...@citrix.com> wrote:
>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>> Are their specific commits you want me to pick up out of these?
>>>>
>>>> Animesh
>>>>
>>>> -----Original Message-----
>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>> To: dev
>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>
>>>> I didn't get very far last night and will be looking at the server
>> package again this afternoon.
>>>>
>>>> bon appétit,
>>>>
>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>> Hi,
>>>>>
>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>
>>>>> Have pushed to 4.3-forward.
>>>>>
>>>>> Thanks,
>>>>> Ian
>>>>>
>>>>>
>>>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
>> wrote:
>>>>>
>>>>>>> or reply to this mail with the filename you are working on
>>>>>> I'll be looking at the server package as it seems to contain the
>>>>>> most issues.
>>>>>>
>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl>
>> wrote:
>>>>>>> I've also added a job to master with the Findbugs report and the
>>>>>> cobertura code coverage report.
>>>>>>>
>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>> Huge
>>>>>> improvement over the last release where we had 4% iirc. We have 306
>>>>>> reports from Findbugs, of which the majority are internationalization
>> issues.
>>>>>> (String.getBytes without charset mostly). On the coverity site we
>>>>>> have
>>>>>> 6000+ issues still open, but at least that number is relatively
>>>>>> 6000+ stable, we
>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>> assume a large number of false positives there.
>>>>>>>
>>>>>>> I think that on average the automated tools tell us that code
>>>>>>> quality is
>>>>>> improving, which a good thing. Combined with the functional testing
>>>>>> and the simulator build we can prove that we are doing quite well
>>>>>> on the code quality angle.
>>>>>>>
>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>
>>>>>>>
>>>>>>> Cheers,
>>>>>>>
>>>>>>> Hugo
>>>>>>>
>>>>>>>
>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>> <da...@gmail.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>> H Hugo,
>>>>>>>>
>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>> distribution scheme or is it random access?
>>>>>>>> ;)
>>>>>>>>
>>>>>>>> regards
>>>>>>>>
>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>> <hu...@trippaers.nl>
>>>>>> wrote:
>>>>>>>>> Hey all,
>>>>>>>>>
>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>>>>>>>>> there
>>>>>> somebody who is willing to help triage the findings? Maybe there is
>>>>>> some stuff that we need to fix?
>>>>>>>>>
>>>>>>>>> the url is
>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-bui
>>>>>> ld
>>>>>> /3/findbugsResult/
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>>
>>>>>>>>> Hugo
>>>>>>>
>>>>>>
>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
sure, not sure if I'll be done today however.
On Wed, Jan 29, 2014 at 8:53 PM, Animesh Chaturvedi
<an...@citrix.com> wrote:
> Daan
>
> Please commit your + Ian's patches that you see fit directly into 4.3 branch. But next time around I would like to see the patches that do not have lots of unnecessary formatting changes that mask the real fix at this time of the release.
>
> Let me know when you are done so I can rebuild another RC today.
>
> Animesh
>
> -----Original Message-----
> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
> Sent: Wednesday, January 29, 2014 8:47 AM
> To: dev
> Subject: Re: Findbugs report on 4.3-forward
>
> The first five I allready posted. The ones between brackets seem minor to me. Then again they also pose the least risk so in my opinion you should pull them all. The last one is a bug we found during testing (which was already fixed in master a while back).
>
> these three in combination:
> 43ba36f97950aa8d09399a28bb50c6a22209f15e
> f3529a19a9aad36dbd92e311018643629f19c748
> 437ff438af23f7ff499200e212966f275a309a75
>
>
> 9a1b882d0eb871c64fe0f0f3fbafbabae89188fa
> (9aced41d708acd22b43ef0e512fa2cc657a6c0a2)
> (b40156313adce56ae80a622e885ecd9ee403c2f6)
> f3b9a7f1232e8f39e619bf99155a4e36ff2d88f9
> c58e509924e97dfced80981da5c27b9f3aae9b33
> (23a3d99fc0836839a88584d7aa6a978d99c5d126)
> 866a539b067663b346bd8d087c578987a86fe834
> 0b13f8e59db1e681e1dff0baa828bb0711842e9f
> 20127e09dc0e341a2f790a8a52cded4c5f1f0cc1
> 791b7f8f7fe8f7d342e46fbb61a3f421e87fca59
> 9772693dca9a91a438078de11b1be1e6044aa6f3
> 9495c68c1378e379880433d45ec43bfda75ec3f9
>
> and
>
> caf17c2f46bf317ec8966b08aaff728a73fda14a
>
> On Wed, Jan 29, 2014 at 4:47 PM, Animesh Chaturvedi <an...@citrix.com> wrote:
>> I have asked for specific commits already a few times. Can you provide list today?
>>
>> Thanks
>> Animesh
>>
>> On Jan 29, 2014, at 4:03 AM, "Daan Hoogland" <da...@gmail.com> wrote:
>>
>>> come to think of it, I probably shouldn't burden you with the
>>> decision on each of those commits. So if you don't want to go through
>>> all of them I will review them and compile a list. If you don't want
>>> to wait my call would be include all.
>>>
>>> On Wed, Jan 29, 2014 at 12:48 PM, Daan Hoogland <da...@gmail.com> wrote:
>>>> Animesh,
>>>>
>>>> As for my fixes, I agree with you that not all of them are vital.
>>>> You pulled only one and this seems too few. There where more null
>>>> pointers and uses off == and more scary things. I have rerouted my
>>>> efforts to master now. Again (Hugo end I don't always agree on
>>>> practical matters, on principals we usually do) I think it is up to
>>>> you which ones to pull. I rember I removed unused local vars. This
>>>> doesn't seem vital (or dangerous) but pulling only one seems very few.
>>>>
>>>>
>>>> On Wed, Jan 29, 2014 at 7:11 AM, Animesh Chaturvedi
>>>> <an...@citrix.com> wrote:
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Ian Duffy [mailto:ian@ianduffy.ie]
>>>>> Sent: Tuesday, January 28, 2014 6:34 PM
>>>>> To: CloudStack Dev
>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>
>>>>> Hi Animesh,
>>>>>
>>>>> Tested all those changes to detail. Those lines were removed due to unexpected behavior that I had not spotted until now.
>>>>> [Animesh] That's what my worry is there may be unintended changes.
>>>>> I suspect this one was not from find bugs. Looking at others from
>>>>> Daan there are many formatting changes which are not necessary and
>>>>> hinder review
>>>>>
>>>>> They were suppose to allow for better fall over between multiple domain controllers, how ever they were causing caching to occur. This meant if a users password was reset in LDAP the old password was still allowing login for a limited time.
>>>>>
>>>>> Please pull the changes forward,
>>>>> Thanks
>>>>>
>>>>> Ian.
>>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi"
>>>>> <an...@citrix.com>
>>>>> wrote:
>>>>>
>>>>>> If I look at this commit for example
>>>>>>
>>>>>>
>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitd
>>>>>> iff;
>>>>>> h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>
>>>>>> It removes the two lines from LdapContextFactory.java
>>>>>>
>>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>>>
>>>>>> Is that reported by find bug? I don't know this code so not sure
>>>>>> if it is intentional or not ?
>>>>>>
>>>>>> The point is there may be unintended risks in allowing late changes.
>>>>>>
>>>>>>
>>>>>>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
Daan
Please commit your + Ian's patches that you see fit directly into 4.3 branch. But next time around I would like to see the patches that do not have lots of unnecessary formatting changes that mask the real fix at this time of the release.
Let me know when you are done so I can rebuild another RC today.
Animesh
-----Original Message-----
From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
Sent: Wednesday, January 29, 2014 8:47 AM
To: dev
Subject: Re: Findbugs report on 4.3-forward
The first five I allready posted. The ones between brackets seem minor to me. Then again they also pose the least risk so in my opinion you should pull them all. The last one is a bug we found during testing (which was already fixed in master a while back).
these three in combination:
43ba36f97950aa8d09399a28bb50c6a22209f15e
f3529a19a9aad36dbd92e311018643629f19c748
437ff438af23f7ff499200e212966f275a309a75
9a1b882d0eb871c64fe0f0f3fbafbabae89188fa
(9aced41d708acd22b43ef0e512fa2cc657a6c0a2)
(b40156313adce56ae80a622e885ecd9ee403c2f6)
f3b9a7f1232e8f39e619bf99155a4e36ff2d88f9
c58e509924e97dfced80981da5c27b9f3aae9b33
(23a3d99fc0836839a88584d7aa6a978d99c5d126)
866a539b067663b346bd8d087c578987a86fe834
0b13f8e59db1e681e1dff0baa828bb0711842e9f
20127e09dc0e341a2f790a8a52cded4c5f1f0cc1
791b7f8f7fe8f7d342e46fbb61a3f421e87fca59
9772693dca9a91a438078de11b1be1e6044aa6f3
9495c68c1378e379880433d45ec43bfda75ec3f9
and
caf17c2f46bf317ec8966b08aaff728a73fda14a
On Wed, Jan 29, 2014 at 4:47 PM, Animesh Chaturvedi <an...@citrix.com> wrote:
> I have asked for specific commits already a few times. Can you provide list today?
>
> Thanks
> Animesh
>
> On Jan 29, 2014, at 4:03 AM, "Daan Hoogland" <da...@gmail.com> wrote:
>
>> come to think of it, I probably shouldn't burden you with the
>> decision on each of those commits. So if you don't want to go through
>> all of them I will review them and compile a list. If you don't want
>> to wait my call would be include all.
>>
>> On Wed, Jan 29, 2014 at 12:48 PM, Daan Hoogland <da...@gmail.com> wrote:
>>> Animesh,
>>>
>>> As for my fixes, I agree with you that not all of them are vital.
>>> You pulled only one and this seems too few. There where more null
>>> pointers and uses off == and more scary things. I have rerouted my
>>> efforts to master now. Again (Hugo end I don't always agree on
>>> practical matters, on principals we usually do) I think it is up to
>>> you which ones to pull. I rember I removed unused local vars. This
>>> doesn't seem vital (or dangerous) but pulling only one seems very few.
>>>
>>>
>>> On Wed, Jan 29, 2014 at 7:11 AM, Animesh Chaturvedi
>>> <an...@citrix.com> wrote:
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Ian Duffy [mailto:ian@ianduffy.ie]
>>>> Sent: Tuesday, January 28, 2014 6:34 PM
>>>> To: CloudStack Dev
>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>
>>>> Hi Animesh,
>>>>
>>>> Tested all those changes to detail. Those lines were removed due to unexpected behavior that I had not spotted until now.
>>>> [Animesh] That's what my worry is there may be unintended changes.
>>>> I suspect this one was not from find bugs. Looking at others from
>>>> Daan there are many formatting changes which are not necessary and
>>>> hinder review
>>>>
>>>> They were suppose to allow for better fall over between multiple domain controllers, how ever they were causing caching to occur. This meant if a users password was reset in LDAP the old password was still allowing login for a limited time.
>>>>
>>>> Please pull the changes forward,
>>>> Thanks
>>>>
>>>> Ian.
>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi"
>>>> <an...@citrix.com>
>>>> wrote:
>>>>
>>>>> If I look at this commit for example
>>>>>
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitd
>>>>> iff;
>>>>> h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>
>>>>> It removes the two lines from LdapContextFactory.java
>>>>>
>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>>
>>>>> Is that reported by find bug? I don't know this code so not sure
>>>>> if it is intentional or not ?
>>>>>
>>>>> The point is there may be unintended risks in allowing late changes.
>>>>>
>>>>>
>>>>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
please pull d38a50343130f6f147e2c9c7b2e32a43f31c7e6b to 4.3
this one came out of our regression testing, I hope other people are
keeping up the testing as well in spite of all the discussion on the
RC!!!
thanks for your patience Animesh,
Daan
On Wed, Jan 29, 2014 at 5:55 PM, Daan Hoogland <da...@gmail.com> wrote:
> On Wed, Jan 29, 2014 at 5:47 PM, Daan Hoogland <da...@gmail.com> wrote:
>> and
>>
>> caf17c2f46bf317ec8966b08aaff728a73fda14a
>
> never mind that last one, i was in a hury and screwed up. will revert
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
On Wed, Jan 29, 2014 at 5:47 PM, Daan Hoogland <da...@gmail.com> wrote:
> and
>
> caf17c2f46bf317ec8966b08aaff728a73fda14a
never mind that last one, i was in a hury and screwed up. will revert
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
The first five I allready posted. The ones between brackets seem minor
to me. Then again they also pose the least risk so in my opinion you
should pull them all. The last one is a bug we found during testing
(which was already fixed in master a while back).
these three in combination:
43ba36f97950aa8d09399a28bb50c6a22209f15e
f3529a19a9aad36dbd92e311018643629f19c748
437ff438af23f7ff499200e212966f275a309a75
9a1b882d0eb871c64fe0f0f3fbafbabae89188fa
(9aced41d708acd22b43ef0e512fa2cc657a6c0a2)
(b40156313adce56ae80a622e885ecd9ee403c2f6)
f3b9a7f1232e8f39e619bf99155a4e36ff2d88f9
c58e509924e97dfced80981da5c27b9f3aae9b33
(23a3d99fc0836839a88584d7aa6a978d99c5d126)
866a539b067663b346bd8d087c578987a86fe834
0b13f8e59db1e681e1dff0baa828bb0711842e9f
20127e09dc0e341a2f790a8a52cded4c5f1f0cc1
791b7f8f7fe8f7d342e46fbb61a3f421e87fca59
9772693dca9a91a438078de11b1be1e6044aa6f3
9495c68c1378e379880433d45ec43bfda75ec3f9
and
caf17c2f46bf317ec8966b08aaff728a73fda14a
On Wed, Jan 29, 2014 at 4:47 PM, Animesh Chaturvedi
<an...@citrix.com> wrote:
> I have asked for specific commits already a few times. Can you provide list today?
>
> Thanks
> Animesh
>
> On Jan 29, 2014, at 4:03 AM, "Daan Hoogland" <da...@gmail.com> wrote:
>
>> come to think of it, I probably shouldn't burden you with the decision
>> on each of those commits. So if you don't want to go through all of
>> them I will review them and compile a list. If you don't want to wait
>> my call would be include all.
>>
>> On Wed, Jan 29, 2014 at 12:48 PM, Daan Hoogland <da...@gmail.com> wrote:
>>> Animesh,
>>>
>>> As for my fixes, I agree with you that not all of them are vital. You
>>> pulled only one and this seems too few. There where more null pointers
>>> and uses off == and more scary things. I have rerouted my efforts to
>>> master now. Again (Hugo end I don't always agree on practical matters,
>>> on principals we usually do) I think it is up to you which ones to
>>> pull. I rember I removed unused local vars. This doesn't seem vital
>>> (or dangerous) but pulling only one seems very few.
>>>
>>>
>>> On Wed, Jan 29, 2014 at 7:11 AM, Animesh Chaturvedi
>>> <an...@citrix.com> wrote:
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Ian Duffy [mailto:ian@ianduffy.ie]
>>>> Sent: Tuesday, January 28, 2014 6:34 PM
>>>> To: CloudStack Dev
>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>
>>>> Hi Animesh,
>>>>
>>>> Tested all those changes to detail. Those lines were removed due to unexpected behavior that I had not spotted until now.
>>>> [Animesh] That's what my worry is there may be unintended changes. I suspect this one was not from find bugs. Looking at others from Daan there are many formatting changes which are not necessary and hinder review
>>>>
>>>> They were suppose to allow for better fall over between multiple domain controllers, how ever they were causing caching to occur. This meant if a users password was reset in LDAP the old password was still allowing login for a limited time.
>>>>
>>>> Please pull the changes forward,
>>>> Thanks
>>>>
>>>> Ian.
>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
>>>> wrote:
>>>>
>>>>> If I look at this commit for example
>>>>>
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;
>>>>> h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>
>>>>> It removes the two lines from LdapContextFactory.java
>>>>>
>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>>
>>>>> Is that reported by find bug? I don't know this code so not sure if
>>>>> it is intentional or not ?
>>>>>
>>>>> The point is there may be unintended risks in allowing late changes.
>>>>>
>>>>>
>>>>>
Re: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
I have asked for specific commits already a few times. Can you provide list today?
Thanks
Animesh
On Jan 29, 2014, at 4:03 AM, "Daan Hoogland" <da...@gmail.com> wrote:
> come to think of it, I probably shouldn't burden you with the decision
> on each of those commits. So if you don't want to go through all of
> them I will review them and compile a list. If you don't want to wait
> my call would be include all.
>
> On Wed, Jan 29, 2014 at 12:48 PM, Daan Hoogland <da...@gmail.com> wrote:
>> Animesh,
>>
>> As for my fixes, I agree with you that not all of them are vital. You
>> pulled only one and this seems too few. There where more null pointers
>> and uses off == and more scary things. I have rerouted my efforts to
>> master now. Again (Hugo end I don't always agree on practical matters,
>> on principals we usually do) I think it is up to you which ones to
>> pull. I rember I removed unused local vars. This doesn't seem vital
>> (or dangerous) but pulling only one seems very few.
>>
>>
>> On Wed, Jan 29, 2014 at 7:11 AM, Animesh Chaturvedi
>> <an...@citrix.com> wrote:
>>>
>>>
>>> -----Original Message-----
>>> From: Ian Duffy [mailto:ian@ianduffy.ie]
>>> Sent: Tuesday, January 28, 2014 6:34 PM
>>> To: CloudStack Dev
>>> Subject: RE: Findbugs report on 4.3-forward
>>>
>>> Hi Animesh,
>>>
>>> Tested all those changes to detail. Those lines were removed due to unexpected behavior that I had not spotted until now.
>>> [Animesh] That's what my worry is there may be unintended changes. I suspect this one was not from find bugs. Looking at others from Daan there are many formatting changes which are not necessary and hinder review
>>>
>>> They were suppose to allow for better fall over between multiple domain controllers, how ever they were causing caching to occur. This meant if a users password was reset in LDAP the old password was still allowing login for a limited time.
>>>
>>> Please pull the changes forward,
>>> Thanks
>>>
>>> Ian.
>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
>>> wrote:
>>>
>>>> If I look at this commit for example
>>>>
>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;
>>>> h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>
>>>> It removes the two lines from LdapContextFactory.java
>>>>
>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>
>>>> Is that reported by find bug? I don't know this code so not sure if
>>>> it is intentional or not ?
>>>>
>>>> The point is there may be unintended risks in allowing late changes.
>>>>
>>>>
>>>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
come to think of it, I probably shouldn't burden you with the decision
on each of those commits. So if you don't want to go through all of
them I will review them and compile a list. If you don't want to wait
my call would be include all.
On Wed, Jan 29, 2014 at 12:48 PM, Daan Hoogland <da...@gmail.com> wrote:
> Animesh,
>
> As for my fixes, I agree with you that not all of them are vital. You
> pulled only one and this seems too few. There where more null pointers
> and uses off == and more scary things. I have rerouted my efforts to
> master now. Again (Hugo end I don't always agree on practical matters,
> on principals we usually do) I think it is up to you which ones to
> pull. I rember I removed unused local vars. This doesn't seem vital
> (or dangerous) but pulling only one seems very few.
>
>
> On Wed, Jan 29, 2014 at 7:11 AM, Animesh Chaturvedi
> <an...@citrix.com> wrote:
>>
>>
>> -----Original Message-----
>> From: Ian Duffy [mailto:ian@ianduffy.ie]
>> Sent: Tuesday, January 28, 2014 6:34 PM
>> To: CloudStack Dev
>> Subject: RE: Findbugs report on 4.3-forward
>>
>> Hi Animesh,
>>
>> Tested all those changes to detail. Those lines were removed due to unexpected behavior that I had not spotted until now.
>> [Animesh] That's what my worry is there may be unintended changes. I suspect this one was not from find bugs. Looking at others from Daan there are many formatting changes which are not necessary and hinder review
>>
>> They were suppose to allow for better fall over between multiple domain controllers, how ever they were causing caching to occur. This meant if a users password was reset in LDAP the old password was still allowing login for a limited time.
>>
>> Please pull the changes forward,
>> Thanks
>>
>> Ian.
>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
>> wrote:
>>
>>> If I look at this commit for example
>>>
>>>
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;
>>> h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>
>>> It removes the two lines from LdapContextFactory.java
>>>
>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>
>>> Is that reported by find bug? I don't know this code so not sure if
>>> it is intentional or not ?
>>>
>>> The point is there may be unintended risks in allowing late changes.
>>>
>>>
>>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
Animesh,
As for my fixes, I agree with you that not all of them are vital. You
pulled only one and this seems too few. There where more null pointers
and uses off == and more scary things. I have rerouted my efforts to
master now. Again (Hugo end I don't always agree on practical matters,
on principals we usually do) I think it is up to you which ones to
pull. I rember I removed unused local vars. This doesn't seem vital
(or dangerous) but pulling only one seems very few.
On Wed, Jan 29, 2014 at 7:11 AM, Animesh Chaturvedi
<an...@citrix.com> wrote:
>
>
> -----Original Message-----
> From: Ian Duffy [mailto:ian@ianduffy.ie]
> Sent: Tuesday, January 28, 2014 6:34 PM
> To: CloudStack Dev
> Subject: RE: Findbugs report on 4.3-forward
>
> Hi Animesh,
>
> Tested all those changes to detail. Those lines were removed due to unexpected behavior that I had not spotted until now.
> [Animesh] That's what my worry is there may be unintended changes. I suspect this one was not from find bugs. Looking at others from Daan there are many formatting changes which are not necessary and hinder review
>
> They were suppose to allow for better fall over between multiple domain controllers, how ever they were causing caching to occur. This meant if a users password was reset in LDAP the old password was still allowing login for a limited time.
>
> Please pull the changes forward,
> Thanks
>
> Ian.
> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
> wrote:
>
>> If I look at this commit for example
>>
>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;
>> h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>
>> It removes the two lines from LdapContextFactory.java
>>
>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>
>> Is that reported by find bug? I don't know this code so not sure if
>> it is intentional or not ?
>>
>> The point is there may be unintended risks in allowing late changes.
>>
>>
>>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
-----Original Message-----
From: Ian Duffy [mailto:ian@ianduffy.ie]
Sent: Tuesday, January 28, 2014 6:34 PM
To: CloudStack Dev
Subject: RE: Findbugs report on 4.3-forward
Hi Animesh,
Tested all those changes to detail. Those lines were removed due to unexpected behavior that I had not spotted until now.
[Animesh] That’s what my worry is there may be unintended changes. I suspect this one was not from find bugs. Looking at others from Daan there are many formatting changes which are not necessary and hinder review
They were suppose to allow for better fall over between multiple domain controllers, how ever they were causing caching to occur. This meant if a users password was reset in LDAP the old password was still allowing login for a limited time.
Please pull the changes forward,
Thanks
Ian.
On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
wrote:
> If I look at this commit for example
>
>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;
> h=92b4f66d73562e4211d2d787554ff229dbeb5705
>
> It removes the two lines from LdapContextFactory.java
>
> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>
> Is that reported by find bug? I don’t know this code so not sure if
> it is intentional or not ?
>
> The point is there may be unintended risks in allowing late changes.
>
>
>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
On Mon, Feb 3, 2014 at 7:55 AM, Rajani Karuturi
<Ra...@citrix.com> wrote:
> you please do it on 4.3-forward and master as well.
I'll do it on 4.3-forward and I'll be on all findbugs issues on master
so it'll pass by automatically
Re: Findbugs report on 4.3-forward
Posted by Rajani Karuturi <Ra...@citrix.com>.
Hi Daan/Ian,
looks like the change is only in 4.3. Can you please do it on 4.3-forward and master as well.
Thanks,
~Rajani
On 03-Feb-2014, at 12:21 am, Daan Hoogland <da...@gmail.com> wrote:
> just pushed :(
>
>
> On Sun, Feb 2, 2014 at 7:50 PM, Ian Duffy <ia...@ianduffy.ie> wrote:
>> Daan,
>>
>> Have this done already, just about to push.
>>
>>
>> On 2 February 2014 18:47, Daan Hoogland <da...@gmail.com> wrote:
>>
>>> never mind, I thought you are committer. I'll fix
>>>
>>> On Sun, Feb 2, 2014 at 6:52 PM, Rajani Karuturi
>>> <Ra...@citrix.com> wrote:
>>>> Sure Daan. Will submit a review request for master and 4.3-forward
>>> tomorrow morning IST.
>>>>
>>>> Thanks,
>>>> ~Rajani
>>>>
>>>>
>>>>
>>>> On 02-Feb-2014, at 8:17 pm, Daan Hoogland <da...@gmail.com>
>>> wrote:
>>>>
>>>>> On Sun, Feb 2, 2014 at 12:48 PM, Rajani Karuturi
>>>>> <Ra...@citrix.com> wrote:
>>>>>> what we should use is new String(bytes[])
>>>>>
>>>>>
>>>>> ok, makes sense. Can you revert my commit and make a new patch?
>>>>>
>>>>> thanks,
>>>>> Daan
>>>>
>>>
>>>
>>>
>>> --
>>> Daan
>>>
>
>
>
> --
> Daan
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
just pushed :(
On Sun, Feb 2, 2014 at 7:50 PM, Ian Duffy <ia...@ianduffy.ie> wrote:
> Daan,
>
> Have this done already, just about to push.
>
>
> On 2 February 2014 18:47, Daan Hoogland <da...@gmail.com> wrote:
>
>> never mind, I thought you are committer. I'll fix
>>
>> On Sun, Feb 2, 2014 at 6:52 PM, Rajani Karuturi
>> <Ra...@citrix.com> wrote:
>> > Sure Daan. Will submit a review request for master and 4.3-forward
>> tomorrow morning IST.
>> >
>> > Thanks,
>> > ~Rajani
>> >
>> >
>> >
>> > On 02-Feb-2014, at 8:17 pm, Daan Hoogland <da...@gmail.com>
>> wrote:
>> >
>> >> On Sun, Feb 2, 2014 at 12:48 PM, Rajani Karuturi
>> >> <Ra...@citrix.com> wrote:
>> >>> what we should use is new String(bytes[])
>> >>
>> >>
>> >> ok, makes sense. Can you revert my commit and make a new patch?
>> >>
>> >> thanks,
>> >> Daan
>> >
>>
>>
>>
>> --
>> Daan
>>
--
Daan
Re: Findbugs report on 4.3-forward
Posted by Ian Duffy <ia...@ianduffy.ie>.
Daan,
Have this done already, just about to push.
On 2 February 2014 18:47, Daan Hoogland <da...@gmail.com> wrote:
> never mind, I thought you are committer. I'll fix
>
> On Sun, Feb 2, 2014 at 6:52 PM, Rajani Karuturi
> <Ra...@citrix.com> wrote:
> > Sure Daan. Will submit a review request for master and 4.3-forward
> tomorrow morning IST.
> >
> > Thanks,
> > ~Rajani
> >
> >
> >
> > On 02-Feb-2014, at 8:17 pm, Daan Hoogland <da...@gmail.com>
> wrote:
> >
> >> On Sun, Feb 2, 2014 at 12:48 PM, Rajani Karuturi
> >> <Ra...@citrix.com> wrote:
> >>> what we should use is new String(bytes[])
> >>
> >>
> >> ok, makes sense. Can you revert my commit and make a new patch?
> >>
> >> thanks,
> >> Daan
> >
>
>
>
> --
> Daan
>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
never mind, I thought you are committer. I'll fix
On Sun, Feb 2, 2014 at 6:52 PM, Rajani Karuturi
<Ra...@citrix.com> wrote:
> Sure Daan. Will submit a review request for master and 4.3-forward tomorrow morning IST.
>
> Thanks,
> ~Rajani
>
>
>
> On 02-Feb-2014, at 8:17 pm, Daan Hoogland <da...@gmail.com> wrote:
>
>> On Sun, Feb 2, 2014 at 12:48 PM, Rajani Karuturi
>> <Ra...@citrix.com> wrote:
>>> what we should use is new String(bytes[])
>>
>>
>> ok, makes sense. Can you revert my commit and make a new patch?
>>
>> thanks,
>> Daan
>
--
Daan
Re: Findbugs report on 4.3-forward
Posted by Rajani Karuturi <Ra...@citrix.com>.
Sure Daan. Will submit a review request for master and 4.3-forward tomorrow morning IST.
Thanks,
~Rajani
On 02-Feb-2014, at 8:17 pm, Daan Hoogland <da...@gmail.com> wrote:
> On Sun, Feb 2, 2014 at 12:48 PM, Rajani Karuturi
> <Ra...@citrix.com> wrote:
>> what we should use is new String(bytes[])
>
>
> ok, makes sense. Can you revert my commit and make a new patch?
>
> thanks,
> Daan
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
On Sun, Feb 2, 2014 at 12:48 PM, Rajani Karuturi
<Ra...@citrix.com> wrote:
> what we should use is new String(bytes[])
ok, makes sense. Can you revert my commit and make a new patch?
thanks,
Daan
Re: Findbugs report on 4.3-forward
Posted by Rajani Karuturi <Ra...@citrix.com>.
I agree that we shouldn’t be using Arrays.toString() here. It would output CSV of values enclosed in ‘[]’ (http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/java/util/Arrays.java/#Arrays.toString%28byte%5B%5D%29<http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/java/util/Arrays.java/#Arrays.toString(byte%5B%5D)>)
Like I stated in my previous mail, I think, what we should use is new String(bytes[])
what is done in the commit 2774b62d by wilderrodrigues on master (git diff 2774b62d^! -- ./plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LdapImportUsersCmd.java) is the right way.
This has to be done in both the files ./plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LdapImportUsersCmd.java, ./plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LdapCreateAccountCmd.java and in all the branches master, 4.3-forward, 4.3
regarding the encoding issue, The initial version wasn’t storing the random string directly in db but a base64 encoded one(at least it was trying to do that and had a bug). For example, abcdef would become YWJjZGVm. With this, it won’t pass the default plaint text encoding authentication i.e.) you won’t be able to login with abcdef. If the encoding is known, you can still try with encoded string.
we still have the security issue but, the new method wasn’t improving it, its just removing one step from it. If the new method was also doing encoding maybe both of them would be equal.
Even in this case, initial version code with new String() looks cleaner to me. Though that might vary from person to person. :)
Thanks,
~Rajani
On 02-Feb-2014, at 1:40 am, Sebastien Goasguen <ru...@gmail.com>> wrote:
On Jan 31, 2014, at 12:02 PM, Ian Duffy <ia...@ianduffy.ie>> wrote:
Just continuing this for my own learning experience as I still don't see
it. I also don't see why the outputs from the commited code are OK, on
testing I'm getting things like: [55, 107, 73, 50, 87, 100, 119, 49, 121,
76, 56, 43, 104, 48, 112, 105, 107, 102, 111, 88, 87, 73, 98, 113, 120, 52,
85, 61]. I expected this to be a string made up of different characters to
form a random password, what looks like an array converted to a string.
With the char set know, it would be easy to decode the password than the
previous encoded version.
So the argument being put forward is we know the charset that makes up the
password? This is true but we know the charset for a base64 string,
its A-Z,a-z,0-9,and +. Even still, with the charset exposed I don't see how
this is an issue(bare with my math here). Its a roughly 72 charset
generating a password of length 20. Thats 72^20 different possible
combinations. If we say it takes a second to brute each combination you are
Ian, I will let Rajani and Daan reply to you, but you can get much faster than 1 combination per second:
http://hackaday.com/2012/12/06/25-gpus-brute-force-348-billion-hashes-per-second-to-crack-your-passwords/
looking at roughly (4.445×10^29) years to test all combinations. (
http://www.wolframalpha.com/input/?i=72%5E20+seconds+to+years )
The function in question is suppose to return a string that acts as the
password given to AccountService to create the new user account.... on
testing the code that has been committed into the 4.3 branch I'm just
getting back stuff like the following: [55, 107, 73, 50, 87, 100, 119, 49,
121, 76, 56, 43, 104, 48, 112, 105, 107, 102, 111, 88, 87, 73, 98, 113,
120, 52, 85, 61]
I executed the test manually by just pulling the code out and running it
alone from command line:
https://gist.github.com/imduffy15/ae7a809aa7bb6cb198e3.
Regards,
Ian
On 31 January 2014 04:38, Rajani Karuturi <Ra...@citrix.com>>wrote:
With the char set know, it would be easy to decode the password than the
previous encoded version.
This is a concern because even for ldap users we also check authentication
against db.
Thanks a lot for taking Daan and Ian.
~Rajani
On 31-Jan-2014, at 1:20 am, Ian Duffy <ia...@ianduffy.ie>> wrote:
Hi,
Sorry about the delay in replying to this have been doing exams at uni
all
week.
Daan's change looks to change Rajani concern.
Might be me being naive but I fail to understand the concern fully...
The given character selection was roughly 72 with a string of length 20.
If
my math is correct thats 72^20 different possible combinations...
Anyways, thanks for taking care of this Daan.
On 30 January 2014 13:28, Daan Hoogland <da...@gmail.com>> wrote:
Guys,
I found two reported issues of category 'scary'. To satify Rajuri's
concerns I would like to revert Ian's commit and checkin two changes
that change returning
byte[].toString()
into
Arrays.toString(byte[])
on return statements of generatePassword methods.
if no objections come in within a few...,
Daan
On Thu, Jan 30, 2014 at 1:53 PM, Daan Hoogland <da...@gmail.com>
wrote:
Animesh, Ian,
Can you comment on this?
I couldn't find any findbugs issues of the the scariest kind in
yesterdays version of the 4.3 branch. What was solved that needs to go
in in spite of Rajuri's reservations?
thanks,
Daan
On Thu, Jan 30, 2014 at 11:21 AM, Daan Hoogland <
daan.hoogland@gmail.com<ma...@gmail.com>>
wrote:
Sorry Rajani,
I had seen no reaction to Ian's explenation and the request by
Animesh to pull it so I just did. let me look into it for a minute
On Thu, Jan 30, 2014 at 5:36 AM, Rajani Karuturi
<Ra...@citrix.com>> wrote:
I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is
already pushed to 4.3. I don't see any response on my concern as well.
Is it just me or anyone else sees a security issue with the generate
password change?
Ian/Animesh/Daan, can you please respond?
Thanks,
~Rajani
On 29-Jan-2014, at 10:59 am, Rajani Karuturi <
Rajani.Karuturi@citrix.com<ma...@citrix.com>> wrote:
Hi Ian,
Before it is pushed to 4.3, can you fix the generate password change
like i suggested in the other mail? This current change would make it
less
secure.
Thanks,
~Rajani
On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie>> wrote:
Hi Animesh,
Tested all those changes to detail. Those lines were removed due to
unexpected behavior that I had not spotted until now.
They were suppose to allow for better fall over between multiple
domain
controllers, how ever they were causing caching to occur. This
meant
if a
users password was reset in LDAP the old password was still
allowing
login
for a limited time.
Please pull the changes forward,
Thanks
Ian.
On 29 Jan 2014 00:07, "Animesh Chaturvedi" <
animesh.chaturvedi@citrix.com<ma...@citrix.com>>
wrote:
If I look at this commit for example
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
It removes the two lines from LdapContextFactory.java
environment.put("com.sun.jndi.ldap.read.timeout", "500");-
environment.put("com.sun.jndi.ldap.connect.pool", "true");
Is that reported by find bug? I don't know this code so not sure
if it is
intentional or not ?
The point is there may be unintended risks in allowing late
changes.
-----Original Message-----
From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
Sent: Tuesday, January 28, 2014 3:35 PM
To: dev@cloudstack.apache.org
Subject: RE: Findbugs report on 4.3-forward
Are you sure all of the ones are needed. A quick look at 20+
commits from
Daan show many formatting changes that may not be necessary and
hinder
quick review.
-----Original Message-----
From: Hugo Trippaers [mailto:trippie@gmail.com]
Sent: Tuesday, January 28, 2014 3:16 PM
To: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
Sent from my iPhone
On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
animesh.chaturvedi@citrix.com> wrote:
-----Original Message-----
From: Hugo Trippaers [mailto:trippie@gmail.com]
Sent: Tuesday, January 28, 2014 2:37 PM
To: dev@cloudstack.apache.org
Cc: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
Hey Animesh,
Not in agreement here. These are squashed bugs and we want as
less
bugs
in the release as possible.
[Animesh] I understand but once we enter RC phase we only limit
important fixes. I have pulled in 2 commits from yours and 1 from
Daan.
We limited our fixes to only the important issues that we found.
The other
6000 issues between coverity and findbugs are still being triaged
and will
probably not make it into this release.
This is why we test any RC before we release it.
[Animesh] Of course but timing is a bit off, if this was done a
month
back it would have been fine.
I say include all the big fixes we have in the release. If that
means
more testing before we cut the RC then that is what it is. I can't
rightfully vote for a release with known issues with existing
fixes.
[Animesh] Any release will have known issues, if we have fixes
but
can't
be sure on regression impact then we have to make a choice.
Agreed, but we just don't agree on what that choice should be yet
;-)
Quality over release schedule would be my vote then.
[Animesh] But why so late? Why was this activity not planned
early
on? I
have been reminding community to call out issues early on since
like
mid-December.
On November 4 I sent the mail to the dev list that static code
analysis
(coverity) found 6000+ issues that needed to be triaged. I worked
on quite
a few with my colleagues, but it's a big task for just the four of
us.
Findbugs just helped us to quickly identify the real scary issues
among
them.
So I agree that the timing is less than ideal, but we should do
our
utmost
best to ship the highest quality piece of software we can.
Cheers,
Hugo
Sent from my iPhone
On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
animesh.chaturvedi@citrix.com> wrote:
Folks these issues reported by find-bugs have existed for some
time. I
am not confident in picking them up now for 4.3 as it may break
code that
assumed old way of working. We can take them up for 4.3
maintenance
release. I wish we had done this exercise and not waited until
now.
I will pick Hugo's commit for which he called -1.
Thanks
Animesh
-----Original Message-----
From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo
Trippaers
Sent: Tuesday, January 28, 2014 1:29 AM
To: dev
Subject: Re: Findbugs report on 4.3-forward
Hey Animesh,
I agree with Daan here. We focussed on the bugs with a findbugs
annotation of scariest. I think that would warrant them to be
included in
the 4.3 release, so please cherry-pick them all.
Cheers,
Hugo
On 28 jan. 2014, at 09:32, Daan Hoogland <
daan.hoogland@gmail.com>
wrote:
Animesh,
I took up a lot of messages from findbugs in the server package
over
the weekend. Not that I will attach my soul to the shipping of
my
fixes but some of them are == vs eq and some are really nasty
nullpointer issues (a chack after first use is very common).
You
can
cherry-pick them or not. I don't think you should leave any of
them
behind. Even with David being right we should go against him at
every convenient time, running the risk of being called his
wife.
On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie>
wrote:
Hi Animesh,
Can you cherry-pick the below commit from from 4.3-forward to
4.3
branch?
Fix findbug issues within LDAP authenticator commit
92b4f66d73562e4211d2d787554ff229dbeb5705
Thanks,
Ian
On 28 January 2014 03:48, Animesh Chaturvedi
<an...@citrix.com>wrote:
Hugo I was reviewing your commits to 4.3-forward and looked
at
your commits
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
I think you want the last one which has fixes for NetUtils
and
XenServerStorageMotionStrategy for which you had put -1 in
first
RC but the commit includes more files. Can you make limited
changes directly to 4.3? I want to build another RC later
tonight
Animesh
-----Original Message-----
From: Animesh Chaturvedi [mailto:
animesh.chaturvedi@citrix.com
]
Sent: Monday, January 27, 2014 1:30 PM
To: dev@cloudstack.apache.org
Subject: RE: Findbugs report on 4.3-forward
Agreed
We need to fix the most important ones for 4.3. There may be
assumptions in the code which we may not know and may get
broken
if these issues are fixed late. I will pull in the one Hugo
casted
his
-1 for the first vote, any others?
Animesh
-----Original Message-----
From: David Nalley [mailto:david@gnsa.us]
Sent: Monday, January 27, 2014 11:46 AM
To: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
So just curious if I am the only one concerned about a ton of
fixes going in at the last minute. If the fixes are for
serious
bugs and we have consensus around their severity being high
enough,
indeed lets fix things.
My concern is that much of the QA we do is manual; and while
we
are getting better; fixing tons of things at the last minute
may
have unintended consequences that we don't know about and
won't
easily find.
I yearn for the day when our automated testing is broad
enough
that we can do fixes right up to the wire and know that
things
still work, I am just not sure that I have confidence that we
are
there yet.
Thoughts? I am being paranoid?
--David
On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
<da...@gmail.com>
wrote:
Animesh, I commented the once i made yesterday with
findbugs:
I allready send a few and will get you a list of the rest
later
today.
regards,
On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
<an...@citrix.com> wrote:
Good job fellas. I see a number of commits 20+ into
4.3-forward
branch.
Are their specific commits you want me to pick up out of
these?
Animesh
-----Original Message-----
From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
Sent: Sunday, January 26, 2014 2:41 AM
To: dev
Subject: Re: Findbugs report on 4.3-forward
I didn't get very far last night and will be looking at the
server
package again this afternoon.
bon appétit,
On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <
ian@ianduffy.ie
wrote:
Hi,
Fixed the issues highlighted in the ldap user
authentication
package.
Have pushed to 4.3-forward.
Thanks,
Ian
On 25 January 2014 22:26, Daan Hoogland
<da...@gmail.com>
wrote:
or reply to this mail with the filename you are working
on
I'll be looking at the server package as it seems to
contain
the most issues.
On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
<hu...@trippaers.nl>
wrote:
I've also added a job to master with the Findbugs report
and
the
cobertura code coverage report.
Good stuff, we have a 12% coverage of our classes with
unit
tests.
Huge
improvement over the last release where we had 4% iirc.
We
have
306 reports from Findbugs, of which the majority are
internationalization
issues.
(String.getBytes without charset mostly). On the coverity
site
we have
6000+ issues still open, but at least that number is
6000+ relatively stable, we
fix as much issues as we introduce and it's untuned so we
can
assume a large number of false positives there.
I think that on average the automated tools tell us that
code
quality is
improving, which a good thing. Combined with the
functional
testing and the simulator build we can prove that we are
doing
quite well on the code quality angle.
http://jenkins.buildacloud.org/job/build-master-slowbuild/
Cheers,
Hugo
On 25 jan. 2014, at 14:13, Daan Hoogland
<da...@gmail.com>
wrote:
H Hugo,
I'll spend some time on it tonight. Do you have a work
load
distribution scheme or is it random access?
;)
regards
On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
<hu...@trippaers.nl>
wrote:
Hey all,
I've made Jenkins run the findbugs analysis on
4.3-forward.
Is there
somebody who is willing to help triage the findings?
Maybe
there is some stuff that we need to fix?
the url is
http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
n
-
bui
ld
/3/findbugsResult/
Cheers,
Hugo
Re: Findbugs report on 4.3-forward
Posted by Sebastien Goasguen <ru...@gmail.com>.
On Jan 31, 2014, at 12:02 PM, Ian Duffy <ia...@ianduffy.ie> wrote:
> Just continuing this for my own learning experience as I still don't see
> it. I also don't see why the outputs from the commited code are OK, on
> testing I'm getting things like: [55, 107, 73, 50, 87, 100, 119, 49, 121,
> 76, 56, 43, 104, 48, 112, 105, 107, 102, 111, 88, 87, 73, 98, 113, 120, 52,
> 85, 61]. I expected this to be a string made up of different characters to
> form a random password, what looks like an array converted to a string.
>
> With the char set know, it would be easy to decode the password than the
>> previous encoded version.
>
>
> So the argument being put forward is we know the charset that makes up the
> password? This is true but we know the charset for a base64 string,
> its A-Z,a-z,0-9,and +. Even still, with the charset exposed I don't see how
> this is an issue(bare with my math here). Its a roughly 72 charset
> generating a password of length 20. Thats 72^20 different possible
> combinations. If we say it takes a second to brute each combination you are
Ian, I will let Rajani and Daan reply to you, but you can get much faster than 1 combination per second:
http://hackaday.com/2012/12/06/25-gpus-brute-force-348-billion-hashes-per-second-to-crack-your-passwords/
> looking at roughly (4.445×10^29) years to test all combinations. (
> http://www.wolframalpha.com/input/?i=72%5E20+seconds+to+years )
>
> The function in question is suppose to return a string that acts as the
> password given to AccountService to create the new user account.... on
> testing the code that has been committed into the 4.3 branch I'm just
> getting back stuff like the following: [55, 107, 73, 50, 87, 100, 119, 49,
> 121, 76, 56, 43, 104, 48, 112, 105, 107, 102, 111, 88, 87, 73, 98, 113,
> 120, 52, 85, 61]
>
> I executed the test manually by just pulling the code out and running it
> alone from command line:
> https://gist.github.com/imduffy15/ae7a809aa7bb6cb198e3.
>
> Regards,
> Ian
>
>
> On 31 January 2014 04:38, Rajani Karuturi <Ra...@citrix.com>wrote:
>
>> With the char set know, it would be easy to decode the password than the
>> previous encoded version.
>> This is a concern because even for ldap users we also check authentication
>> against db.
>>
>> Thanks a lot for taking Daan and Ian.
>>
>>
>> ~Rajani
>>
>>
>>
>> On 31-Jan-2014, at 1:20 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>>
>>> Hi,
>>>
>>> Sorry about the delay in replying to this have been doing exams at uni
>> all
>>> week.
>>>
>>> Daan's change looks to change Rajani concern.
>>>
>>> Might be me being naive but I fail to understand the concern fully...
>>> The given character selection was roughly 72 with a string of length 20.
>> If
>>> my math is correct thats 72^20 different possible combinations...
>>>
>>> Anyways, thanks for taking care of this Daan.
>>>
>>> On 30 January 2014 13:28, Daan Hoogland <da...@gmail.com> wrote:
>>>
>>>> Guys,
>>>>
>>>> I found two reported issues of category 'scary'. To satify Rajuri's
>>>> concerns I would like to revert Ian's commit and checkin two changes
>>>> that change returning
>>>> byte[].toString()
>>>> into
>>>> Arrays.toString(byte[])
>>>> on return statements of generatePassword methods.
>>>>
>>>> if no objections come in within a few...,
>>>> Daan
>>>>
>>>> On Thu, Jan 30, 2014 at 1:53 PM, Daan Hoogland <daan.hoogland@gmail.com
>>>
>>>> wrote:
>>>>> Animesh, Ian,
>>>>>
>>>>> Can you comment on this?
>>>>>
>>>>> I couldn't find any findbugs issues of the the scariest kind in
>>>>> yesterdays version of the 4.3 branch. What was solved that needs to go
>>>>> in in spite of Rajuri's reservations?
>>>>>
>>>>> thanks,
>>>>> Daan
>>>>>
>>>>> On Thu, Jan 30, 2014 at 11:21 AM, Daan Hoogland <
>> daan.hoogland@gmail.com>
>>>> wrote:
>>>>>> Sorry Rajani,
>>>>>>
>>>>>> I had seen no reaction to Ian's explenation and the request by
>>>>>> Animesh to pull it so I just did. let me look into it for a minute
>>>>>>
>>>>>> On Thu, Jan 30, 2014 at 5:36 AM, Rajani Karuturi
>>>>>> <Ra...@citrix.com> wrote:
>>>>>>> I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is
>>>> already pushed to 4.3. I don't see any response on my concern as well.
>>>>>>> Is it just me or anyone else sees a security issue with the generate
>>>> password change?
>>>>>>> Ian/Animesh/Daan, can you please respond?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> ~Rajani
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 29-Jan-2014, at 10:59 am, Rajani Karuturi <
>>>> Rajani.Karuturi@citrix.com> wrote:
>>>>>>>
>>>>>>>> Hi Ian,
>>>>>>>> Before it is pushed to 4.3, can you fix the generate password change
>>>> like i suggested in the other mail? This current change would make it
>> less
>>>> secure.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> ~Rajani
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>>>
>>>>>>>>> Hi Animesh,
>>>>>>>>>
>>>>>>>>> Tested all those changes to detail. Those lines were removed due to
>>>>>>>>> unexpected behavior that I had not spotted until now.
>>>>>>>>>
>>>>>>>>> They were suppose to allow for better fall over between multiple
>>>> domain
>>>>>>>>> controllers, how ever they were causing caching to occur. This
>> meant
>>>> if a
>>>>>>>>> users password was reset in LDAP the old password was still
>> allowing
>>>> login
>>>>>>>>> for a limited time.
>>>>>>>>>
>>>>>>>>> Please pull the changes forward,
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>> Ian.
>>>>>>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <
>>>> animesh.chaturvedi@citrix.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> If I look at this commit for example
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>>>>>
>>>>>>>>>> It removes the two lines from LdapContextFactory.java
>>>>>>>>>>
>>>>>>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>>>>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>>>>>>>
>>>>>>>>>> Is that reported by find bug? I don't know this code so not sure
>>>> if it is
>>>>>>>>>> intentional or not ?
>>>>>>>>>>
>>>>>>>>>> The point is there may be unintended risks in allowing late
>> changes.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>>>>>>> Sent: Tuesday, January 28, 2014 3:35 PM
>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>>>>
>>>>>>>>>> Are you sure all of the ones are needed. A quick look at 20+
>>>> commits from
>>>>>>>>>> Daan show many formatting changes that may not be necessary and
>>>> hinder
>>>>>>>>>> quick review.
>>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>>>>>>> Sent: Tuesday, January 28, 2014 3:16 PM
>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Sent from my iPhone
>>>>>>>>>>
>>>>>>>>>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
>>>>>>>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>>>>>>>> Sent: Tuesday, January 28, 2014 2:37 PM
>>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>>> Cc: dev@cloudstack.apache.org
>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>
>>>>>>>>>>> Hey Animesh,
>>>>>>>>>>>
>>>>>>>>>>> Not in agreement here. These are squashed bugs and we want as
>> less
>>>> bugs
>>>>>>>>>> in the release as possible.
>>>>>>>>>>> [Animesh] I understand but once we enter RC phase we only limit
>>>>>>>>>> important fixes. I have pulled in 2 commits from yours and 1 from
>>>> Daan.
>>>>>>>>>>
>>>>>>>>>> We limited our fixes to only the important issues that we found.
>>>> The other
>>>>>>>>>> 6000 issues between coverity and findbugs are still being triaged
>>>> and will
>>>>>>>>>> probably not make it into this release.
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> This is why we test any RC before we release it.
>>>>>>>>>>> [Animesh] Of course but timing is a bit off, if this was done a
>>>> month
>>>>>>>>>> back it would have been fine.
>>>>>>>>>>> I say include all the big fixes we have in the release. If that
>>>> means
>>>>>>>>>> more testing before we cut the RC then that is what it is. I can't
>>>>>>>>>> rightfully vote for a release with known issues with existing
>> fixes.
>>>>>>>>>>> [Animesh] Any release will have known issues, if we have fixes
>> but
>>>> can't
>>>>>>>>>> be sure on regression impact then we have to make a choice.
>>>>>>>>>>
>>>>>>>>>> Agreed, but we just don't agree on what that choice should be yet
>>>> ;-)
>>>>>>>>>>
>>>>>>>>>>> Quality over release schedule would be my vote then.
>>>>>>>>>>> [Animesh] But why so late? Why was this activity not planned
>> early
>>>> on? I
>>>>>>>>>> have been reminding community to call out issues early on since
>> like
>>>>>>>>>> mid-December.
>>>>>>>>>>
>>>>>>>>>> On November 4 I sent the mail to the dev list that static code
>>>> analysis
>>>>>>>>>> (coverity) found 6000+ issues that needed to be triaged. I worked
>>>> on quite
>>>>>>>>>> a few with my colleagues, but it's a big task for just the four of
>>>> us.
>>>>>>>>>> Findbugs just helped us to quickly identify the real scary issues
>>>> among
>>>>>>>>>> them.
>>>>>>>>>> So I agree that the timing is less than ideal, but we should do
>> our
>>>> utmost
>>>>>>>>>> best to ship the highest quality piece of software we can.
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>> Hugo
>>>>>>>>>>>
>>>>>>>>>>> Sent from my iPhone
>>>>>>>>>>>
>>>>>>>>>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
>>>>>>>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Folks these issues reported by find-bugs have existed for some
>>>> time. I
>>>>>>>>>> am not confident in picking them up now for 4.3 as it may break
>>>> code that
>>>>>>>>>> assumed old way of working. We can take them up for 4.3
>> maintenance
>>>>>>>>>> release. I wish we had done this exercise and not waited until
>> now.
>>>>>>>>>>>>
>>>>>>>>>>>> I will pick Hugo's commit for which he called -1.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks
>>>>>>>>>>>> Animesh
>>>>>>>>>>>>
>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo
>>>> Trippaers
>>>>>>>>>>>> Sent: Tuesday, January 28, 2014 1:29 AM
>>>>>>>>>>>> To: dev
>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>>
>>>>>>>>>>>> Hey Animesh,
>>>>>>>>>>>>
>>>>>>>>>>>> I agree with Daan here. We focussed on the bugs with a findbugs
>>>>>>>>>> annotation of scariest. I think that would warrant them to be
>>>> included in
>>>>>>>>>> the 4.3 release, so please cherry-pick them all.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>
>>>>>>>>>>>> Hugo
>>>>>>>>>>>>
>>>>>>>>>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <
>>>> daan.hoogland@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Animesh,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I took up a lot of messages from findbugs in the server package
>>>> over
>>>>>>>>>>>>> the weekend. Not that I will attach my soul to the shipping of
>> my
>>>>>>>>>>>>> fixes but some of them are == vs eq and some are really nasty
>>>>>>>>>>>>> nullpointer issues (a chack after first use is very common).
>> You
>>>> can
>>>>>>>>>>>>> cherry-pick them or not. I don't think you should leave any of
>>>> them
>>>>>>>>>>>>> behind. Even with David being right we should go against him at
>>>>>>>>>>>>> every convenient time, running the risk of being called his
>> wife.
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie>
>>>> wrote:
>>>>>>>>>>>>>> Hi Animesh,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Can you cherry-pick the below commit from from 4.3-forward to
>>>> 4.3
>>>>>>>>>> branch?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Fix findbug issues within LDAP authenticator commit
>>>>>>>>>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>> Ian
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>>>>>>>>>>>> <an...@citrix.com>wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked
>> at
>>>>>>>>>>>>>>> your commits
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>>>>>>>>>>>> I think you want the last one which has fixes for NetUtils
>> and
>>>>>>>>>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in
>>>> first
>>>>>>>>>>>>>>> RC but the commit includes more files. Can you make limited
>>>>>>>>>>>>>>> changes directly to 4.3? I want to build another RC later
>>>> tonight
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Animesh
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>>>>> From: Animesh Chaturvedi [mailto:
>> animesh.chaturvedi@citrix.com
>>>> ]
>>>>>>>>>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>>>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Agreed
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> We need to fix the most important ones for 4.3. There may be
>>>>>>>>>>>>>>> assumptions in the code which we may not know and may get
>>>> broken
>>>>>>>>>>>>>>> if these issues are fixed late. I will pull in the one Hugo
>>>> casted
>>>>>>>>>>>>>>> his
>>>>>>>>>>>>>>> -1 for the first vote, any others?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Animesh
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>>>>>>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>>>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> So just curious if I am the only one concerned about a ton of
>>>>>>>>>>>>>>> fixes going in at the last minute. If the fixes are for
>> serious
>>>>>>>>>>>>>>> bugs and we have consensus around their severity being high
>>>> enough,
>>>>>>>>>> indeed lets fix things.
>>>>>>>>>>>>>>> My concern is that much of the QA we do is manual; and while
>> we
>>>>>>>>>>>>>>> are getting better; fixing tons of things at the last minute
>>>> may
>>>>>>>>>>>>>>> have unintended consequences that we don't know about and
>> won't
>>>>>>>>>> easily find.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I yearn for the day when our automated testing is broad
>> enough
>>>>>>>>>>>>>>> that we can do fixes right up to the wire and know that
>> things
>>>>>>>>>>>>>>> still work, I am just not sure that I have confidence that we
>>>> are
>>>>>>>>>> there yet.
>>>>>>>>>>>>>>> Thoughts? I am being paranoid?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --David
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> Animesh, I commented the once i made yesterday with
>> findbugs:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I allready send a few and will get you a list of the rest
>>>> later
>>>>>>>>>> today.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> regards,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>>>>>>>>>>>> <an...@citrix.com> wrote:
>>>>>>>>>>>>>>>>> Good job fellas. I see a number of commits 20+ into
>>>> 4.3-forward
>>>>>>>>>> branch.
>>>>>>>>>>>>>>> Are their specific commits you want me to pick up out of
>> these?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Animesh
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>>>>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>>>>>>>>>>>> To: dev
>>>>>>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>>>>>>>>>>>> server
>>>>>>>>>>>>>>> package again this afternoon.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> bon appétit,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <
>> ian@ianduffy.ie
>>>>>
>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Fixed the issues highlighted in the ldap user
>> authentication
>>>>>>>>>> package.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>>>>> Ian
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> or reply to this mail with the filename you are working
>> on
>>>>>>>>>>>>>>>>>>> I'll be looking at the server package as it seems to
>>>> contain
>>>>>>>>>>>>>>>>>>> the most issues.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> I've also added a job to master with the Findbugs report
>>>> and
>>>>>>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with
>>>> unit
>>>>>>>>>> tests.
>>>>>>>>>>>>>>>>>>>> Huge
>>>>>>>>>>>>>>>>>>> improvement over the last release where we had 4% iirc.
>> We
>>>>>>>>>>>>>>>>>>> have
>>>>>>>>>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>>>>>>>>>>>> internationalization
>>>>>>>>>>>>>>> issues.
>>>>>>>>>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity
>>>> site
>>>>>>>>>>>>>>>>>>> we have
>>>>>>>>>>>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>>>>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we
>>>> can
>>>>>>>>>>>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I think that on average the automated tools tell us that
>>>> code
>>>>>>>>>>>>>>>>>>>> quality is
>>>>>>>>>>>>>>>>>>> improving, which a good thing. Combined with the
>> functional
>>>>>>>>>>>>>>>>>>> testing and the simulator build we can prove that we are
>>>> doing
>>>>>>>>>>>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Hugo
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> H Hugo,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work
>>>> load
>>>>>>>>>>>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>>>>>>>>>>>> ;)
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> regards
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on
>>>> 4.3-forward.
>>>>>>>>>>>>>>>>>>>>>> Is there
>>>>>>>>>>>>>>>>>>> somebody who is willing to help triage the findings?
>> Maybe
>>>>>>>>>>>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> the url is
>>>>>>>>>>>>>>>>>>>
>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>>>>>>>>>>>> n
>>>>>>>>>>>>>>>>>>> -
>>>>>>>>>>>>>>>>>>> bui
>>>>>>>>>>>>>>>>>>> ld
>>>>>>>>>>>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Hugo
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>
>>
>>
Re: Findbugs report on 4.3-forward
Posted by Ian Duffy <ia...@ianduffy.ie>.
Just continuing this for my own learning experience as I still don't see
it. I also don't see why the outputs from the commited code are OK, on
testing I'm getting things like: [55, 107, 73, 50, 87, 100, 119, 49, 121,
76, 56, 43, 104, 48, 112, 105, 107, 102, 111, 88, 87, 73, 98, 113, 120, 52,
85, 61]. I expected this to be a string made up of different characters to
form a random password, what looks like an array converted to a string.
With the char set know, it would be easy to decode the password than the
> previous encoded version.
So the argument being put forward is we know the charset that makes up the
password? This is true but we know the charset for a base64 string,
its A-Z,a-z,0-9,and +. Even still, with the charset exposed I don't see how
this is an issue(bare with my math here). Its a roughly 72 charset
generating a password of length 20. Thats 72^20 different possible
combinations. If we say it takes a second to brute each combination you are
looking at roughly (4.445×10^29) years to test all combinations. (
http://www.wolframalpha.com/input/?i=72%5E20+seconds+to+years )
The function in question is suppose to return a string that acts as the
password given to AccountService to create the new user account.... on
testing the code that has been committed into the 4.3 branch I'm just
getting back stuff like the following: [55, 107, 73, 50, 87, 100, 119, 49,
121, 76, 56, 43, 104, 48, 112, 105, 107, 102, 111, 88, 87, 73, 98, 113,
120, 52, 85, 61]
I executed the test manually by just pulling the code out and running it
alone from command line:
https://gist.github.com/imduffy15/ae7a809aa7bb6cb198e3.
Regards,
Ian
On 31 January 2014 04:38, Rajani Karuturi <Ra...@citrix.com>wrote:
> With the char set know, it would be easy to decode the password than the
> previous encoded version.
> This is a concern because even for ldap users we also check authentication
> against db.
>
> Thanks a lot for taking Daan and Ian.
>
>
> ~Rajani
>
>
>
> On 31-Jan-2014, at 1:20 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>
> > Hi,
> >
> > Sorry about the delay in replying to this have been doing exams at uni
> all
> > week.
> >
> > Daan's change looks to change Rajani concern.
> >
> > Might be me being naive but I fail to understand the concern fully...
> > The given character selection was roughly 72 with a string of length 20.
> If
> > my math is correct thats 72^20 different possible combinations...
> >
> > Anyways, thanks for taking care of this Daan.
> >
> > On 30 January 2014 13:28, Daan Hoogland <da...@gmail.com> wrote:
> >
> >> Guys,
> >>
> >> I found two reported issues of category 'scary'. To satify Rajuri's
> >> concerns I would like to revert Ian's commit and checkin two changes
> >> that change returning
> >> byte[].toString()
> >> into
> >> Arrays.toString(byte[])
> >> on return statements of generatePassword methods.
> >>
> >> if no objections come in within a few...,
> >> Daan
> >>
> >> On Thu, Jan 30, 2014 at 1:53 PM, Daan Hoogland <daan.hoogland@gmail.com
> >
> >> wrote:
> >>> Animesh, Ian,
> >>>
> >>> Can you comment on this?
> >>>
> >>> I couldn't find any findbugs issues of the the scariest kind in
> >>> yesterdays version of the 4.3 branch. What was solved that needs to go
> >>> in in spite of Rajuri's reservations?
> >>>
> >>> thanks,
> >>> Daan
> >>>
> >>> On Thu, Jan 30, 2014 at 11:21 AM, Daan Hoogland <
> daan.hoogland@gmail.com>
> >> wrote:
> >>>> Sorry Rajani,
> >>>>
> >>>> I had seen no reaction to Ian's explenation and the request by
> >>>> Animesh to pull it so I just did. let me look into it for a minute
> >>>>
> >>>> On Thu, Jan 30, 2014 at 5:36 AM, Rajani Karuturi
> >>>> <Ra...@citrix.com> wrote:
> >>>>> I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is
> >> already pushed to 4.3. I don't see any response on my concern as well.
> >>>>> Is it just me or anyone else sees a security issue with the generate
> >> password change?
> >>>>> Ian/Animesh/Daan, can you please respond?
> >>>>>
> >>>>> Thanks,
> >>>>> ~Rajani
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 29-Jan-2014, at 10:59 am, Rajani Karuturi <
> >> Rajani.Karuturi@citrix.com> wrote:
> >>>>>
> >>>>>> Hi Ian,
> >>>>>> Before it is pushed to 4.3, can you fix the generate password change
> >> like i suggested in the other mail? This current change would make it
> less
> >> secure.
> >>>>>>
> >>>>>> Thanks,
> >>>>>> ~Rajani
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
> >>>>>>
> >>>>>>> Hi Animesh,
> >>>>>>>
> >>>>>>> Tested all those changes to detail. Those lines were removed due to
> >>>>>>> unexpected behavior that I had not spotted until now.
> >>>>>>>
> >>>>>>> They were suppose to allow for better fall over between multiple
> >> domain
> >>>>>>> controllers, how ever they were causing caching to occur. This
> meant
> >> if a
> >>>>>>> users password was reset in LDAP the old password was still
> allowing
> >> login
> >>>>>>> for a limited time.
> >>>>>>>
> >>>>>>> Please pull the changes forward,
> >>>>>>> Thanks
> >>>>>>>
> >>>>>>> Ian.
> >>>>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <
> >> animesh.chaturvedi@citrix.com>
> >>>>>>> wrote:
> >>>>>>>
> >>>>>>>> If I look at this commit for example
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
> >>>>>>>>
> >>>>>>>> It removes the two lines from LdapContextFactory.java
> >>>>>>>>
> >>>>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
> >>>>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
> >>>>>>>>
> >>>>>>>> Is that reported by find bug? I don't know this code so not sure
> >> if it is
> >>>>>>>> intentional or not ?
> >>>>>>>>
> >>>>>>>> The point is there may be unintended risks in allowing late
> changes.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> -----Original Message-----
> >>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
> >>>>>>>> Sent: Tuesday, January 28, 2014 3:35 PM
> >>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>> Subject: RE: Findbugs report on 4.3-forward
> >>>>>>>>
> >>>>>>>> Are you sure all of the ones are needed. A quick look at 20+
> >> commits from
> >>>>>>>> Daan show many formatting changes that may not be necessary and
> >> hinder
> >>>>>>>> quick review.
> >>>>>>>>
> >>>>>>>> -----Original Message-----
> >>>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
> >>>>>>>> Sent: Tuesday, January 28, 2014 3:16 PM
> >>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Sent from my iPhone
> >>>>>>>>
> >>>>>>>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
> >>>>>>>> animesh.chaturvedi@citrix.com> wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> -----Original Message-----
> >>>>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
> >>>>>>>>> Sent: Tuesday, January 28, 2014 2:37 PM
> >>>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>>> Cc: dev@cloudstack.apache.org
> >>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>>>
> >>>>>>>>> Hey Animesh,
> >>>>>>>>>
> >>>>>>>>> Not in agreement here. These are squashed bugs and we want as
> less
> >> bugs
> >>>>>>>> in the release as possible.
> >>>>>>>>> [Animesh] I understand but once we enter RC phase we only limit
> >>>>>>>> important fixes. I have pulled in 2 commits from yours and 1 from
> >> Daan.
> >>>>>>>>
> >>>>>>>> We limited our fixes to only the important issues that we found.
> >> The other
> >>>>>>>> 6000 issues between coverity and findbugs are still being triaged
> >> and will
> >>>>>>>> probably not make it into this release.
> >>>>>>>>
> >>>>>>>>>
> >>>>>>>>> This is why we test any RC before we release it.
> >>>>>>>>> [Animesh] Of course but timing is a bit off, if this was done a
> >> month
> >>>>>>>> back it would have been fine.
> >>>>>>>>> I say include all the big fixes we have in the release. If that
> >> means
> >>>>>>>> more testing before we cut the RC then that is what it is. I can't
> >>>>>>>> rightfully vote for a release with known issues with existing
> fixes.
> >>>>>>>>> [Animesh] Any release will have known issues, if we have fixes
> but
> >> can't
> >>>>>>>> be sure on regression impact then we have to make a choice.
> >>>>>>>>
> >>>>>>>> Agreed, but we just don't agree on what that choice should be yet
> >> ;-)
> >>>>>>>>
> >>>>>>>>> Quality over release schedule would be my vote then.
> >>>>>>>>> [Animesh] But why so late? Why was this activity not planned
> early
> >> on? I
> >>>>>>>> have been reminding community to call out issues early on since
> like
> >>>>>>>> mid-December.
> >>>>>>>>
> >>>>>>>> On November 4 I sent the mail to the dev list that static code
> >> analysis
> >>>>>>>> (coverity) found 6000+ issues that needed to be triaged. I worked
> >> on quite
> >>>>>>>> a few with my colleagues, but it's a big task for just the four of
> >> us.
> >>>>>>>> Findbugs just helped us to quickly identify the real scary issues
> >> among
> >>>>>>>> them.
> >>>>>>>> So I agree that the timing is less than ideal, but we should do
> our
> >> utmost
> >>>>>>>> best to ship the highest quality piece of software we can.
> >>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Cheers,
> >>>>>>>>> Hugo
> >>>>>>>>>
> >>>>>>>>> Sent from my iPhone
> >>>>>>>>>
> >>>>>>>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
> >>>>>>>> animesh.chaturvedi@citrix.com> wrote:
> >>>>>>>>>>
> >>>>>>>>>> Folks these issues reported by find-bugs have existed for some
> >> time. I
> >>>>>>>> am not confident in picking them up now for 4.3 as it may break
> >> code that
> >>>>>>>> assumed old way of working. We can take them up for 4.3
> maintenance
> >>>>>>>> release. I wish we had done this exercise and not waited until
> now.
> >>>>>>>>>>
> >>>>>>>>>> I will pick Hugo's commit for which he called -1.
> >>>>>>>>>>
> >>>>>>>>>> Thanks
> >>>>>>>>>> Animesh
> >>>>>>>>>>
> >>>>>>>>>> -----Original Message-----
> >>>>>>>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo
> >> Trippaers
> >>>>>>>>>> Sent: Tuesday, January 28, 2014 1:29 AM
> >>>>>>>>>> To: dev
> >>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>>>>
> >>>>>>>>>> Hey Animesh,
> >>>>>>>>>>
> >>>>>>>>>> I agree with Daan here. We focussed on the bugs with a findbugs
> >>>>>>>> annotation of scariest. I think that would warrant them to be
> >> included in
> >>>>>>>> the 4.3 release, so please cherry-pick them all.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Cheers,
> >>>>>>>>>>
> >>>>>>>>>> Hugo
> >>>>>>>>>>
> >>>>>>>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <
> >> daan.hoogland@gmail.com>
> >>>>>>>> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>> Animesh,
> >>>>>>>>>>>
> >>>>>>>>>>> I took up a lot of messages from findbugs in the server package
> >> over
> >>>>>>>>>>> the weekend. Not that I will attach my soul to the shipping of
> my
> >>>>>>>>>>> fixes but some of them are == vs eq and some are really nasty
> >>>>>>>>>>> nullpointer issues (a chack after first use is very common).
> You
> >> can
> >>>>>>>>>>> cherry-pick them or not. I don't think you should leave any of
> >> them
> >>>>>>>>>>> behind. Even with David being right we should go against him at
> >>>>>>>>>>> every convenient time, running the risk of being called his
> wife.
> >>>>>>>>>>>
> >>>>>>>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie>
> >> wrote:
> >>>>>>>>>>>> Hi Animesh,
> >>>>>>>>>>>>
> >>>>>>>>>>>> Can you cherry-pick the below commit from from 4.3-forward to
> >> 4.3
> >>>>>>>> branch?
> >>>>>>>>>>>>
> >>>>>>>>>>>> Fix findbug issues within LDAP authenticator commit
> >>>>>>>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
> >>>>>>>>>>>>
> >>>>>>>>>>>> Thanks,
> >>>>>>>>>>>> Ian
> >>>>>>>>>>>>
> >>>>>>>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
> >>>>>>>>>>>> <an...@citrix.com>wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked
> at
> >>>>>>>>>>>>> your commits
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
> >>>>>>>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
> >>>>>>>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
> >>>>>>>>>>>>> I think you want the last one which has fixes for NetUtils
> and
> >>>>>>>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in
> >> first
> >>>>>>>>>>>>> RC but the commit includes more files. Can you make limited
> >>>>>>>>>>>>> changes directly to 4.3? I want to build another RC later
> >> tonight
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Animesh
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> -----Original Message-----
> >>>>>>>>>>>>> From: Animesh Chaturvedi [mailto:
> animesh.chaturvedi@citrix.com
> >> ]
> >>>>>>>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
> >>>>>>>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Agreed
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> We need to fix the most important ones for 4.3. There may be
> >>>>>>>>>>>>> assumptions in the code which we may not know and may get
> >> broken
> >>>>>>>>>>>>> if these issues are fixed late. I will pull in the one Hugo
> >> casted
> >>>>>>>>>>>>> his
> >>>>>>>>>>>>> -1 for the first vote, any others?
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Animesh
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> -----Original Message-----
> >>>>>>>>>>>>> From: David Nalley [mailto:david@gnsa.us]
> >>>>>>>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
> >>>>>>>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> So just curious if I am the only one concerned about a ton of
> >>>>>>>>>>>>> fixes going in at the last minute. If the fixes are for
> serious
> >>>>>>>>>>>>> bugs and we have consensus around their severity being high
> >> enough,
> >>>>>>>> indeed lets fix things.
> >>>>>>>>>>>>> My concern is that much of the QA we do is manual; and while
> we
> >>>>>>>>>>>>> are getting better; fixing tons of things at the last minute
> >> may
> >>>>>>>>>>>>> have unintended consequences that we don't know about and
> won't
> >>>>>>>> easily find.
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> I yearn for the day when our automated testing is broad
> enough
> >>>>>>>>>>>>> that we can do fixes right up to the wire and know that
> things
> >>>>>>>>>>>>> still work, I am just not sure that I have confidence that we
> >> are
> >>>>>>>> there yet.
> >>>>>>>>>>>>> Thoughts? I am being paranoid?
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> --David
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
> >>>>>>>>>>>>> <da...@gmail.com>
> >>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>> Animesh, I commented the once i made yesterday with
> findbugs:
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> I allready send a few and will get you a list of the rest
> >> later
> >>>>>>>> today.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> regards,
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
> >>>>>>>>>>>>>> <an...@citrix.com> wrote:
> >>>>>>>>>>>>>>> Good job fellas. I see a number of commits 20+ into
> >> 4.3-forward
> >>>>>>>> branch.
> >>>>>>>>>>>>> Are their specific commits you want me to pick up out of
> these?
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> Animesh
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> -----Original Message-----
> >>>>>>>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
> >>>>>>>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
> >>>>>>>>>>>>>>> To: dev
> >>>>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> I didn't get very far last night and will be looking at the
> >>>>>>>>>>>>>>> server
> >>>>>>>>>>>>> package again this afternoon.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> bon appétit,
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <
> ian@ianduffy.ie
> >>>
> >>>>>>>> wrote:
> >>>>>>>>>>>>>>>> Hi,
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Fixed the issues highlighted in the ldap user
> authentication
> >>>>>>>> package.
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Have pushed to 4.3-forward.
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Thanks,
> >>>>>>>>>>>>>>>> Ian
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
> >>>>>>>>>>>>>>>> <da...@gmail.com>
> >>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> or reply to this mail with the filename you are working
> on
> >>>>>>>>>>>>>>>>> I'll be looking at the server package as it seems to
> >> contain
> >>>>>>>>>>>>>>>>> the most issues.
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
> >>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
> >>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>>> I've also added a job to master with the Findbugs report
> >> and
> >>>>>>>>>>>>>>>>>> the
> >>>>>>>>>>>>>>>>> cobertura code coverage report.
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with
> >> unit
> >>>>>>>> tests.
> >>>>>>>>>>>>>>>>>> Huge
> >>>>>>>>>>>>>>>>> improvement over the last release where we had 4% iirc.
> We
> >>>>>>>>>>>>>>>>> have
> >>>>>>>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
> >>>>>>>>>>>>>>>>> internationalization
> >>>>>>>>>>>>> issues.
> >>>>>>>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity
> >> site
> >>>>>>>>>>>>>>>>> we have
> >>>>>>>>>>>>>>>>> 6000+ issues still open, but at least that number is
> >>>>>>>>>>>>>>>>> 6000+ relatively stable, we
> >>>>>>>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we
> >> can
> >>>>>>>>>>>>>>>>> assume a large number of false positives there.
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> I think that on average the automated tools tell us that
> >> code
> >>>>>>>>>>>>>>>>>> quality is
> >>>>>>>>>>>>>>>>> improving, which a good thing. Combined with the
> functional
> >>>>>>>>>>>>>>>>> testing and the simulator build we can prove that we are
> >> doing
> >>>>>>>>>>>>>>>>> quite well on the code quality angle.
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >> http://jenkins.buildacloud.org/job/build-master-slowbuild/
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> Cheers,
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> Hugo
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
> >>>>>>>>>>>>>>>>>> <da...@gmail.com>
> >>>>>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>> H Hugo,
> >>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work
> >> load
> >>>>>>>>>>>>>>>>>>> distribution scheme or is it random access?
> >>>>>>>>>>>>>>>>>>> ;)
> >>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>> regards
> >>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
> >>>>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
> >>>>>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>>>>> Hey all,
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on
> >> 4.3-forward.
> >>>>>>>>>>>>>>>>>>>> Is there
> >>>>>>>>>>>>>>>>> somebody who is willing to help triage the findings?
> Maybe
> >>>>>>>>>>>>>>>>> there is some stuff that we need to fix?
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> the url is
> >>>>>>>>>>>>>>>>>
> >> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
> >>>>>>>>>>>>>>>>> n
> >>>>>>>>>>>>>>>>> -
> >>>>>>>>>>>>>>>>> bui
> >>>>>>>>>>>>>>>>> ld
> >>>>>>>>>>>>>>>>> /3/findbugsResult/
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> Cheers,
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> Hugo
> >>>>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>>
> >>
>
>
Re: Findbugs report on 4.3-forward
Posted by Rajani Karuturi <Ra...@citrix.com>.
With the char set know, it would be easy to decode the password than the previous encoded version.
This is a concern because even for ldap users we also check authentication against db.
Thanks a lot for taking Daan and Ian.
~Rajani
On 31-Jan-2014, at 1:20 am, Ian Duffy <ia...@ianduffy.ie> wrote:
> Hi,
>
> Sorry about the delay in replying to this have been doing exams at uni all
> week.
>
> Daan's change looks to change Rajani concern.
>
> Might be me being naive but I fail to understand the concern fully...
> The given character selection was roughly 72 with a string of length 20. If
> my math is correct thats 72^20 different possible combinations...
>
> Anyways, thanks for taking care of this Daan.
>
> On 30 January 2014 13:28, Daan Hoogland <da...@gmail.com> wrote:
>
>> Guys,
>>
>> I found two reported issues of category 'scary'. To satify Rajuri's
>> concerns I would like to revert Ian's commit and checkin two changes
>> that change returning
>> byte[].toString()
>> into
>> Arrays.toString(byte[])
>> on return statements of generatePassword methods.
>>
>> if no objections come in within a few...,
>> Daan
>>
>> On Thu, Jan 30, 2014 at 1:53 PM, Daan Hoogland <da...@gmail.com>
>> wrote:
>>> Animesh, Ian,
>>>
>>> Can you comment on this?
>>>
>>> I couldn't find any findbugs issues of the the scariest kind in
>>> yesterdays version of the 4.3 branch. What was solved that needs to go
>>> in in spite of Rajuri's reservations?
>>>
>>> thanks,
>>> Daan
>>>
>>> On Thu, Jan 30, 2014 at 11:21 AM, Daan Hoogland <da...@gmail.com>
>> wrote:
>>>> Sorry Rajani,
>>>>
>>>> I had seen no reaction to Ian's explenation and the request by
>>>> Animesh to pull it so I just did. let me look into it for a minute
>>>>
>>>> On Thu, Jan 30, 2014 at 5:36 AM, Rajani Karuturi
>>>> <Ra...@citrix.com> wrote:
>>>>> I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is
>> already pushed to 4.3. I don't see any response on my concern as well.
>>>>> Is it just me or anyone else sees a security issue with the generate
>> password change?
>>>>> Ian/Animesh/Daan, can you please respond?
>>>>>
>>>>> Thanks,
>>>>> ~Rajani
>>>>>
>>>>>
>>>>>
>>>>> On 29-Jan-2014, at 10:59 am, Rajani Karuturi <
>> Rajani.Karuturi@citrix.com> wrote:
>>>>>
>>>>>> Hi Ian,
>>>>>> Before it is pushed to 4.3, can you fix the generate password change
>> like i suggested in the other mail? This current change would make it less
>> secure.
>>>>>>
>>>>>> Thanks,
>>>>>> ~Rajani
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>
>>>>>>> Hi Animesh,
>>>>>>>
>>>>>>> Tested all those changes to detail. Those lines were removed due to
>>>>>>> unexpected behavior that I had not spotted until now.
>>>>>>>
>>>>>>> They were suppose to allow for better fall over between multiple
>> domain
>>>>>>> controllers, how ever they were causing caching to occur. This meant
>> if a
>>>>>>> users password was reset in LDAP the old password was still allowing
>> login
>>>>>>> for a limited time.
>>>>>>>
>>>>>>> Please pull the changes forward,
>>>>>>> Thanks
>>>>>>>
>>>>>>> Ian.
>>>>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <
>> animesh.chaturvedi@citrix.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> If I look at this commit for example
>>>>>>>>
>>>>>>>>
>>>>>>>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>>>
>>>>>>>> It removes the two lines from LdapContextFactory.java
>>>>>>>>
>>>>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>>>>>
>>>>>>>> Is that reported by find bug? I don't know this code so not sure
>> if it is
>>>>>>>> intentional or not ?
>>>>>>>>
>>>>>>>> The point is there may be unintended risks in allowing late changes.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>>>>> Sent: Tuesday, January 28, 2014 3:35 PM
>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>>
>>>>>>>> Are you sure all of the ones are needed. A quick look at 20+
>> commits from
>>>>>>>> Daan show many formatting changes that may not be necessary and
>> hinder
>>>>>>>> quick review.
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>>>>> Sent: Tuesday, January 28, 2014 3:16 PM
>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Sent from my iPhone
>>>>>>>>
>>>>>>>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
>>>>>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>>>>>> Sent: Tuesday, January 28, 2014 2:37 PM
>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>> Cc: dev@cloudstack.apache.org
>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>
>>>>>>>>> Hey Animesh,
>>>>>>>>>
>>>>>>>>> Not in agreement here. These are squashed bugs and we want as less
>> bugs
>>>>>>>> in the release as possible.
>>>>>>>>> [Animesh] I understand but once we enter RC phase we only limit
>>>>>>>> important fixes. I have pulled in 2 commits from yours and 1 from
>> Daan.
>>>>>>>>
>>>>>>>> We limited our fixes to only the important issues that we found.
>> The other
>>>>>>>> 6000 issues between coverity and findbugs are still being triaged
>> and will
>>>>>>>> probably not make it into this release.
>>>>>>>>
>>>>>>>>>
>>>>>>>>> This is why we test any RC before we release it.
>>>>>>>>> [Animesh] Of course but timing is a bit off, if this was done a
>> month
>>>>>>>> back it would have been fine.
>>>>>>>>> I say include all the big fixes we have in the release. If that
>> means
>>>>>>>> more testing before we cut the RC then that is what it is. I can't
>>>>>>>> rightfully vote for a release with known issues with existing fixes.
>>>>>>>>> [Animesh] Any release will have known issues, if we have fixes but
>> can't
>>>>>>>> be sure on regression impact then we have to make a choice.
>>>>>>>>
>>>>>>>> Agreed, but we just don't agree on what that choice should be yet
>> ;-)
>>>>>>>>
>>>>>>>>> Quality over release schedule would be my vote then.
>>>>>>>>> [Animesh] But why so late? Why was this activity not planned early
>> on? I
>>>>>>>> have been reminding community to call out issues early on since like
>>>>>>>> mid-December.
>>>>>>>>
>>>>>>>> On November 4 I sent the mail to the dev list that static code
>> analysis
>>>>>>>> (coverity) found 6000+ issues that needed to be triaged. I worked
>> on quite
>>>>>>>> a few with my colleagues, but it's a big task for just the four of
>> us.
>>>>>>>> Findbugs just helped us to quickly identify the real scary issues
>> among
>>>>>>>> them.
>>>>>>>> So I agree that the timing is less than ideal, but we should do our
>> utmost
>>>>>>>> best to ship the highest quality piece of software we can.
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Hugo
>>>>>>>>>
>>>>>>>>> Sent from my iPhone
>>>>>>>>>
>>>>>>>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
>>>>>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Folks these issues reported by find-bugs have existed for some
>> time. I
>>>>>>>> am not confident in picking them up now for 4.3 as it may break
>> code that
>>>>>>>> assumed old way of working. We can take them up for 4.3 maintenance
>>>>>>>> release. I wish we had done this exercise and not waited until now.
>>>>>>>>>>
>>>>>>>>>> I will pick Hugo's commit for which he called -1.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Animesh
>>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo
>> Trippaers
>>>>>>>>>> Sent: Tuesday, January 28, 2014 1:29 AM
>>>>>>>>>> To: dev
>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>
>>>>>>>>>> Hey Animesh,
>>>>>>>>>>
>>>>>>>>>> I agree with Daan here. We focussed on the bugs with a findbugs
>>>>>>>> annotation of scariest. I think that would warrant them to be
>> included in
>>>>>>>> the 4.3 release, so please cherry-pick them all.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> Hugo
>>>>>>>>>>
>>>>>>>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <
>> daan.hoogland@gmail.com>
>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Animesh,
>>>>>>>>>>>
>>>>>>>>>>> I took up a lot of messages from findbugs in the server package
>> over
>>>>>>>>>>> the weekend. Not that I will attach my soul to the shipping of my
>>>>>>>>>>> fixes but some of them are == vs eq and some are really nasty
>>>>>>>>>>> nullpointer issues (a chack after first use is very common). You
>> can
>>>>>>>>>>> cherry-pick them or not. I don't think you should leave any of
>> them
>>>>>>>>>>> behind. Even with David being right we should go against him at
>>>>>>>>>>> every convenient time, running the risk of being called his wife.
>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie>
>> wrote:
>>>>>>>>>>>> Hi Animesh,
>>>>>>>>>>>>
>>>>>>>>>>>> Can you cherry-pick the below commit from from 4.3-forward to
>> 4.3
>>>>>>>> branch?
>>>>>>>>>>>>
>>>>>>>>>>>> Fix findbug issues within LDAP authenticator commit
>>>>>>>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Ian
>>>>>>>>>>>>
>>>>>>>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>>>>>>>>>> <an...@citrix.com>wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
>>>>>>>>>>>>> your commits
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>>>>>>>>>> I think you want the last one which has fixes for NetUtils and
>>>>>>>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in
>> first
>>>>>>>>>>>>> RC but the commit includes more files. Can you make limited
>>>>>>>>>>>>> changes directly to 4.3? I want to build another RC later
>> tonight
>>>>>>>>>>>>>
>>>>>>>>>>>>> Animesh
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com
>> ]
>>>>>>>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>>>>>>>
>>>>>>>>>>>>> Agreed
>>>>>>>>>>>>>
>>>>>>>>>>>>> We need to fix the most important ones for 4.3. There may be
>>>>>>>>>>>>> assumptions in the code which we may not know and may get
>> broken
>>>>>>>>>>>>> if these issues are fixed late. I will pull in the one Hugo
>> casted
>>>>>>>>>>>>> his
>>>>>>>>>>>>> -1 for the first vote, any others?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Animesh
>>>>>>>>>>>>>
>>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>>>>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>>>
>>>>>>>>>>>>> So just curious if I am the only one concerned about a ton of
>>>>>>>>>>>>> fixes going in at the last minute. If the fixes are for serious
>>>>>>>>>>>>> bugs and we have consensus around their severity being high
>> enough,
>>>>>>>> indeed lets fix things.
>>>>>>>>>>>>> My concern is that much of the QA we do is manual; and while we
>>>>>>>>>>>>> are getting better; fixing tons of things at the last minute
>> may
>>>>>>>>>>>>> have unintended consequences that we don't know about and won't
>>>>>>>> easily find.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I yearn for the day when our automated testing is broad enough
>>>>>>>>>>>>> that we can do fixes right up to the wire and know that things
>>>>>>>>>>>>> still work, I am just not sure that I have confidence that we
>> are
>>>>>>>> there yet.
>>>>>>>>>>>>> Thoughts? I am being paranoid?
>>>>>>>>>>>>>
>>>>>>>>>>>>> --David
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I allready send a few and will get you a list of the rest
>> later
>>>>>>>> today.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> regards,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>>>>>>>>>> <an...@citrix.com> wrote:
>>>>>>>>>>>>>>> Good job fellas. I see a number of commits 20+ into
>> 4.3-forward
>>>>>>>> branch.
>>>>>>>>>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Animesh
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>>>>>>>>>> To: dev
>>>>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>>>>>>>>>> server
>>>>>>>>>>>>> package again this afternoon.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> bon appétit,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ian@ianduffy.ie
>>>
>>>>>>>> wrote:
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Fixed the issues highlighted in the ldap user authentication
>>>>>>>> package.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>>> Ian
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>>>>>>>>>> I'll be looking at the server package as it seems to
>> contain
>>>>>>>>>>>>>>>>> the most issues.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> I've also added a job to master with the Findbugs report
>> and
>>>>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with
>> unit
>>>>>>>> tests.
>>>>>>>>>>>>>>>>>> Huge
>>>>>>>>>>>>>>>>> improvement over the last release where we had 4% iirc. We
>>>>>>>>>>>>>>>>> have
>>>>>>>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>>>>>>>>>> internationalization
>>>>>>>>>>>>> issues.
>>>>>>>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity
>> site
>>>>>>>>>>>>>>>>> we have
>>>>>>>>>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we
>> can
>>>>>>>>>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I think that on average the automated tools tell us that
>> code
>>>>>>>>>>>>>>>>>> quality is
>>>>>>>>>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>>>>>>>>>> testing and the simulator build we can prove that we are
>> doing
>>>>>>>>>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hugo
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> H Hugo,
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work
>> load
>>>>>>>>>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>>>>>>>>>> ;)
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> regards
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on
>> 4.3-forward.
>>>>>>>>>>>>>>>>>>>> Is there
>>>>>>>>>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> the url is
>>>>>>>>>>>>>>>>>
>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>>>>>>>>>> n
>>>>>>>>>>>>>>>>> -
>>>>>>>>>>>>>>>>> bui
>>>>>>>>>>>>>>>>> ld
>>>>>>>>>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Hugo
>>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>
>>
Re: Findbugs report on 4.3-forward
Posted by Ian Duffy <ia...@ianduffy.ie>.
Hi,
Sorry about the delay in replying to this have been doing exams at uni all
week.
Daan's change looks to change Rajani concern.
Might be me being naive but I fail to understand the concern fully...
The given character selection was roughly 72 with a string of length 20. If
my math is correct thats 72^20 different possible combinations...
Anyways, thanks for taking care of this Daan.
On 30 January 2014 13:28, Daan Hoogland <da...@gmail.com> wrote:
> Guys,
>
> I found two reported issues of category 'scary'. To satify Rajuri's
> concerns I would like to revert Ian's commit and checkin two changes
> that change returning
> byte[].toString()
> into
> Arrays.toString(byte[])
> on return statements of generatePassword methods.
>
> if no objections come in within a few...,
> Daan
>
> On Thu, Jan 30, 2014 at 1:53 PM, Daan Hoogland <da...@gmail.com>
> wrote:
> > Animesh, Ian,
> >
> > Can you comment on this?
> >
> > I couldn't find any findbugs issues of the the scariest kind in
> > yesterdays version of the 4.3 branch. What was solved that needs to go
> > in in spite of Rajuri's reservations?
> >
> > thanks,
> > Daan
> >
> > On Thu, Jan 30, 2014 at 11:21 AM, Daan Hoogland <da...@gmail.com>
> wrote:
> >> Sorry Rajani,
> >>
> >> I had seen no reaction to Ian's explenation and the request by
> >> Animesh to pull it so I just did. let me look into it for a minute
> >>
> >> On Thu, Jan 30, 2014 at 5:36 AM, Rajani Karuturi
> >> <Ra...@citrix.com> wrote:
> >>> I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is
> already pushed to 4.3. I don't see any response on my concern as well.
> >>> Is it just me or anyone else sees a security issue with the generate
> password change?
> >>> Ian/Animesh/Daan, can you please respond?
> >>>
> >>> Thanks,
> >>> ~Rajani
> >>>
> >>>
> >>>
> >>> On 29-Jan-2014, at 10:59 am, Rajani Karuturi <
> Rajani.Karuturi@citrix.com> wrote:
> >>>
> >>>> Hi Ian,
> >>>> Before it is pushed to 4.3, can you fix the generate password change
> like i suggested in the other mail? This current change would make it less
> secure.
> >>>>
> >>>> Thanks,
> >>>> ~Rajani
> >>>>
> >>>>
> >>>>
> >>>> On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
> >>>>
> >>>>> Hi Animesh,
> >>>>>
> >>>>> Tested all those changes to detail. Those lines were removed due to
> >>>>> unexpected behavior that I had not spotted until now.
> >>>>>
> >>>>> They were suppose to allow for better fall over between multiple
> domain
> >>>>> controllers, how ever they were causing caching to occur. This meant
> if a
> >>>>> users password was reset in LDAP the old password was still allowing
> login
> >>>>> for a limited time.
> >>>>>
> >>>>> Please pull the changes forward,
> >>>>> Thanks
> >>>>>
> >>>>> Ian.
> >>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <
> animesh.chaturvedi@citrix.com>
> >>>>> wrote:
> >>>>>
> >>>>>> If I look at this commit for example
> >>>>>>
> >>>>>>
> >>>>>>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
> >>>>>>
> >>>>>> It removes the two lines from LdapContextFactory.java
> >>>>>>
> >>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
> >>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
> >>>>>>
> >>>>>> Is that reported by find bug? I don't know this code so not sure
> if it is
> >>>>>> intentional or not ?
> >>>>>>
> >>>>>> The point is there may be unintended risks in allowing late changes.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
> >>>>>> Sent: Tuesday, January 28, 2014 3:35 PM
> >>>>>> To: dev@cloudstack.apache.org
> >>>>>> Subject: RE: Findbugs report on 4.3-forward
> >>>>>>
> >>>>>> Are you sure all of the ones are needed. A quick look at 20+
> commits from
> >>>>>> Daan show many formatting changes that may not be necessary and
> hinder
> >>>>>> quick review.
> >>>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
> >>>>>> Sent: Tuesday, January 28, 2014 3:16 PM
> >>>>>> To: dev@cloudstack.apache.org
> >>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Sent from my iPhone
> >>>>>>
> >>>>>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
> >>>>>> animesh.chaturvedi@citrix.com> wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>> -----Original Message-----
> >>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
> >>>>>>> Sent: Tuesday, January 28, 2014 2:37 PM
> >>>>>>> To: dev@cloudstack.apache.org
> >>>>>>> Cc: dev@cloudstack.apache.org
> >>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>
> >>>>>>> Hey Animesh,
> >>>>>>>
> >>>>>>> Not in agreement here. These are squashed bugs and we want as less
> bugs
> >>>>>> in the release as possible.
> >>>>>>> [Animesh] I understand but once we enter RC phase we only limit
> >>>>>> important fixes. I have pulled in 2 commits from yours and 1 from
> Daan.
> >>>>>>
> >>>>>> We limited our fixes to only the important issues that we found.
> The other
> >>>>>> 6000 issues between coverity and findbugs are still being triaged
> and will
> >>>>>> probably not make it into this release.
> >>>>>>
> >>>>>>>
> >>>>>>> This is why we test any RC before we release it.
> >>>>>>> [Animesh] Of course but timing is a bit off, if this was done a
> month
> >>>>>> back it would have been fine.
> >>>>>>> I say include all the big fixes we have in the release. If that
> means
> >>>>>> more testing before we cut the RC then that is what it is. I can't
> >>>>>> rightfully vote for a release with known issues with existing fixes.
> >>>>>>> [Animesh] Any release will have known issues, if we have fixes but
> can't
> >>>>>> be sure on regression impact then we have to make a choice.
> >>>>>>
> >>>>>> Agreed, but we just don't agree on what that choice should be yet
> ;-)
> >>>>>>
> >>>>>>> Quality over release schedule would be my vote then.
> >>>>>>> [Animesh] But why so late? Why was this activity not planned early
> on? I
> >>>>>> have been reminding community to call out issues early on since like
> >>>>>> mid-December.
> >>>>>>
> >>>>>> On November 4 I sent the mail to the dev list that static code
> analysis
> >>>>>> (coverity) found 6000+ issues that needed to be triaged. I worked
> on quite
> >>>>>> a few with my colleagues, but it's a big task for just the four of
> us.
> >>>>>> Findbugs just helped us to quickly identify the real scary issues
> among
> >>>>>> them.
> >>>>>> So I agree that the timing is less than ideal, but we should do our
> utmost
> >>>>>> best to ship the highest quality piece of software we can.
> >>>>>>
> >>>>>>>
> >>>>>>> Cheers,
> >>>>>>> Hugo
> >>>>>>>
> >>>>>>> Sent from my iPhone
> >>>>>>>
> >>>>>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
> >>>>>> animesh.chaturvedi@citrix.com> wrote:
> >>>>>>>>
> >>>>>>>> Folks these issues reported by find-bugs have existed for some
> time. I
> >>>>>> am not confident in picking them up now for 4.3 as it may break
> code that
> >>>>>> assumed old way of working. We can take them up for 4.3 maintenance
> >>>>>> release. I wish we had done this exercise and not waited until now.
> >>>>>>>>
> >>>>>>>> I will pick Hugo's commit for which he called -1.
> >>>>>>>>
> >>>>>>>> Thanks
> >>>>>>>> Animesh
> >>>>>>>>
> >>>>>>>> -----Original Message-----
> >>>>>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo
> Trippaers
> >>>>>>>> Sent: Tuesday, January 28, 2014 1:29 AM
> >>>>>>>> To: dev
> >>>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>>
> >>>>>>>> Hey Animesh,
> >>>>>>>>
> >>>>>>>> I agree with Daan here. We focussed on the bugs with a findbugs
> >>>>>> annotation of scariest. I think that would warrant them to be
> included in
> >>>>>> the 4.3 release, so please cherry-pick them all.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Cheers,
> >>>>>>>>
> >>>>>>>> Hugo
> >>>>>>>>
> >>>>>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <
> daan.hoogland@gmail.com>
> >>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>> Animesh,
> >>>>>>>>>
> >>>>>>>>> I took up a lot of messages from findbugs in the server package
> over
> >>>>>>>>> the weekend. Not that I will attach my soul to the shipping of my
> >>>>>>>>> fixes but some of them are == vs eq and some are really nasty
> >>>>>>>>> nullpointer issues (a chack after first use is very common). You
> can
> >>>>>>>>> cherry-pick them or not. I don't think you should leave any of
> them
> >>>>>>>>> behind. Even with David being right we should go against him at
> >>>>>>>>> every convenient time, running the risk of being called his wife.
> >>>>>>>>>
> >>>>>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie>
> wrote:
> >>>>>>>>>> Hi Animesh,
> >>>>>>>>>>
> >>>>>>>>>> Can you cherry-pick the below commit from from 4.3-forward to
> 4.3
> >>>>>> branch?
> >>>>>>>>>>
> >>>>>>>>>> Fix findbug issues within LDAP authenticator commit
> >>>>>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
> >>>>>>>>>>
> >>>>>>>>>> Thanks,
> >>>>>>>>>> Ian
> >>>>>>>>>>
> >>>>>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
> >>>>>>>>>> <an...@citrix.com>wrote:
> >>>>>>>>>>
> >>>>>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
> >>>>>>>>>>> your commits
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
> >>>>>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
> >>>>>>>>>>>
> >>>>>>>>>>>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
> >>>>>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
> >>>>>>>>>>> I think you want the last one which has fixes for NetUtils and
> >>>>>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in
> first
> >>>>>>>>>>> RC but the commit includes more files. Can you make limited
> >>>>>>>>>>> changes directly to 4.3? I want to build another RC later
> tonight
> >>>>>>>>>>>
> >>>>>>>>>>> Animesh
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> -----Original Message-----
> >>>>>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com
> ]
> >>>>>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
> >>>>>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
> >>>>>>>>>>>
> >>>>>>>>>>> Agreed
> >>>>>>>>>>>
> >>>>>>>>>>> We need to fix the most important ones for 4.3. There may be
> >>>>>>>>>>> assumptions in the code which we may not know and may get
> broken
> >>>>>>>>>>> if these issues are fixed late. I will pull in the one Hugo
> casted
> >>>>>>>>>>> his
> >>>>>>>>>>> -1 for the first vote, any others?
> >>>>>>>>>>>
> >>>>>>>>>>> Animesh
> >>>>>>>>>>>
> >>>>>>>>>>> -----Original Message-----
> >>>>>>>>>>> From: David Nalley [mailto:david@gnsa.us]
> >>>>>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
> >>>>>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>>>>>
> >>>>>>>>>>> So just curious if I am the only one concerned about a ton of
> >>>>>>>>>>> fixes going in at the last minute. If the fixes are for serious
> >>>>>>>>>>> bugs and we have consensus around their severity being high
> enough,
> >>>>>> indeed lets fix things.
> >>>>>>>>>>> My concern is that much of the QA we do is manual; and while we
> >>>>>>>>>>> are getting better; fixing tons of things at the last minute
> may
> >>>>>>>>>>> have unintended consequences that we don't know about and won't
> >>>>>> easily find.
> >>>>>>>>>>>
> >>>>>>>>>>> I yearn for the day when our automated testing is broad enough
> >>>>>>>>>>> that we can do fixes right up to the wire and know that things
> >>>>>>>>>>> still work, I am just not sure that I have confidence that we
> are
> >>>>>> there yet.
> >>>>>>>>>>> Thoughts? I am being paranoid?
> >>>>>>>>>>>
> >>>>>>>>>>> --David
> >>>>>>>>>>>
> >>>>>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
> >>>>>>>>>>> <da...@gmail.com>
> >>>>>>>>>>> wrote:
> >>>>>>>>>>>> Animesh, I commented the once i made yesterday with findbugs:
> >>>>>>>>>>>>
> >>>>>>>>>>>> I allready send a few and will get you a list of the rest
> later
> >>>>>> today.
> >>>>>>>>>>>>
> >>>>>>>>>>>> regards,
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
> >>>>>>>>>>>> <an...@citrix.com> wrote:
> >>>>>>>>>>>>> Good job fellas. I see a number of commits 20+ into
> 4.3-forward
> >>>>>> branch.
> >>>>>>>>>>> Are their specific commits you want me to pick up out of these?
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Animesh
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> -----Original Message-----
> >>>>>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
> >>>>>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
> >>>>>>>>>>>>> To: dev
> >>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> I didn't get very far last night and will be looking at the
> >>>>>>>>>>>>> server
> >>>>>>>>>>> package again this afternoon.
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> bon appétit,
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ian@ianduffy.ie
> >
> >>>>>> wrote:
> >>>>>>>>>>>>>> Hi,
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Fixed the issues highlighted in the ldap user authentication
> >>>>>> package.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Have pushed to 4.3-forward.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Thanks,
> >>>>>>>>>>>>>> Ian
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
> >>>>>>>>>>>>>> <da...@gmail.com>
> >>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> or reply to this mail with the filename you are working on
> >>>>>>>>>>>>>>> I'll be looking at the server package as it seems to
> contain
> >>>>>>>>>>>>>>> the most issues.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
> >>>>>>>>>>>>>>> <hu...@trippaers.nl>
> >>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>> I've also added a job to master with the Findbugs report
> and
> >>>>>>>>>>>>>>>> the
> >>>>>>>>>>>>>>> cobertura code coverage report.
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with
> unit
> >>>>>> tests.
> >>>>>>>>>>>>>>>> Huge
> >>>>>>>>>>>>>>> improvement over the last release where we had 4% iirc. We
> >>>>>>>>>>>>>>> have
> >>>>>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
> >>>>>>>>>>>>>>> internationalization
> >>>>>>>>>>> issues.
> >>>>>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity
> site
> >>>>>>>>>>>>>>> we have
> >>>>>>>>>>>>>>> 6000+ issues still open, but at least that number is
> >>>>>>>>>>>>>>> 6000+ relatively stable, we
> >>>>>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we
> can
> >>>>>>>>>>>>>>> assume a large number of false positives there.
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> I think that on average the automated tools tell us that
> code
> >>>>>>>>>>>>>>>> quality is
> >>>>>>>>>>>>>>> improving, which a good thing. Combined with the functional
> >>>>>>>>>>>>>>> testing and the simulator build we can prove that we are
> doing
> >>>>>>>>>>>>>>> quite well on the code quality angle.
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> http://jenkins.buildacloud.org/job/build-master-slowbuild/
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Cheers,
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Hugo
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
> >>>>>>>>>>>>>>>> <da...@gmail.com>
> >>>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> H Hugo,
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work
> load
> >>>>>>>>>>>>>>>>> distribution scheme or is it random access?
> >>>>>>>>>>>>>>>>> ;)
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> regards
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
> >>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
> >>>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>>> Hey all,
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on
> 4.3-forward.
> >>>>>>>>>>>>>>>>>> Is there
> >>>>>>>>>>>>>>> somebody who is willing to help triage the findings? Maybe
> >>>>>>>>>>>>>>> there is some stuff that we need to fix?
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> the url is
> >>>>>>>>>>>>>>>
> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
> >>>>>>>>>>>>>>> n
> >>>>>>>>>>>>>>> -
> >>>>>>>>>>>>>>> bui
> >>>>>>>>>>>>>>> ld
> >>>>>>>>>>>>>>> /3/findbugsResult/
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> Cheers,
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> Hugo
> >>>>>>>>
> >>>>>>
> >>>>
> >>>
>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
Guys,
I found two reported issues of category 'scary'. To satify Rajuri's
concerns I would like to revert Ian's commit and checkin two changes
that change returning
byte[].toString()
into
Arrays.toString(byte[])
on return statements of generatePassword methods.
if no objections come in within a few...,
Daan
On Thu, Jan 30, 2014 at 1:53 PM, Daan Hoogland <da...@gmail.com> wrote:
> Animesh, Ian,
>
> Can you comment on this?
>
> I couldn't find any findbugs issues of the the scariest kind in
> yesterdays version of the 4.3 branch. What was solved that needs to go
> in in spite of Rajuri's reservations?
>
> thanks,
> Daan
>
> On Thu, Jan 30, 2014 at 11:21 AM, Daan Hoogland <da...@gmail.com> wrote:
>> Sorry Rajani,
>>
>> I had seen no reaction to Ian's explenation and the request by
>> Animesh to pull it so I just did. let me look into it for a minute
>>
>> On Thu, Jan 30, 2014 at 5:36 AM, Rajani Karuturi
>> <Ra...@citrix.com> wrote:
>>> I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is already pushed to 4.3. I don't see any response on my concern as well.
>>> Is it just me or anyone else sees a security issue with the generate password change?
>>> Ian/Animesh/Daan, can you please respond?
>>>
>>> Thanks,
>>> ~Rajani
>>>
>>>
>>>
>>> On 29-Jan-2014, at 10:59 am, Rajani Karuturi <Ra...@citrix.com> wrote:
>>>
>>>> Hi Ian,
>>>> Before it is pushed to 4.3, can you fix the generate password change like i suggested in the other mail? This current change would make it less secure.
>>>>
>>>> Thanks,
>>>> ~Rajani
>>>>
>>>>
>>>>
>>>> On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>
>>>>> Hi Animesh,
>>>>>
>>>>> Tested all those changes to detail. Those lines were removed due to
>>>>> unexpected behavior that I had not spotted until now.
>>>>>
>>>>> They were suppose to allow for better fall over between multiple domain
>>>>> controllers, how ever they were causing caching to occur. This meant if a
>>>>> users password was reset in LDAP the old password was still allowing login
>>>>> for a limited time.
>>>>>
>>>>> Please pull the changes forward,
>>>>> Thanks
>>>>>
>>>>> Ian.
>>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
>>>>> wrote:
>>>>>
>>>>>> If I look at this commit for example
>>>>>>
>>>>>>
>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>
>>>>>> It removes the two lines from LdapContextFactory.java
>>>>>>
>>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>>>
>>>>>> Is that reported by find bug? I don't know this code so not sure if it is
>>>>>> intentional or not ?
>>>>>>
>>>>>> The point is there may be unintended risks in allowing late changes.
>>>>>>
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>>> Sent: Tuesday, January 28, 2014 3:35 PM
>>>>>> To: dev@cloudstack.apache.org
>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>
>>>>>> Are you sure all of the ones are needed. A quick look at 20+ commits from
>>>>>> Daan show many formatting changes that may not be necessary and hinder
>>>>>> quick review.
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>>> Sent: Tuesday, January 28, 2014 3:16 PM
>>>>>> To: dev@cloudstack.apache.org
>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>
>>>>>>
>>>>>>
>>>>>> Sent from my iPhone
>>>>>>
>>>>>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
>>>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>>>> Sent: Tuesday, January 28, 2014 2:37 PM
>>>>>>> To: dev@cloudstack.apache.org
>>>>>>> Cc: dev@cloudstack.apache.org
>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>
>>>>>>> Hey Animesh,
>>>>>>>
>>>>>>> Not in agreement here. These are squashed bugs and we want as less bugs
>>>>>> in the release as possible.
>>>>>>> [Animesh] I understand but once we enter RC phase we only limit
>>>>>> important fixes. I have pulled in 2 commits from yours and 1 from Daan.
>>>>>>
>>>>>> We limited our fixes to only the important issues that we found. The other
>>>>>> 6000 issues between coverity and findbugs are still being triaged and will
>>>>>> probably not make it into this release.
>>>>>>
>>>>>>>
>>>>>>> This is why we test any RC before we release it.
>>>>>>> [Animesh] Of course but timing is a bit off, if this was done a month
>>>>>> back it would have been fine.
>>>>>>> I say include all the big fixes we have in the release. If that means
>>>>>> more testing before we cut the RC then that is what it is. I can't
>>>>>> rightfully vote for a release with known issues with existing fixes.
>>>>>>> [Animesh] Any release will have known issues, if we have fixes but can't
>>>>>> be sure on regression impact then we have to make a choice.
>>>>>>
>>>>>> Agreed, but we just don't agree on what that choice should be yet ;-)
>>>>>>
>>>>>>> Quality over release schedule would be my vote then.
>>>>>>> [Animesh] But why so late? Why was this activity not planned early on? I
>>>>>> have been reminding community to call out issues early on since like
>>>>>> mid-December.
>>>>>>
>>>>>> On November 4 I sent the mail to the dev list that static code analysis
>>>>>> (coverity) found 6000+ issues that needed to be triaged. I worked on quite
>>>>>> a few with my colleagues, but it's a big task for just the four of us.
>>>>>> Findbugs just helped us to quickly identify the real scary issues among
>>>>>> them.
>>>>>> So I agree that the timing is less than ideal, but we should do our utmost
>>>>>> best to ship the highest quality piece of software we can.
>>>>>>
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Hugo
>>>>>>>
>>>>>>> Sent from my iPhone
>>>>>>>
>>>>>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
>>>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>>>
>>>>>>>> Folks these issues reported by find-bugs have existed for some time. I
>>>>>> am not confident in picking them up now for 4.3 as it may break code that
>>>>>> assumed old way of working. We can take them up for 4.3 maintenance
>>>>>> release. I wish we had done this exercise and not waited until now.
>>>>>>>>
>>>>>>>> I will pick Hugo's commit for which he called -1.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Animesh
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
>>>>>>>> Sent: Tuesday, January 28, 2014 1:29 AM
>>>>>>>> To: dev
>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>
>>>>>>>> Hey Animesh,
>>>>>>>>
>>>>>>>> I agree with Daan here. We focussed on the bugs with a findbugs
>>>>>> annotation of scariest. I think that would warrant them to be included in
>>>>>> the 4.3 release, so please cherry-pick them all.
>>>>>>>>
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> Hugo
>>>>>>>>
>>>>>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com>
>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Animesh,
>>>>>>>>>
>>>>>>>>> I took up a lot of messages from findbugs in the server package over
>>>>>>>>> the weekend. Not that I will attach my soul to the shipping of my
>>>>>>>>> fixes but some of them are == vs eq and some are really nasty
>>>>>>>>> nullpointer issues (a chack after first use is very common). You can
>>>>>>>>> cherry-pick them or not. I don't think you should leave any of them
>>>>>>>>> behind. Even with David being right we should go against him at
>>>>>>>>> every convenient time, running the risk of being called his wife.
>>>>>>>>>
>>>>>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>>>>> Hi Animesh,
>>>>>>>>>>
>>>>>>>>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3
>>>>>> branch?
>>>>>>>>>>
>>>>>>>>>> Fix findbug issues within LDAP authenticator commit
>>>>>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Ian
>>>>>>>>>>
>>>>>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>>>>>>>> <an...@citrix.com>wrote:
>>>>>>>>>>
>>>>>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
>>>>>>>>>>> your commits
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>>>>>>>
>>>>>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>>>>>>>> I think you want the last one which has fixes for NetUtils and
>>>>>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in first
>>>>>>>>>>> RC but the commit includes more files. Can you make limited
>>>>>>>>>>> changes directly to 4.3? I want to build another RC later tonight
>>>>>>>>>>>
>>>>>>>>>>> Animesh
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>>>>>
>>>>>>>>>>> Agreed
>>>>>>>>>>>
>>>>>>>>>>> We need to fix the most important ones for 4.3. There may be
>>>>>>>>>>> assumptions in the code which we may not know and may get broken
>>>>>>>>>>> if these issues are fixed late. I will pull in the one Hugo casted
>>>>>>>>>>> his
>>>>>>>>>>> -1 for the first vote, any others?
>>>>>>>>>>>
>>>>>>>>>>> Animesh
>>>>>>>>>>>
>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>
>>>>>>>>>>> So just curious if I am the only one concerned about a ton of
>>>>>>>>>>> fixes going in at the last minute. If the fixes are for serious
>>>>>>>>>>> bugs and we have consensus around their severity being high enough,
>>>>>> indeed lets fix things.
>>>>>>>>>>> My concern is that much of the QA we do is manual; and while we
>>>>>>>>>>> are getting better; fixing tons of things at the last minute may
>>>>>>>>>>> have unintended consequences that we don't know about and won't
>>>>>> easily find.
>>>>>>>>>>>
>>>>>>>>>>> I yearn for the day when our automated testing is broad enough
>>>>>>>>>>> that we can do fixes right up to the wire and know that things
>>>>>>>>>>> still work, I am just not sure that I have confidence that we are
>>>>>> there yet.
>>>>>>>>>>> Thoughts? I am being paranoid?
>>>>>>>>>>>
>>>>>>>>>>> --David
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>>>>>>>
>>>>>>>>>>>> I allready send a few and will get you a list of the rest later
>>>>>> today.
>>>>>>>>>>>>
>>>>>>>>>>>> regards,
>>>>>>>>>>>>
>>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>>>>>>>> <an...@citrix.com> wrote:
>>>>>>>>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward
>>>>>> branch.
>>>>>>>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Animesh
>>>>>>>>>>>>>
>>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>>>>>>>> To: dev
>>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>>>
>>>>>>>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>>>>>>>> server
>>>>>>>>>>> package again this afternoon.
>>>>>>>>>>>>>
>>>>>>>>>>>>> bon appétit,
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie>
>>>>>> wrote:
>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Fixed the issues highlighted in the ldap user authentication
>>>>>> package.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>> Ian
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>>>>>>>>> the most issues.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit
>>>>>> tests.
>>>>>>>>>>>>>>>> Huge
>>>>>>>>>>>>>>> improvement over the last release where we had 4% iirc. We
>>>>>>>>>>>>>>> have
>>>>>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>>>>>>>> internationalization
>>>>>>>>>>> issues.
>>>>>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>>>>>>>>> we have
>>>>>>>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>>>>>>>>> quality is
>>>>>>>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hugo
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> H Hugo,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>>>>>>>> ;)
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> regards
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>>>>>>>>> Is there
>>>>>>>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> the url is
>>>>>>>>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>>>>>>>> n
>>>>>>>>>>>>>>> -
>>>>>>>>>>>>>>> bui
>>>>>>>>>>>>>>> ld
>>>>>>>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hugo
>>>>>>>>
>>>>>>
>>>>
>>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
Animesh, Ian,
Can you comment on this?
I couldn't find any findbugs issues of the the scariest kind in
yesterdays version of the 4.3 branch. What was solved that needs to go
in in spite of Rajuri's reservations?
thanks,
Daan
On Thu, Jan 30, 2014 at 11:21 AM, Daan Hoogland <da...@gmail.com> wrote:
> Sorry Rajani,
>
> I had seen no reaction to Ian's explenation and the request by
> Animesh to pull it so I just did. let me look into it for a minute
>
> On Thu, Jan 30, 2014 at 5:36 AM, Rajani Karuturi
> <Ra...@citrix.com> wrote:
>> I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is already pushed to 4.3. I don't see any response on my concern as well.
>> Is it just me or anyone else sees a security issue with the generate password change?
>> Ian/Animesh/Daan, can you please respond?
>>
>> Thanks,
>> ~Rajani
>>
>>
>>
>> On 29-Jan-2014, at 10:59 am, Rajani Karuturi <Ra...@citrix.com> wrote:
>>
>>> Hi Ian,
>>> Before it is pushed to 4.3, can you fix the generate password change like i suggested in the other mail? This current change would make it less secure.
>>>
>>> Thanks,
>>> ~Rajani
>>>
>>>
>>>
>>> On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>
>>>> Hi Animesh,
>>>>
>>>> Tested all those changes to detail. Those lines were removed due to
>>>> unexpected behavior that I had not spotted until now.
>>>>
>>>> They were suppose to allow for better fall over between multiple domain
>>>> controllers, how ever they were causing caching to occur. This meant if a
>>>> users password was reset in LDAP the old password was still allowing login
>>>> for a limited time.
>>>>
>>>> Please pull the changes forward,
>>>> Thanks
>>>>
>>>> Ian.
>>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
>>>> wrote:
>>>>
>>>>> If I look at this commit for example
>>>>>
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>
>>>>> It removes the two lines from LdapContextFactory.java
>>>>>
>>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>>
>>>>> Is that reported by find bug? I don't know this code so not sure if it is
>>>>> intentional or not ?
>>>>>
>>>>> The point is there may be unintended risks in allowing late changes.
>>>>>
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>> Sent: Tuesday, January 28, 2014 3:35 PM
>>>>> To: dev@cloudstack.apache.org
>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>
>>>>> Are you sure all of the ones are needed. A quick look at 20+ commits from
>>>>> Daan show many formatting changes that may not be necessary and hinder
>>>>> quick review.
>>>>>
>>>>> -----Original Message-----
>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>> Sent: Tuesday, January 28, 2014 3:16 PM
>>>>> To: dev@cloudstack.apache.org
>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>
>>>>>
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
>>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>>> Sent: Tuesday, January 28, 2014 2:37 PM
>>>>>> To: dev@cloudstack.apache.org
>>>>>> Cc: dev@cloudstack.apache.org
>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>
>>>>>> Hey Animesh,
>>>>>>
>>>>>> Not in agreement here. These are squashed bugs and we want as less bugs
>>>>> in the release as possible.
>>>>>> [Animesh] I understand but once we enter RC phase we only limit
>>>>> important fixes. I have pulled in 2 commits from yours and 1 from Daan.
>>>>>
>>>>> We limited our fixes to only the important issues that we found. The other
>>>>> 6000 issues between coverity and findbugs are still being triaged and will
>>>>> probably not make it into this release.
>>>>>
>>>>>>
>>>>>> This is why we test any RC before we release it.
>>>>>> [Animesh] Of course but timing is a bit off, if this was done a month
>>>>> back it would have been fine.
>>>>>> I say include all the big fixes we have in the release. If that means
>>>>> more testing before we cut the RC then that is what it is. I can't
>>>>> rightfully vote for a release with known issues with existing fixes.
>>>>>> [Animesh] Any release will have known issues, if we have fixes but can't
>>>>> be sure on regression impact then we have to make a choice.
>>>>>
>>>>> Agreed, but we just don't agree on what that choice should be yet ;-)
>>>>>
>>>>>> Quality over release schedule would be my vote then.
>>>>>> [Animesh] But why so late? Why was this activity not planned early on? I
>>>>> have been reminding community to call out issues early on since like
>>>>> mid-December.
>>>>>
>>>>> On November 4 I sent the mail to the dev list that static code analysis
>>>>> (coverity) found 6000+ issues that needed to be triaged. I worked on quite
>>>>> a few with my colleagues, but it's a big task for just the four of us.
>>>>> Findbugs just helped us to quickly identify the real scary issues among
>>>>> them.
>>>>> So I agree that the timing is less than ideal, but we should do our utmost
>>>>> best to ship the highest quality piece of software we can.
>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>> Hugo
>>>>>>
>>>>>> Sent from my iPhone
>>>>>>
>>>>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
>>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>>
>>>>>>> Folks these issues reported by find-bugs have existed for some time. I
>>>>> am not confident in picking them up now for 4.3 as it may break code that
>>>>> assumed old way of working. We can take them up for 4.3 maintenance
>>>>> release. I wish we had done this exercise and not waited until now.
>>>>>>>
>>>>>>> I will pick Hugo's commit for which he called -1.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Animesh
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
>>>>>>> Sent: Tuesday, January 28, 2014 1:29 AM
>>>>>>> To: dev
>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>
>>>>>>> Hey Animesh,
>>>>>>>
>>>>>>> I agree with Daan here. We focussed on the bugs with a findbugs
>>>>> annotation of scariest. I think that would warrant them to be included in
>>>>> the 4.3 release, so please cherry-pick them all.
>>>>>>>
>>>>>>>
>>>>>>> Cheers,
>>>>>>>
>>>>>>> Hugo
>>>>>>>
>>>>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com>
>>>>> wrote:
>>>>>>>>
>>>>>>>> Animesh,
>>>>>>>>
>>>>>>>> I took up a lot of messages from findbugs in the server package over
>>>>>>>> the weekend. Not that I will attach my soul to the shipping of my
>>>>>>>> fixes but some of them are == vs eq and some are really nasty
>>>>>>>> nullpointer issues (a chack after first use is very common). You can
>>>>>>>> cherry-pick them or not. I don't think you should leave any of them
>>>>>>>> behind. Even with David being right we should go against him at
>>>>>>>> every convenient time, running the risk of being called his wife.
>>>>>>>>
>>>>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>>>> Hi Animesh,
>>>>>>>>>
>>>>>>>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3
>>>>> branch?
>>>>>>>>>
>>>>>>>>> Fix findbug issues within LDAP authenticator commit
>>>>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Ian
>>>>>>>>>
>>>>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>>>>>>> <an...@citrix.com>wrote:
>>>>>>>>>
>>>>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
>>>>>>>>>> your commits
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>>>>>>
>>>>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>>>>>>> I think you want the last one which has fixes for NetUtils and
>>>>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in first
>>>>>>>>>> RC but the commit includes more files. Can you make limited
>>>>>>>>>> changes directly to 4.3? I want to build another RC later tonight
>>>>>>>>>>
>>>>>>>>>> Animesh
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>>>>
>>>>>>>>>> Agreed
>>>>>>>>>>
>>>>>>>>>> We need to fix the most important ones for 4.3. There may be
>>>>>>>>>> assumptions in the code which we may not know and may get broken
>>>>>>>>>> if these issues are fixed late. I will pull in the one Hugo casted
>>>>>>>>>> his
>>>>>>>>>> -1 for the first vote, any others?
>>>>>>>>>>
>>>>>>>>>> Animesh
>>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>
>>>>>>>>>> So just curious if I am the only one concerned about a ton of
>>>>>>>>>> fixes going in at the last minute. If the fixes are for serious
>>>>>>>>>> bugs and we have consensus around their severity being high enough,
>>>>> indeed lets fix things.
>>>>>>>>>> My concern is that much of the QA we do is manual; and while we
>>>>>>>>>> are getting better; fixing tons of things at the last minute may
>>>>>>>>>> have unintended consequences that we don't know about and won't
>>>>> easily find.
>>>>>>>>>>
>>>>>>>>>> I yearn for the day when our automated testing is broad enough
>>>>>>>>>> that we can do fixes right up to the wire and know that things
>>>>>>>>>> still work, I am just not sure that I have confidence that we are
>>>>> there yet.
>>>>>>>>>> Thoughts? I am being paranoid?
>>>>>>>>>>
>>>>>>>>>> --David
>>>>>>>>>>
>>>>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>>>>>>
>>>>>>>>>>> I allready send a few and will get you a list of the rest later
>>>>> today.
>>>>>>>>>>>
>>>>>>>>>>> regards,
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>>>>>>> <an...@citrix.com> wrote:
>>>>>>>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward
>>>>> branch.
>>>>>>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>>>>>>
>>>>>>>>>>>> Animesh
>>>>>>>>>>>>
>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>>>>>>> To: dev
>>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>>
>>>>>>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>>>>>>> server
>>>>>>>>>> package again this afternoon.
>>>>>>>>>>>>
>>>>>>>>>>>> bon appétit,
>>>>>>>>>>>>
>>>>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie>
>>>>> wrote:
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Fixed the issues highlighted in the ldap user authentication
>>>>> package.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Ian
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>>>>>>>> the most issues.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit
>>>>> tests.
>>>>>>>>>>>>>>> Huge
>>>>>>>>>>>>>> improvement over the last release where we had 4% iirc. We
>>>>>>>>>>>>>> have
>>>>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>>>>>>> internationalization
>>>>>>>>>> issues.
>>>>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>>>>>>>> we have
>>>>>>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>>>>>>>> quality is
>>>>>>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hugo
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> H Hugo,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>>>>>>> ;)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> regards
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>>>>>>>> Is there
>>>>>>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> the url is
>>>>>>>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>>>>>>> n
>>>>>>>>>>>>>> -
>>>>>>>>>>>>>> bui
>>>>>>>>>>>>>> ld
>>>>>>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Hugo
>>>>>>>
>>>>>
>>>
>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
Sorry Rajani,
I had seen no reaction to Ian's explenation and the request by
Animesh to pull it so I just did. let me look into it for a minute
On Thu, Jan 30, 2014 at 5:36 AM, Rajani Karuturi
<Ra...@citrix.com> wrote:
> I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is already pushed to 4.3. I don't see any response on my concern as well.
> Is it just me or anyone else sees a security issue with the generate password change?
> Ian/Animesh/Daan, can you please respond?
>
> Thanks,
> ~Rajani
>
>
>
> On 29-Jan-2014, at 10:59 am, Rajani Karuturi <Ra...@citrix.com> wrote:
>
>> Hi Ian,
>> Before it is pushed to 4.3, can you fix the generate password change like i suggested in the other mail? This current change would make it less secure.
>>
>> Thanks,
>> ~Rajani
>>
>>
>>
>> On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>>
>>> Hi Animesh,
>>>
>>> Tested all those changes to detail. Those lines were removed due to
>>> unexpected behavior that I had not spotted until now.
>>>
>>> They were suppose to allow for better fall over between multiple domain
>>> controllers, how ever they were causing caching to occur. This meant if a
>>> users password was reset in LDAP the old password was still allowing login
>>> for a limited time.
>>>
>>> Please pull the changes forward,
>>> Thanks
>>>
>>> Ian.
>>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
>>> wrote:
>>>
>>>> If I look at this commit for example
>>>>
>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>
>>>> It removes the two lines from LdapContextFactory.java
>>>>
>>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>>
>>>> Is that reported by find bug? I don't know this code so not sure if it is
>>>> intentional or not ?
>>>>
>>>> The point is there may be unintended risks in allowing late changes.
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>> Sent: Tuesday, January 28, 2014 3:35 PM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>
>>>> Are you sure all of the ones are needed. A quick look at 20+ commits from
>>>> Daan show many formatting changes that may not be necessary and hinder
>>>> quick review.
>>>>
>>>> -----Original Message-----
>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>> Sent: Tuesday, January 28, 2014 3:16 PM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>
>>>>
>>>>
>>>> Sent from my iPhone
>>>>
>>>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>>> Sent: Tuesday, January 28, 2014 2:37 PM
>>>>> To: dev@cloudstack.apache.org
>>>>> Cc: dev@cloudstack.apache.org
>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>
>>>>> Hey Animesh,
>>>>>
>>>>> Not in agreement here. These are squashed bugs and we want as less bugs
>>>> in the release as possible.
>>>>> [Animesh] I understand but once we enter RC phase we only limit
>>>> important fixes. I have pulled in 2 commits from yours and 1 from Daan.
>>>>
>>>> We limited our fixes to only the important issues that we found. The other
>>>> 6000 issues between coverity and findbugs are still being triaged and will
>>>> probably not make it into this release.
>>>>
>>>>>
>>>>> This is why we test any RC before we release it.
>>>>> [Animesh] Of course but timing is a bit off, if this was done a month
>>>> back it would have been fine.
>>>>> I say include all the big fixes we have in the release. If that means
>>>> more testing before we cut the RC then that is what it is. I can't
>>>> rightfully vote for a release with known issues with existing fixes.
>>>>> [Animesh] Any release will have known issues, if we have fixes but can't
>>>> be sure on regression impact then we have to make a choice.
>>>>
>>>> Agreed, but we just don't agree on what that choice should be yet ;-)
>>>>
>>>>> Quality over release schedule would be my vote then.
>>>>> [Animesh] But why so late? Why was this activity not planned early on? I
>>>> have been reminding community to call out issues early on since like
>>>> mid-December.
>>>>
>>>> On November 4 I sent the mail to the dev list that static code analysis
>>>> (coverity) found 6000+ issues that needed to be triaged. I worked on quite
>>>> a few with my colleagues, but it's a big task for just the four of us.
>>>> Findbugs just helped us to quickly identify the real scary issues among
>>>> them.
>>>> So I agree that the timing is less than ideal, but we should do our utmost
>>>> best to ship the highest quality piece of software we can.
>>>>
>>>>>
>>>>> Cheers,
>>>>> Hugo
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
>>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>>
>>>>>> Folks these issues reported by find-bugs have existed for some time. I
>>>> am not confident in picking them up now for 4.3 as it may break code that
>>>> assumed old way of working. We can take them up for 4.3 maintenance
>>>> release. I wish we had done this exercise and not waited until now.
>>>>>>
>>>>>> I will pick Hugo's commit for which he called -1.
>>>>>>
>>>>>> Thanks
>>>>>> Animesh
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
>>>>>> Sent: Tuesday, January 28, 2014 1:29 AM
>>>>>> To: dev
>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>
>>>>>> Hey Animesh,
>>>>>>
>>>>>> I agree with Daan here. We focussed on the bugs with a findbugs
>>>> annotation of scariest. I think that would warrant them to be included in
>>>> the 4.3 release, so please cherry-pick them all.
>>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> Hugo
>>>>>>
>>>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com>
>>>> wrote:
>>>>>>>
>>>>>>> Animesh,
>>>>>>>
>>>>>>> I took up a lot of messages from findbugs in the server package over
>>>>>>> the weekend. Not that I will attach my soul to the shipping of my
>>>>>>> fixes but some of them are == vs eq and some are really nasty
>>>>>>> nullpointer issues (a chack after first use is very common). You can
>>>>>>> cherry-pick them or not. I don't think you should leave any of them
>>>>>>> behind. Even with David being right we should go against him at
>>>>>>> every convenient time, running the risk of being called his wife.
>>>>>>>
>>>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>>> Hi Animesh,
>>>>>>>>
>>>>>>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3
>>>> branch?
>>>>>>>>
>>>>>>>> Fix findbug issues within LDAP authenticator commit
>>>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Ian
>>>>>>>>
>>>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>>>>>> <an...@citrix.com>wrote:
>>>>>>>>
>>>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
>>>>>>>>> your commits
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>>>>>
>>>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>>>>>> I think you want the last one which has fixes for NetUtils and
>>>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in first
>>>>>>>>> RC but the commit includes more files. Can you make limited
>>>>>>>>> changes directly to 4.3? I want to build another RC later tonight
>>>>>>>>>
>>>>>>>>> Animesh
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>>>
>>>>>>>>> Agreed
>>>>>>>>>
>>>>>>>>> We need to fix the most important ones for 4.3. There may be
>>>>>>>>> assumptions in the code which we may not know and may get broken
>>>>>>>>> if these issues are fixed late. I will pull in the one Hugo casted
>>>>>>>>> his
>>>>>>>>> -1 for the first vote, any others?
>>>>>>>>>
>>>>>>>>> Animesh
>>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>
>>>>>>>>> So just curious if I am the only one concerned about a ton of
>>>>>>>>> fixes going in at the last minute. If the fixes are for serious
>>>>>>>>> bugs and we have consensus around their severity being high enough,
>>>> indeed lets fix things.
>>>>>>>>> My concern is that much of the QA we do is manual; and while we
>>>>>>>>> are getting better; fixing tons of things at the last minute may
>>>>>>>>> have unintended consequences that we don't know about and won't
>>>> easily find.
>>>>>>>>>
>>>>>>>>> I yearn for the day when our automated testing is broad enough
>>>>>>>>> that we can do fixes right up to the wire and know that things
>>>>>>>>> still work, I am just not sure that I have confidence that we are
>>>> there yet.
>>>>>>>>> Thoughts? I am being paranoid?
>>>>>>>>>
>>>>>>>>> --David
>>>>>>>>>
>>>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>>>>>> <da...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>>>>>
>>>>>>>>>> I allready send a few and will get you a list of the rest later
>>>> today.
>>>>>>>>>>
>>>>>>>>>> regards,
>>>>>>>>>>
>>>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>>>>>> <an...@citrix.com> wrote:
>>>>>>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward
>>>> branch.
>>>>>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>>>>>
>>>>>>>>>>> Animesh
>>>>>>>>>>>
>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>>>>>> To: dev
>>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>>
>>>>>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>>>>>> server
>>>>>>>>> package again this afternoon.
>>>>>>>>>>>
>>>>>>>>>>> bon appétit,
>>>>>>>>>>>
>>>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie>
>>>> wrote:
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> Fixed the issues highlighted in the ldap user authentication
>>>> package.
>>>>>>>>>>>>
>>>>>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Ian
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>>>>>>> the most issues.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>> wrote:
>>>>>>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>>>>>>> the
>>>>>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit
>>>> tests.
>>>>>>>>>>>>>> Huge
>>>>>>>>>>>>> improvement over the last release where we had 4% iirc. We
>>>>>>>>>>>>> have
>>>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>>>>>> internationalization
>>>>>>>>> issues.
>>>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>>>>>>> we have
>>>>>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>>>>>>> quality is
>>>>>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hugo
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> H Hugo,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>>>>>> ;)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> regards
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>>>>>>> Is there
>>>>>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> the url is
>>>>>>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>>>>>> n
>>>>>>>>>>>>> -
>>>>>>>>>>>>> bui
>>>>>>>>>>>>> ld
>>>>>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hugo
>>>>>>
>>>>
>>
>
Re: Findbugs report on 4.3-forward
Posted by Rajani Karuturi <Ra...@citrix.com>.
I see that the commit 9776e1af1c92486f5081b1ee8fa95cf0edb86b97 is already pushed to 4.3. I don’t see any response on my concern as well.
Is it just me or anyone else sees a security issue with the generate password change?
Ian/Animesh/Daan, can you please respond?
Thanks,
~Rajani
On 29-Jan-2014, at 10:59 am, Rajani Karuturi <Ra...@citrix.com> wrote:
> Hi Ian,
> Before it is pushed to 4.3, can you fix the generate password change like i suggested in the other mail? This current change would make it less secure.
>
> Thanks,
> ~Rajani
>
>
>
> On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
>
>> Hi Animesh,
>>
>> Tested all those changes to detail. Those lines were removed due to
>> unexpected behavior that I had not spotted until now.
>>
>> They were suppose to allow for better fall over between multiple domain
>> controllers, how ever they were causing caching to occur. This meant if a
>> users password was reset in LDAP the old password was still allowing login
>> for a limited time.
>>
>> Please pull the changes forward,
>> Thanks
>>
>> Ian.
>> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
>> wrote:
>>
>>> If I look at this commit for example
>>>
>>>
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>>
>>> It removes the two lines from LdapContextFactory.java
>>>
>>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>>
>>> Is that reported by find bug? I don’t know this code so not sure if it is
>>> intentional or not ?
>>>
>>> The point is there may be unintended risks in allowing late changes.
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>> Sent: Tuesday, January 28, 2014 3:35 PM
>>> To: dev@cloudstack.apache.org
>>> Subject: RE: Findbugs report on 4.3-forward
>>>
>>> Are you sure all of the ones are needed. A quick look at 20+ commits from
>>> Daan show many formatting changes that may not be necessary and hinder
>>> quick review.
>>>
>>> -----Original Message-----
>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>> Sent: Tuesday, January 28, 2014 3:16 PM
>>> To: dev@cloudstack.apache.org
>>> Subject: Re: Findbugs report on 4.3-forward
>>>
>>>
>>>
>>> Sent from my iPhone
>>>
>>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
>>> animesh.chaturvedi@citrix.com> wrote:
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>>> Sent: Tuesday, January 28, 2014 2:37 PM
>>>> To: dev@cloudstack.apache.org
>>>> Cc: dev@cloudstack.apache.org
>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>
>>>> Hey Animesh,
>>>>
>>>> Not in agreement here. These are squashed bugs and we want as less bugs
>>> in the release as possible.
>>>> [Animesh] I understand but once we enter RC phase we only limit
>>> important fixes. I have pulled in 2 commits from yours and 1 from Daan.
>>>
>>> We limited our fixes to only the important issues that we found. The other
>>> 6000 issues between coverity and findbugs are still being triaged and will
>>> probably not make it into this release.
>>>
>>>>
>>>> This is why we test any RC before we release it.
>>>> [Animesh] Of course but timing is a bit off, if this was done a month
>>> back it would have been fine.
>>>> I say include all the big fixes we have in the release. If that means
>>> more testing before we cut the RC then that is what it is. I can't
>>> rightfully vote for a release with known issues with existing fixes.
>>>> [Animesh] Any release will have known issues, if we have fixes but can't
>>> be sure on regression impact then we have to make a choice.
>>>
>>> Agreed, but we just don't agree on what that choice should be yet ;-)
>>>
>>>> Quality over release schedule would be my vote then.
>>>> [Animesh] But why so late? Why was this activity not planned early on? I
>>> have been reminding community to call out issues early on since like
>>> mid-December.
>>>
>>> On November 4 I sent the mail to the dev list that static code analysis
>>> (coverity) found 6000+ issues that needed to be triaged. I worked on quite
>>> a few with my colleagues, but it's a big task for just the four of us.
>>> Findbugs just helped us to quickly identify the real scary issues among
>>> them.
>>> So I agree that the timing is less than ideal, but we should do our utmost
>>> best to ship the highest quality piece of software we can.
>>>
>>>>
>>>> Cheers,
>>>> Hugo
>>>>
>>>> Sent from my iPhone
>>>>
>>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
>>> animesh.chaturvedi@citrix.com> wrote:
>>>>>
>>>>> Folks these issues reported by find-bugs have existed for some time. I
>>> am not confident in picking them up now for 4.3 as it may break code that
>>> assumed old way of working. We can take them up for 4.3 maintenance
>>> release. I wish we had done this exercise and not waited until now.
>>>>>
>>>>> I will pick Hugo's commit for which he called -1.
>>>>>
>>>>> Thanks
>>>>> Animesh
>>>>>
>>>>> -----Original Message-----
>>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
>>>>> Sent: Tuesday, January 28, 2014 1:29 AM
>>>>> To: dev
>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>
>>>>> Hey Animesh,
>>>>>
>>>>> I agree with Daan here. We focussed on the bugs with a findbugs
>>> annotation of scariest. I think that would warrant them to be included in
>>> the 4.3 release, so please cherry-pick them all.
>>>>>
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Hugo
>>>>>
>>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com>
>>> wrote:
>>>>>>
>>>>>> Animesh,
>>>>>>
>>>>>> I took up a lot of messages from findbugs in the server package over
>>>>>> the weekend. Not that I will attach my soul to the shipping of my
>>>>>> fixes but some of them are == vs eq and some are really nasty
>>>>>> nullpointer issues (a chack after first use is very common). You can
>>>>>> cherry-pick them or not. I don't think you should leave any of them
>>>>>> behind. Even with David being right we should go against him at
>>>>>> every convenient time, running the risk of being called his wife.
>>>>>>
>>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>> Hi Animesh,
>>>>>>>
>>>>>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3
>>> branch?
>>>>>>>
>>>>>>> Fix findbug issues within LDAP authenticator commit
>>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ian
>>>>>>>
>>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>>>>> <an...@citrix.com>wrote:
>>>>>>>
>>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
>>>>>>>> your commits
>>>>>>>>
>>>>>>>>
>>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>>>>
>>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>>>>> I think you want the last one which has fixes for NetUtils and
>>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in first
>>>>>>>> RC but the commit includes more files. Can you make limited
>>>>>>>> changes directly to 4.3? I want to build another RC later tonight
>>>>>>>>
>>>>>>>> Animesh
>>>>>>>>
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>>
>>>>>>>> Agreed
>>>>>>>>
>>>>>>>> We need to fix the most important ones for 4.3. There may be
>>>>>>>> assumptions in the code which we may not know and may get broken
>>>>>>>> if these issues are fixed late. I will pull in the one Hugo casted
>>>>>>>> his
>>>>>>>> -1 for the first vote, any others?
>>>>>>>>
>>>>>>>> Animesh
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>
>>>>>>>> So just curious if I am the only one concerned about a ton of
>>>>>>>> fixes going in at the last minute. If the fixes are for serious
>>>>>>>> bugs and we have consensus around their severity being high enough,
>>> indeed lets fix things.
>>>>>>>> My concern is that much of the QA we do is manual; and while we
>>>>>>>> are getting better; fixing tons of things at the last minute may
>>>>>>>> have unintended consequences that we don't know about and won't
>>> easily find.
>>>>>>>>
>>>>>>>> I yearn for the day when our automated testing is broad enough
>>>>>>>> that we can do fixes right up to the wire and know that things
>>>>>>>> still work, I am just not sure that I have confidence that we are
>>> there yet.
>>>>>>>> Thoughts? I am being paranoid?
>>>>>>>>
>>>>>>>> --David
>>>>>>>>
>>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>>>>> <da...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>>>>
>>>>>>>>> I allready send a few and will get you a list of the rest later
>>> today.
>>>>>>>>>
>>>>>>>>> regards,
>>>>>>>>>
>>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>>>>> <an...@citrix.com> wrote:
>>>>>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward
>>> branch.
>>>>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>>>>
>>>>>>>>>> Animesh
>>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>>>>> To: dev
>>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>>
>>>>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>>>>> server
>>>>>>>> package again this afternoon.
>>>>>>>>>>
>>>>>>>>>> bon appétit,
>>>>>>>>>>
>>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie>
>>> wrote:
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> Fixed the issues highlighted in the ldap user authentication
>>> package.
>>>>>>>>>>>
>>>>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Ian
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>>>>> <da...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>>>>>> the most issues.
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>> wrote:
>>>>>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>>>>>> the
>>>>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit
>>> tests.
>>>>>>>>>>>>> Huge
>>>>>>>>>>>> improvement over the last release where we had 4% iirc. We
>>>>>>>>>>>> have
>>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>>>>> internationalization
>>>>>>>> issues.
>>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>>>>>> we have
>>>>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>>>>>> quality is
>>>>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>>>>
>>>>>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hugo
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> H Hugo,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>>>>> ;)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> regards
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>>>>>> Is there
>>>>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> the url is
>>>>>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>>>>> n
>>>>>>>>>>>> -
>>>>>>>>>>>> bui
>>>>>>>>>>>> ld
>>>>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hugo
>>>>>
>>>
>
Re: Findbugs report on 4.3-forward
Posted by Rajani Karuturi <Ra...@citrix.com>.
Hi Ian,
Before it is pushed to 4.3, can you fix the generate password change like i suggested in the other mail? This current change would make it less secure.
Thanks,
~Rajani
On 29-Jan-2014, at 8:03 am, Ian Duffy <ia...@ianduffy.ie> wrote:
> Hi Animesh,
>
> Tested all those changes to detail. Those lines were removed due to
> unexpected behavior that I had not spotted until now.
>
> They were suppose to allow for better fall over between multiple domain
> controllers, how ever they were causing caching to occur. This meant if a
> users password was reset in LDAP the old password was still allowing login
> for a limited time.
>
> Please pull the changes forward,
> Thanks
>
> Ian.
> On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
> wrote:
>
>> If I look at this commit for example
>>
>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
>>
>> It removes the two lines from LdapContextFactory.java
>>
>> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
>> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>>
>> Is that reported by find bug? I don’t know this code so not sure if it is
>> intentional or not ?
>>
>> The point is there may be unintended risks in allowing late changes.
>>
>>
>>
>> -----Original Message-----
>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>> Sent: Tuesday, January 28, 2014 3:35 PM
>> To: dev@cloudstack.apache.org
>> Subject: RE: Findbugs report on 4.3-forward
>>
>> Are you sure all of the ones are needed. A quick look at 20+ commits from
>> Daan show many formatting changes that may not be necessary and hinder
>> quick review.
>>
>> -----Original Message-----
>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>> Sent: Tuesday, January 28, 2014 3:16 PM
>> To: dev@cloudstack.apache.org
>> Subject: Re: Findbugs report on 4.3-forward
>>
>>
>>
>> Sent from my iPhone
>>
>>> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
>> animesh.chaturvedi@citrix.com> wrote:
>>>
>>>
>>> -----Original Message-----
>>> From: Hugo Trippaers [mailto:trippie@gmail.com]
>>> Sent: Tuesday, January 28, 2014 2:37 PM
>>> To: dev@cloudstack.apache.org
>>> Cc: dev@cloudstack.apache.org
>>> Subject: Re: Findbugs report on 4.3-forward
>>>
>>> Hey Animesh,
>>>
>>> Not in agreement here. These are squashed bugs and we want as less bugs
>> in the release as possible.
>>> [Animesh] I understand but once we enter RC phase we only limit
>> important fixes. I have pulled in 2 commits from yours and 1 from Daan.
>>
>> We limited our fixes to only the important issues that we found. The other
>> 6000 issues between coverity and findbugs are still being triaged and will
>> probably not make it into this release.
>>
>>>
>>> This is why we test any RC before we release it.
>>> [Animesh] Of course but timing is a bit off, if this was done a month
>> back it would have been fine.
>>> I say include all the big fixes we have in the release. If that means
>> more testing before we cut the RC then that is what it is. I can't
>> rightfully vote for a release with known issues with existing fixes.
>>> [Animesh] Any release will have known issues, if we have fixes but can't
>> be sure on regression impact then we have to make a choice.
>>
>> Agreed, but we just don't agree on what that choice should be yet ;-)
>>
>>> Quality over release schedule would be my vote then.
>>> [Animesh] But why so late? Why was this activity not planned early on? I
>> have been reminding community to call out issues early on since like
>> mid-December.
>>
>> On November 4 I sent the mail to the dev list that static code analysis
>> (coverity) found 6000+ issues that needed to be triaged. I worked on quite
>> a few with my colleagues, but it's a big task for just the four of us.
>> Findbugs just helped us to quickly identify the real scary issues among
>> them.
>> So I agree that the timing is less than ideal, but we should do our utmost
>> best to ship the highest quality piece of software we can.
>>
>>>
>>> Cheers,
>>> Hugo
>>>
>>> Sent from my iPhone
>>>
>>>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
>> animesh.chaturvedi@citrix.com> wrote:
>>>>
>>>> Folks these issues reported by find-bugs have existed for some time. I
>> am not confident in picking them up now for 4.3 as it may break code that
>> assumed old way of working. We can take them up for 4.3 maintenance
>> release. I wish we had done this exercise and not waited until now.
>>>>
>>>> I will pick Hugo's commit for which he called -1.
>>>>
>>>> Thanks
>>>> Animesh
>>>>
>>>> -----Original Message-----
>>>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
>>>> Sent: Tuesday, January 28, 2014 1:29 AM
>>>> To: dev
>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>
>>>> Hey Animesh,
>>>>
>>>> I agree with Daan here. We focussed on the bugs with a findbugs
>> annotation of scariest. I think that would warrant them to be included in
>> the 4.3 release, so please cherry-pick them all.
>>>>
>>>>
>>>> Cheers,
>>>>
>>>> Hugo
>>>>
>>>>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com>
>> wrote:
>>>>>
>>>>> Animesh,
>>>>>
>>>>> I took up a lot of messages from findbugs in the server package over
>>>>> the weekend. Not that I will attach my soul to the shipping of my
>>>>> fixes but some of them are == vs eq and some are really nasty
>>>>> nullpointer issues (a chack after first use is very common). You can
>>>>> cherry-pick them or not. I don't think you should leave any of them
>>>>> behind. Even with David being right we should go against him at
>>>>> every convenient time, running the risk of being called his wife.
>>>>>
>>>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>> Hi Animesh,
>>>>>>
>>>>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3
>> branch?
>>>>>>
>>>>>> Fix findbug issues within LDAP authenticator commit
>>>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>>>
>>>>>> Thanks,
>>>>>> Ian
>>>>>>
>>>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>>>> <an...@citrix.com>wrote:
>>>>>>
>>>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
>>>>>>> your commits
>>>>>>>
>>>>>>>
>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>>>
>>>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>>>> I think you want the last one which has fixes for NetUtils and
>>>>>>> XenServerStorageMotionStrategy for which you had put -1 in first
>>>>>>> RC but the commit includes more files. Can you make limited
>>>>>>> changes directly to 4.3? I want to build another RC later tonight
>>>>>>>
>>>>>>> Animesh
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>>>> To: dev@cloudstack.apache.org
>>>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>>>
>>>>>>> Agreed
>>>>>>>
>>>>>>> We need to fix the most important ones for 4.3. There may be
>>>>>>> assumptions in the code which we may not know and may get broken
>>>>>>> if these issues are fixed late. I will pull in the one Hugo casted
>>>>>>> his
>>>>>>> -1 for the first vote, any others?
>>>>>>>
>>>>>>> Animesh
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>>>> To: dev@cloudstack.apache.org
>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>
>>>>>>> So just curious if I am the only one concerned about a ton of
>>>>>>> fixes going in at the last minute. If the fixes are for serious
>>>>>>> bugs and we have consensus around their severity being high enough,
>> indeed lets fix things.
>>>>>>> My concern is that much of the QA we do is manual; and while we
>>>>>>> are getting better; fixing tons of things at the last minute may
>>>>>>> have unintended consequences that we don't know about and won't
>> easily find.
>>>>>>>
>>>>>>> I yearn for the day when our automated testing is broad enough
>>>>>>> that we can do fixes right up to the wire and know that things
>>>>>>> still work, I am just not sure that I have confidence that we are
>> there yet.
>>>>>>> Thoughts? I am being paranoid?
>>>>>>>
>>>>>>> --David
>>>>>>>
>>>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>>>> <da...@gmail.com>
>>>>>>> wrote:
>>>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>>>
>>>>>>>> I allready send a few and will get you a list of the rest later
>> today.
>>>>>>>>
>>>>>>>> regards,
>>>>>>>>
>>>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>>>> <an...@citrix.com> wrote:
>>>>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward
>> branch.
>>>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>>>
>>>>>>>>> Animesh
>>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>>>> To: dev
>>>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>>>
>>>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>>>> server
>>>>>>> package again this afternoon.
>>>>>>>>>
>>>>>>>>> bon appétit,
>>>>>>>>>
>>>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie>
>> wrote:
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> Fixed the issues highlighted in the ldap user authentication
>> package.
>>>>>>>>>>
>>>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Ian
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>>>> <da...@gmail.com>
>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>>>>> the most issues.
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>> wrote:
>>>>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>>>>> the
>>>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>>>
>>>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit
>> tests.
>>>>>>>>>>>> Huge
>>>>>>>>>>> improvement over the last release where we had 4% iirc. We
>>>>>>>>>>> have
>>>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>>>> internationalization
>>>>>>> issues.
>>>>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>>>>> we have
>>>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>>>
>>>>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>>>>> quality is
>>>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>>>
>>>>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>
>>>>>>>>>>>> Hugo
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>>>> <da...@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> H Hugo,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>>>> ;)
>>>>>>>>>>>>>
>>>>>>>>>>>>> regards
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>>>>> Is there
>>>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> the url is
>>>>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>>>> n
>>>>>>>>>>> -
>>>>>>>>>>> bui
>>>>>>>>>>> ld
>>>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hugo
>>>>
>>
RE: Findbugs report on 4.3-forward
Posted by Ian Duffy <ia...@ianduffy.ie>.
Hi Animesh,
Tested all those changes to detail. Those lines were removed due to
unexpected behavior that I had not spotted until now.
They were suppose to allow for better fall over between multiple domain
controllers, how ever they were causing caching to occur. This meant if a
users password was reset in LDAP the old password was still allowing login
for a limited time.
Please pull the changes forward,
Thanks
Ian.
On 29 Jan 2014 00:07, "Animesh Chaturvedi" <an...@citrix.com>
wrote:
> If I look at this commit for example
>
>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
>
> It removes the two lines from LdapContextFactory.java
>
> environment.put("com.sun.jndi.ldap.read.timeout", "500");-
> environment.put("com.sun.jndi.ldap.connect.pool", "true");
>
> Is that reported by find bug? I don’t know this code so not sure if it is
> intentional or not ?
>
> The point is there may be unintended risks in allowing late changes.
>
>
>
> -----Original Message-----
> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
> Sent: Tuesday, January 28, 2014 3:35 PM
> To: dev@cloudstack.apache.org
> Subject: RE: Findbugs report on 4.3-forward
>
> Are you sure all of the ones are needed. A quick look at 20+ commits from
> Daan show many formatting changes that may not be necessary and hinder
> quick review.
>
> -----Original Message-----
> From: Hugo Trippaers [mailto:trippie@gmail.com]
> Sent: Tuesday, January 28, 2014 3:16 PM
> To: dev@cloudstack.apache.org
> Subject: Re: Findbugs report on 4.3-forward
>
>
>
> Sent from my iPhone
>
> > On 28 jan. 2014, at 23:50, Animesh Chaturvedi <
> animesh.chaturvedi@citrix.com> wrote:
> >
> >
> > -----Original Message-----
> > From: Hugo Trippaers [mailto:trippie@gmail.com]
> > Sent: Tuesday, January 28, 2014 2:37 PM
> > To: dev@cloudstack.apache.org
> > Cc: dev@cloudstack.apache.org
> > Subject: Re: Findbugs report on 4.3-forward
> >
> > Hey Animesh,
> >
> > Not in agreement here. These are squashed bugs and we want as less bugs
> in the release as possible.
> > [Animesh] I understand but once we enter RC phase we only limit
> important fixes. I have pulled in 2 commits from yours and 1 from Daan.
>
> We limited our fixes to only the important issues that we found. The other
> 6000 issues between coverity and findbugs are still being triaged and will
> probably not make it into this release.
>
> >
> > This is why we test any RC before we release it.
> > [Animesh] Of course but timing is a bit off, if this was done a month
> back it would have been fine.
> > I say include all the big fixes we have in the release. If that means
> more testing before we cut the RC then that is what it is. I can't
> rightfully vote for a release with known issues with existing fixes.
> > [Animesh] Any release will have known issues, if we have fixes but can't
> be sure on regression impact then we have to make a choice.
>
> Agreed, but we just don't agree on what that choice should be yet ;-)
>
> > Quality over release schedule would be my vote then.
> > [Animesh] But why so late? Why was this activity not planned early on? I
> have been reminding community to call out issues early on since like
> mid-December.
>
> On November 4 I sent the mail to the dev list that static code analysis
> (coverity) found 6000+ issues that needed to be triaged. I worked on quite
> a few with my colleagues, but it's a big task for just the four of us.
> Findbugs just helped us to quickly identify the real scary issues among
> them.
> So I agree that the timing is less than ideal, but we should do our utmost
> best to ship the highest quality piece of software we can.
>
> >
> > Cheers,
> > Hugo
> >
> > Sent from my iPhone
> >
> >> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <
> animesh.chaturvedi@citrix.com> wrote:
> >>
> >> Folks these issues reported by find-bugs have existed for some time. I
> am not confident in picking them up now for 4.3 as it may break code that
> assumed old way of working. We can take them up for 4.3 maintenance
> release. I wish we had done this exercise and not waited until now.
> >>
> >> I will pick Hugo's commit for which he called -1.
> >>
> >> Thanks
> >> Animesh
> >>
> >> -----Original Message-----
> >> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
> >> Sent: Tuesday, January 28, 2014 1:29 AM
> >> To: dev
> >> Subject: Re: Findbugs report on 4.3-forward
> >>
> >> Hey Animesh,
> >>
> >> I agree with Daan here. We focussed on the bugs with a findbugs
> annotation of scariest. I think that would warrant them to be included in
> the 4.3 release, so please cherry-pick them all.
> >>
> >>
> >> Cheers,
> >>
> >> Hugo
> >>
> >>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com>
> wrote:
> >>>
> >>> Animesh,
> >>>
> >>> I took up a lot of messages from findbugs in the server package over
> >>> the weekend. Not that I will attach my soul to the shipping of my
> >>> fixes but some of them are == vs eq and some are really nasty
> >>> nullpointer issues (a chack after first use is very common). You can
> >>> cherry-pick them or not. I don't think you should leave any of them
> >>> behind. Even with David being right we should go against him at
> >>> every convenient time, running the risk of being called his wife.
> >>>
> >>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
> >>>> Hi Animesh,
> >>>>
> >>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3
> branch?
> >>>>
> >>>> Fix findbug issues within LDAP authenticator commit
> >>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
> >>>>
> >>>> Thanks,
> >>>> Ian
> >>>>
> >>>> On 28 January 2014 03:48, Animesh Chaturvedi
> >>>> <an...@citrix.com>wrote:
> >>>>
> >>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
> >>>>> your commits
> >>>>>
> >>>>>
> >>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
> >>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
> >>>>>
> >>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
> >>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
> >>>>> I think you want the last one which has fixes for NetUtils and
> >>>>> XenServerStorageMotionStrategy for which you had put -1 in first
> >>>>> RC but the commit includes more files. Can you make limited
> >>>>> changes directly to 4.3? I want to build another RC later tonight
> >>>>>
> >>>>> Animesh
> >>>>>
> >>>>>
> >>>>> -----Original Message-----
> >>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
> >>>>> Sent: Monday, January 27, 2014 1:30 PM
> >>>>> To: dev@cloudstack.apache.org
> >>>>> Subject: RE: Findbugs report on 4.3-forward
> >>>>>
> >>>>> Agreed
> >>>>>
> >>>>> We need to fix the most important ones for 4.3. There may be
> >>>>> assumptions in the code which we may not know and may get broken
> >>>>> if these issues are fixed late. I will pull in the one Hugo casted
> >>>>> his
> >>>>> -1 for the first vote, any others?
> >>>>>
> >>>>> Animesh
> >>>>>
> >>>>> -----Original Message-----
> >>>>> From: David Nalley [mailto:david@gnsa.us]
> >>>>> Sent: Monday, January 27, 2014 11:46 AM
> >>>>> To: dev@cloudstack.apache.org
> >>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>
> >>>>> So just curious if I am the only one concerned about a ton of
> >>>>> fixes going in at the last minute. If the fixes are for serious
> >>>>> bugs and we have consensus around their severity being high enough,
> indeed lets fix things.
> >>>>> My concern is that much of the QA we do is manual; and while we
> >>>>> are getting better; fixing tons of things at the last minute may
> >>>>> have unintended consequences that we don't know about and won't
> easily find.
> >>>>>
> >>>>> I yearn for the day when our automated testing is broad enough
> >>>>> that we can do fixes right up to the wire and know that things
> >>>>> still work, I am just not sure that I have confidence that we are
> there yet.
> >>>>> Thoughts? I am being paranoid?
> >>>>>
> >>>>> --David
> >>>>>
> >>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
> >>>>> <da...@gmail.com>
> >>>>> wrote:
> >>>>>> Animesh, I commented the once i made yesterday with findbugs:
> >>>>>>
> >>>>>> I allready send a few and will get you a list of the rest later
> today.
> >>>>>>
> >>>>>> regards,
> >>>>>>
> >>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
> >>>>>> <an...@citrix.com> wrote:
> >>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward
> branch.
> >>>>> Are their specific commits you want me to pick up out of these?
> >>>>>>>
> >>>>>>> Animesh
> >>>>>>>
> >>>>>>> -----Original Message-----
> >>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
> >>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
> >>>>>>> To: dev
> >>>>>>> Subject: Re: Findbugs report on 4.3-forward
> >>>>>>>
> >>>>>>> I didn't get very far last night and will be looking at the
> >>>>>>> server
> >>>>> package again this afternoon.
> >>>>>>>
> >>>>>>> bon appétit,
> >>>>>>>
> >>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie>
> wrote:
> >>>>>>>> Hi,
> >>>>>>>>
> >>>>>>>> Fixed the issues highlighted in the ldap user authentication
> package.
> >>>>>>>>
> >>>>>>>> Have pushed to 4.3-forward.
> >>>>>>>>
> >>>>>>>> Thanks,
> >>>>>>>> Ian
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On 25 January 2014 22:26, Daan Hoogland
> >>>>>>>> <da...@gmail.com>
> >>>>> wrote:
> >>>>>>>>
> >>>>>>>>>> or reply to this mail with the filename you are working on
> >>>>>>>>> I'll be looking at the server package as it seems to contain
> >>>>>>>>> the most issues.
> >>>>>>>>>
> >>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
> >>>>>>>>> <hu...@trippaers.nl>
> >>>>> wrote:
> >>>>>>>>>> I've also added a job to master with the Findbugs report and
> >>>>>>>>>> the
> >>>>>>>>> cobertura code coverage report.
> >>>>>>>>>>
> >>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit
> tests.
> >>>>>>>>>> Huge
> >>>>>>>>> improvement over the last release where we had 4% iirc. We
> >>>>>>>>> have
> >>>>>>>>> 306 reports from Findbugs, of which the majority are
> >>>>>>>>> internationalization
> >>>>> issues.
> >>>>>>>>> (String.getBytes without charset mostly). On the coverity site
> >>>>>>>>> we have
> >>>>>>>>> 6000+ issues still open, but at least that number is
> >>>>>>>>> 6000+ relatively stable, we
> >>>>>>>>> fix as much issues as we introduce and it's untuned so we can
> >>>>>>>>> assume a large number of false positives there.
> >>>>>>>>>>
> >>>>>>>>>> I think that on average the automated tools tell us that code
> >>>>>>>>>> quality is
> >>>>>>>>> improving, which a good thing. Combined with the functional
> >>>>>>>>> testing and the simulator build we can prove that we are doing
> >>>>>>>>> quite well on the code quality angle.
> >>>>>>>>>>
> >>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Cheers,
> >>>>>>>>>>
> >>>>>>>>>> Hugo
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
> >>>>>>>>>> <da...@gmail.com>
> >>>>>>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>>> H Hugo,
> >>>>>>>>>>>
> >>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
> >>>>>>>>>>> distribution scheme or is it random access?
> >>>>>>>>>>> ;)
> >>>>>>>>>>>
> >>>>>>>>>>> regards
> >>>>>>>>>>>
> >>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
> >>>>>>>>>>> <hu...@trippaers.nl>
> >>>>>>>>> wrote:
> >>>>>>>>>>>> Hey all,
> >>>>>>>>>>>>
> >>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
> >>>>>>>>>>>> Is there
> >>>>>>>>> somebody who is willing to help triage the findings? Maybe
> >>>>>>>>> there is some stuff that we need to fix?
> >>>>>>>>>>>>
> >>>>>>>>>>>> the url is
> >>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
> >>>>>>>>> n
> >>>>>>>>> -
> >>>>>>>>> bui
> >>>>>>>>> ld
> >>>>>>>>> /3/findbugsResult/
> >>>>>>>>>>>>
> >>>>>>>>>>>> Cheers,
> >>>>>>>>>>>>
> >>>>>>>>>>>> Hugo
> >>
>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
If I look at this commit for example
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=92b4f66d73562e4211d2d787554ff229dbeb5705
It removes the two lines from LdapContextFactory.java
environment.put("com.sun.jndi.ldap.read.timeout", "500");-
environment.put("com.sun.jndi.ldap.connect.pool", "true");
Is that reported by find bug? I don’t know this code so not sure if it is intentional or not ?
The point is there may be unintended risks in allowing late changes.
-----Original Message-----
From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
Sent: Tuesday, January 28, 2014 3:35 PM
To: dev@cloudstack.apache.org
Subject: RE: Findbugs report on 4.3-forward
Are you sure all of the ones are needed. A quick look at 20+ commits from Daan show many formatting changes that may not be necessary and hinder quick review.
-----Original Message-----
From: Hugo Trippaers [mailto:trippie@gmail.com]
Sent: Tuesday, January 28, 2014 3:16 PM
To: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
Sent from my iPhone
> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <an...@citrix.com> wrote:
>
>
> -----Original Message-----
> From: Hugo Trippaers [mailto:trippie@gmail.com]
> Sent: Tuesday, January 28, 2014 2:37 PM
> To: dev@cloudstack.apache.org
> Cc: dev@cloudstack.apache.org
> Subject: Re: Findbugs report on 4.3-forward
>
> Hey Animesh,
>
> Not in agreement here. These are squashed bugs and we want as less bugs in the release as possible.
> [Animesh] I understand but once we enter RC phase we only limit important fixes. I have pulled in 2 commits from yours and 1 from Daan.
We limited our fixes to only the important issues that we found. The other 6000 issues between coverity and findbugs are still being triaged and will probably not make it into this release.
>
> This is why we test any RC before we release it.
> [Animesh] Of course but timing is a bit off, if this was done a month back it would have been fine.
> I say include all the big fixes we have in the release. If that means more testing before we cut the RC then that is what it is. I can't rightfully vote for a release with known issues with existing fixes.
> [Animesh] Any release will have known issues, if we have fixes but can't be sure on regression impact then we have to make a choice.
Agreed, but we just don't agree on what that choice should be yet ;-)
> Quality over release schedule would be my vote then.
> [Animesh] But why so late? Why was this activity not planned early on? I have been reminding community to call out issues early on since like mid-December.
On November 4 I sent the mail to the dev list that static code analysis (coverity) found 6000+ issues that needed to be triaged. I worked on quite a few with my colleagues, but it's a big task for just the four of us. Findbugs just helped us to quickly identify the real scary issues among them.
So I agree that the timing is less than ideal, but we should do our utmost best to ship the highest quality piece of software we can.
>
> Cheers,
> Hugo
>
> Sent from my iPhone
>
>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <an...@citrix.com> wrote:
>>
>> Folks these issues reported by find-bugs have existed for some time. I am not confident in picking them up now for 4.3 as it may break code that assumed old way of working. We can take them up for 4.3 maintenance release. I wish we had done this exercise and not waited until now.
>>
>> I will pick Hugo's commit for which he called -1.
>>
>> Thanks
>> Animesh
>>
>> -----Original Message-----
>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
>> Sent: Tuesday, January 28, 2014 1:29 AM
>> To: dev
>> Subject: Re: Findbugs report on 4.3-forward
>>
>> Hey Animesh,
>>
>> I agree with Daan here. We focussed on the bugs with a findbugs annotation of scariest. I think that would warrant them to be included in the 4.3 release, so please cherry-pick them all.
>>
>>
>> Cheers,
>>
>> Hugo
>>
>>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com> wrote:
>>>
>>> Animesh,
>>>
>>> I took up a lot of messages from findbugs in the server package over
>>> the weekend. Not that I will attach my soul to the shipping of my
>>> fixes but some of them are == vs eq and some are really nasty
>>> nullpointer issues (a chack after first use is very common). You can
>>> cherry-pick them or not. I don't think you should leave any of them
>>> behind. Even with David being right we should go against him at
>>> every convenient time, running the risk of being called his wife.
>>>
>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>> Hi Animesh,
>>>>
>>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>>>>
>>>> Fix findbug issues within LDAP authenticator commit
>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>
>>>> Thanks,
>>>> Ian
>>>>
>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>> <an...@citrix.com>wrote:
>>>>
>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
>>>>> your commits
>>>>>
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>> I think you want the last one which has fixes for NetUtils and
>>>>> XenServerStorageMotionStrategy for which you had put -1 in first
>>>>> RC but the commit includes more files. Can you make limited
>>>>> changes directly to 4.3? I want to build another RC later tonight
>>>>>
>>>>> Animesh
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>> To: dev@cloudstack.apache.org
>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>
>>>>> Agreed
>>>>>
>>>>> We need to fix the most important ones for 4.3. There may be
>>>>> assumptions in the code which we may not know and may get broken
>>>>> if these issues are fixed late. I will pull in the one Hugo casted
>>>>> his
>>>>> -1 for the first vote, any others?
>>>>>
>>>>> Animesh
>>>>>
>>>>> -----Original Message-----
>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>> To: dev@cloudstack.apache.org
>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>
>>>>> So just curious if I am the only one concerned about a ton of
>>>>> fixes going in at the last minute. If the fixes are for serious
>>>>> bugs and we have consensus around their severity being high enough, indeed lets fix things.
>>>>> My concern is that much of the QA we do is manual; and while we
>>>>> are getting better; fixing tons of things at the last minute may
>>>>> have unintended consequences that we don't know about and won't easily find.
>>>>>
>>>>> I yearn for the day when our automated testing is broad enough
>>>>> that we can do fixes right up to the wire and know that things
>>>>> still work, I am just not sure that I have confidence that we are there yet.
>>>>> Thoughts? I am being paranoid?
>>>>>
>>>>> --David
>>>>>
>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>> <da...@gmail.com>
>>>>> wrote:
>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>
>>>>>> I allready send a few and will get you a list of the rest later today.
>>>>>>
>>>>>> regards,
>>>>>>
>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>> <an...@citrix.com> wrote:
>>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>
>>>>>>> Animesh
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>> To: dev
>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>
>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>> server
>>>>> package again this afternoon.
>>>>>>>
>>>>>>> bon appétit,
>>>>>>>
>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>>>>
>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Ian
>>>>>>>>
>>>>>>>>
>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>> <da...@gmail.com>
>>>>> wrote:
>>>>>>>>
>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>>> the most issues.
>>>>>>>>>
>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>> <hu...@trippaers.nl>
>>>>> wrote:
>>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>>> the
>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>
>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>>>>> Huge
>>>>>>>>> improvement over the last release where we had 4% iirc. We
>>>>>>>>> have
>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>> internationalization
>>>>> issues.
>>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>>> we have
>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>
>>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>>> quality is
>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>
>>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> Hugo
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>> <da...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> H Hugo,
>>>>>>>>>>>
>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>> ;)
>>>>>>>>>>>
>>>>>>>>>>> regards
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>> wrote:
>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>
>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>>> Is there
>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>
>>>>>>>>>>>> the url is
>>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>> n
>>>>>>>>> -
>>>>>>>>> bui
>>>>>>>>> ld
>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>
>>>>>>>>>>>> Hugo
>>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
Are you sure all of the ones are needed. A quick look at 20+ commits from Daan show many formatting changes that may not be necessary and hinder quick review.
-----Original Message-----
From: Hugo Trippaers [mailto:trippie@gmail.com]
Sent: Tuesday, January 28, 2014 3:16 PM
To: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
Sent from my iPhone
> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <an...@citrix.com> wrote:
>
>
> -----Original Message-----
> From: Hugo Trippaers [mailto:trippie@gmail.com]
> Sent: Tuesday, January 28, 2014 2:37 PM
> To: dev@cloudstack.apache.org
> Cc: dev@cloudstack.apache.org
> Subject: Re: Findbugs report on 4.3-forward
>
> Hey Animesh,
>
> Not in agreement here. These are squashed bugs and we want as less bugs in the release as possible.
> [Animesh] I understand but once we enter RC phase we only limit important fixes. I have pulled in 2 commits from yours and 1 from Daan.
We limited our fixes to only the important issues that we found. The other 6000 issues between coverity and findbugs are still being triaged and will probably not make it into this release.
>
> This is why we test any RC before we release it.
> [Animesh] Of course but timing is a bit off, if this was done a month back it would have been fine.
> I say include all the big fixes we have in the release. If that means more testing before we cut the RC then that is what it is. I can't rightfully vote for a release with known issues with existing fixes.
> [Animesh] Any release will have known issues, if we have fixes but can't be sure on regression impact then we have to make a choice.
Agreed, but we just don't agree on what that choice should be yet ;-)
> Quality over release schedule would be my vote then.
> [Animesh] But why so late? Why was this activity not planned early on? I have been reminding community to call out issues early on since like mid-December.
On November 4 I sent the mail to the dev list that static code analysis (coverity) found 6000+ issues that needed to be triaged. I worked on quite a few with my colleagues, but it's a big task for just the four of us. Findbugs just helped us to quickly identify the real scary issues among them.
So I agree that the timing is less than ideal, but we should do our utmost best to ship the highest quality piece of software we can.
>
> Cheers,
> Hugo
>
> Sent from my iPhone
>
>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <an...@citrix.com> wrote:
>>
>> Folks these issues reported by find-bugs have existed for some time. I am not confident in picking them up now for 4.3 as it may break code that assumed old way of working. We can take them up for 4.3 maintenance release. I wish we had done this exercise and not waited until now.
>>
>> I will pick Hugo's commit for which he called -1.
>>
>> Thanks
>> Animesh
>>
>> -----Original Message-----
>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
>> Sent: Tuesday, January 28, 2014 1:29 AM
>> To: dev
>> Subject: Re: Findbugs report on 4.3-forward
>>
>> Hey Animesh,
>>
>> I agree with Daan here. We focussed on the bugs with a findbugs annotation of scariest. I think that would warrant them to be included in the 4.3 release, so please cherry-pick them all.
>>
>>
>> Cheers,
>>
>> Hugo
>>
>>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com> wrote:
>>>
>>> Animesh,
>>>
>>> I took up a lot of messages from findbugs in the server package over
>>> the weekend. Not that I will attach my soul to the shipping of my
>>> fixes but some of them are == vs eq and some are really nasty
>>> nullpointer issues (a chack after first use is very common). You can
>>> cherry-pick them or not. I don't think you should leave any of them
>>> behind. Even with David being right we should go against him at
>>> every convenient time, running the risk of being called his wife.
>>>
>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>> Hi Animesh,
>>>>
>>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>>>>
>>>> Fix findbug issues within LDAP authenticator commit
>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>
>>>> Thanks,
>>>> Ian
>>>>
>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>> <an...@citrix.com>wrote:
>>>>
>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at
>>>>> your commits
>>>>>
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>> h = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;
>>>>> h = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>> I think you want the last one which has fixes for NetUtils and
>>>>> XenServerStorageMotionStrategy for which you had put -1 in first
>>>>> RC but the commit includes more files. Can you make limited
>>>>> changes directly to 4.3? I want to build another RC later tonight
>>>>>
>>>>> Animesh
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>> To: dev@cloudstack.apache.org
>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>
>>>>> Agreed
>>>>>
>>>>> We need to fix the most important ones for 4.3. There may be
>>>>> assumptions in the code which we may not know and may get broken
>>>>> if these issues are fixed late. I will pull in the one Hugo casted
>>>>> his
>>>>> -1 for the first vote, any others?
>>>>>
>>>>> Animesh
>>>>>
>>>>> -----Original Message-----
>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>> To: dev@cloudstack.apache.org
>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>
>>>>> So just curious if I am the only one concerned about a ton of
>>>>> fixes going in at the last minute. If the fixes are for serious
>>>>> bugs and we have consensus around their severity being high enough, indeed lets fix things.
>>>>> My concern is that much of the QA we do is manual; and while we
>>>>> are getting better; fixing tons of things at the last minute may
>>>>> have unintended consequences that we don't know about and won't easily find.
>>>>>
>>>>> I yearn for the day when our automated testing is broad enough
>>>>> that we can do fixes right up to the wire and know that things
>>>>> still work, I am just not sure that I have confidence that we are there yet.
>>>>> Thoughts? I am being paranoid?
>>>>>
>>>>> --David
>>>>>
>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>> <da...@gmail.com>
>>>>> wrote:
>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>
>>>>>> I allready send a few and will get you a list of the rest later today.
>>>>>>
>>>>>> regards,
>>>>>>
>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>> <an...@citrix.com> wrote:
>>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>
>>>>>>> Animesh
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>> To: dev
>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>
>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>> server
>>>>> package again this afternoon.
>>>>>>>
>>>>>>> bon appétit,
>>>>>>>
>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>>>>
>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Ian
>>>>>>>>
>>>>>>>>
>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>> <da...@gmail.com>
>>>>> wrote:
>>>>>>>>
>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>>> the most issues.
>>>>>>>>>
>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>> <hu...@trippaers.nl>
>>>>> wrote:
>>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>>> the
>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>
>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>>>>> Huge
>>>>>>>>> improvement over the last release where we had 4% iirc. We
>>>>>>>>> have
>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>> internationalization
>>>>> issues.
>>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>>> we have
>>>>>>>>> 6000+ issues still open, but at least that number is
>>>>>>>>> 6000+ relatively stable, we
>>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>
>>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>>> quality is
>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>
>>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> Hugo
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>> <da...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> H Hugo,
>>>>>>>>>>>
>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>> ;)
>>>>>>>>>>>
>>>>>>>>>>> regards
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>> wrote:
>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>
>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>>> Is there
>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>
>>>>>>>>>>>> the url is
>>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-mave
>>>>>>>>> n
>>>>>>>>> -
>>>>>>>>> bui
>>>>>>>>> ld
>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>
>>>>>>>>>>>> Hugo
>>
Re: Findbugs report on 4.3-forward
Posted by Hugo Trippaers <tr...@gmail.com>.
Sent from my iPhone
> On 28 jan. 2014, at 23:50, Animesh Chaturvedi <an...@citrix.com> wrote:
>
>
> -----Original Message-----
> From: Hugo Trippaers [mailto:trippie@gmail.com]
> Sent: Tuesday, January 28, 2014 2:37 PM
> To: dev@cloudstack.apache.org
> Cc: dev@cloudstack.apache.org
> Subject: Re: Findbugs report on 4.3-forward
>
> Hey Animesh,
>
> Not in agreement here. These are squashed bugs and we want as less bugs in the release as possible.
> [Animesh] I understand but once we enter RC phase we only limit important fixes. I have pulled in 2 commits from yours and 1 from Daan.
We limited our fixes to only the important issues that we found. The other 6000 issues between coverity and findbugs are still being triaged and will probably not make it into this release.
>
> This is why we test any RC before we release it.
> [Animesh] Of course but timing is a bit off, if this was done a month back it would have been fine.
> I say include all the big fixes we have in the release. If that means more testing before we cut the RC then that is what it is. I can't rightfully vote for a release with known issues with existing fixes.
> [Animesh] Any release will have known issues, if we have fixes but can't be sure on regression impact then we have to make a choice.
Agreed, but we just don't agree on what that choice should be yet ;-)
> Quality over release schedule would be my vote then.
> [Animesh] But why so late? Why was this activity not planned early on? I have been reminding community to call out issues early on since like mid-December.
On November 4 I sent the mail to the dev list that static code analysis (coverity) found 6000+ issues that needed to be triaged. I worked on quite a few with my colleagues, but it's a big task for just the four of us. Findbugs just helped us to quickly identify the real scary issues among them.
So I agree that the timing is less than ideal, but we should do our utmost best to ship the highest quality piece of software we can.
>
> Cheers,
> Hugo
>
> Sent from my iPhone
>
>> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <an...@citrix.com> wrote:
>>
>> Folks these issues reported by find-bugs have existed for some time. I am not confident in picking them up now for 4.3 as it may break code that assumed old way of working. We can take them up for 4.3 maintenance release. I wish we had done this exercise and not waited until now.
>>
>> I will pick Hugo's commit for which he called -1.
>>
>> Thanks
>> Animesh
>>
>> -----Original Message-----
>> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
>> Sent: Tuesday, January 28, 2014 1:29 AM
>> To: dev
>> Subject: Re: Findbugs report on 4.3-forward
>>
>> Hey Animesh,
>>
>> I agree with Daan here. We focussed on the bugs with a findbugs annotation of scariest. I think that would warrant them to be included in the 4.3 release, so please cherry-pick them all.
>>
>>
>> Cheers,
>>
>> Hugo
>>
>>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com> wrote:
>>>
>>> Animesh,
>>>
>>> I took up a lot of messages from findbugs in the server package over
>>> the weekend. Not that I will attach my soul to the shipping of my
>>> fixes but some of them are == vs eq and some are really nasty
>>> nullpointer issues (a chack after first use is very common). You can
>>> cherry-pick them or not. I don't think you should leave any of them
>>> behind. Even with David being right we should go against him at every
>>> convenient time, running the risk of being called his wife.
>>>
>>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>> Hi Animesh,
>>>>
>>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>>>>
>>>> Fix findbug issues within LDAP authenticator commit
>>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>>
>>>> Thanks,
>>>> Ian
>>>>
>>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>>> <an...@citrix.com>wrote:
>>>>
>>>>> Hugo I was reviewing your commits to 4.3-forward and looked at your
>>>>> commits
>>>>>
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h
>>>>> = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>>
>>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h
>>>>> = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>>> I think you want the last one which has fixes for NetUtils and
>>>>> XenServerStorageMotionStrategy for which you had put -1 in first RC
>>>>> but the commit includes more files. Can you make limited changes
>>>>> directly to 4.3? I want to build another RC later tonight
>>>>>
>>>>> Animesh
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>>> To: dev@cloudstack.apache.org
>>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>>
>>>>> Agreed
>>>>>
>>>>> We need to fix the most important ones for 4.3. There may be
>>>>> assumptions in the code which we may not know and may get broken if
>>>>> these issues are fixed late. I will pull in the one Hugo casted his
>>>>> -1 for the first vote, any others?
>>>>>
>>>>> Animesh
>>>>>
>>>>> -----Original Message-----
>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>>> To: dev@cloudstack.apache.org
>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>
>>>>> So just curious if I am the only one concerned about a ton of fixes
>>>>> going in at the last minute. If the fixes are for serious bugs and
>>>>> we have consensus around their severity being high enough, indeed lets fix things.
>>>>> My concern is that much of the QA we do is manual; and while we are
>>>>> getting better; fixing tons of things at the last minute may have
>>>>> unintended consequences that we don't know about and won't easily find.
>>>>>
>>>>> I yearn for the day when our automated testing is broad enough that
>>>>> we can do fixes right up to the wire and know that things still
>>>>> work, I am just not sure that I have confidence that we are there yet.
>>>>> Thoughts? I am being paranoid?
>>>>>
>>>>> --David
>>>>>
>>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>>> <da...@gmail.com>
>>>>> wrote:
>>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>>
>>>>>> I allready send a few and will get you a list of the rest later today.
>>>>>>
>>>>>> regards,
>>>>>>
>>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>>> <an...@citrix.com> wrote:
>>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>>>>> Are their specific commits you want me to pick up out of these?
>>>>>>>
>>>>>>> Animesh
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>>> To: dev
>>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>>
>>>>>>> I didn't get very far last night and will be looking at the
>>>>>>> server
>>>>> package again this afternoon.
>>>>>>>
>>>>>>> bon appétit,
>>>>>>>
>>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>>>>
>>>>>>>> Have pushed to 4.3-forward.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Ian
>>>>>>>>
>>>>>>>>
>>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>>> <da...@gmail.com>
>>>>> wrote:
>>>>>>>>
>>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>>> the most issues.
>>>>>>>>>
>>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>>> <hu...@trippaers.nl>
>>>>> wrote:
>>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>>> the
>>>>>>>>> cobertura code coverage report.
>>>>>>>>>>
>>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>>>>> Huge
>>>>>>>>> improvement over the last release where we had 4% iirc. We have
>>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>>> internationalization
>>>>> issues.
>>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>>> we have
>>>>>>>>> 6000+ issues still open, but at least that number is relatively
>>>>>>>>> 6000+ stable, we
>>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>>> assume a large number of false positives there.
>>>>>>>>>>
>>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>>> quality is
>>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>>> quite well on the code quality angle.
>>>>>>>>>>
>>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> Hugo
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>>> <da...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> H Hugo,
>>>>>>>>>>>
>>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>>> ;)
>>>>>>>>>>>
>>>>>>>>>>> regards
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>>> wrote:
>>>>>>>>>>>> Hey all,
>>>>>>>>>>>>
>>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>>> Is there
>>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>>
>>>>>>>>>>>> the url is
>>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven
>>>>>>>>> -
>>>>>>>>> bui
>>>>>>>>> ld
>>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>
>>>>>>>>>>>> Hugo
>>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
-----Original Message-----
From: Hugo Trippaers [mailto:trippie@gmail.com]
Sent: Tuesday, January 28, 2014 2:37 PM
To: dev@cloudstack.apache.org
Cc: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
Hey Animesh,
Not in agreement here. These are squashed bugs and we want as less bugs in the release as possible.
[Animesh] I understand but once we enter RC phase we only limit important fixes. I have pulled in 2 commits from yours and 1 from Daan.
This is why we test any RC before we release it.
[Animesh] Of course but timing is a bit off, if this was done a month back it would have been fine.
I say include all the big fixes we have in the release. If that means more testing before we cut the RC then that is what it is. I can't rightfully vote for a release with known issues with existing fixes.
[Animesh] Any release will have known issues, if we have fixes but can't be sure on regression impact then we have to make a choice.
Quality over release schedule would be my vote then.
[Animesh] But why so late? Why was this activity not planned early on? I have been reminding community to call out issues early on since like mid-December.
Cheers,
Hugo
Sent from my iPhone
> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <an...@citrix.com> wrote:
>
> Folks these issues reported by find-bugs have existed for some time. I am not confident in picking them up now for 4.3 as it may break code that assumed old way of working. We can take them up for 4.3 maintenance release. I wish we had done this exercise and not waited until now.
>
> I will pick Hugo's commit for which he called -1.
>
> Thanks
> Animesh
>
> -----Original Message-----
> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
> Sent: Tuesday, January 28, 2014 1:29 AM
> To: dev
> Subject: Re: Findbugs report on 4.3-forward
>
> Hey Animesh,
>
> I agree with Daan here. We focussed on the bugs with a findbugs annotation of scariest. I think that would warrant them to be included in the 4.3 release, so please cherry-pick them all.
>
>
> Cheers,
>
> Hugo
>
>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com> wrote:
>>
>> Animesh,
>>
>> I took up a lot of messages from findbugs in the server package over
>> the weekend. Not that I will attach my soul to the shipping of my
>> fixes but some of them are == vs eq and some are really nasty
>> nullpointer issues (a chack after first use is very common). You can
>> cherry-pick them or not. I don't think you should leave any of them
>> behind. Even with David being right we should go against him at every
>> convenient time, running the risk of being called his wife.
>>
>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>> Hi Animesh,
>>>
>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>>>
>>> Fix findbug issues within LDAP authenticator commit
>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>
>>> Thanks,
>>> Ian
>>>
>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>> <an...@citrix.com>wrote:
>>>
>>>> Hugo I was reviewing your commits to 4.3-forward and looked at your
>>>> commits
>>>>
>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h
>>>> = f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h
>>>> = 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>> I think you want the last one which has fixes for NetUtils and
>>>> XenServerStorageMotionStrategy for which you had put -1 in first RC
>>>> but the commit includes more files. Can you make limited changes
>>>> directly to 4.3? I want to build another RC later tonight
>>>>
>>>> Animesh
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>
>>>> Agreed
>>>>
>>>> We need to fix the most important ones for 4.3. There may be
>>>> assumptions in the code which we may not know and may get broken if
>>>> these issues are fixed late. I will pull in the one Hugo casted his
>>>> -1 for the first vote, any others?
>>>>
>>>> Animesh
>>>>
>>>> -----Original Message-----
>>>> From: David Nalley [mailto:david@gnsa.us]
>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>
>>>> So just curious if I am the only one concerned about a ton of fixes
>>>> going in at the last minute. If the fixes are for serious bugs and
>>>> we have consensus around their severity being high enough, indeed lets fix things.
>>>> My concern is that much of the QA we do is manual; and while we are
>>>> getting better; fixing tons of things at the last minute may have
>>>> unintended consequences that we don't know about and won't easily find.
>>>>
>>>> I yearn for the day when our automated testing is broad enough that
>>>> we can do fixes right up to the wire and know that things still
>>>> work, I am just not sure that I have confidence that we are there yet.
>>>> Thoughts? I am being paranoid?
>>>>
>>>> --David
>>>>
>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>> <da...@gmail.com>
>>>> wrote:
>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>
>>>>> I allready send a few and will get you a list of the rest later today.
>>>>>
>>>>> regards,
>>>>>
>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>> <an...@citrix.com> wrote:
>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>>>> Are their specific commits you want me to pick up out of these?
>>>>>>
>>>>>> Animesh
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>> To: dev
>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>
>>>>>> I didn't get very far last night and will be looking at the
>>>>>> server
>>>> package again this afternoon.
>>>>>>
>>>>>> bon appétit,
>>>>>>
>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>>>
>>>>>>> Have pushed to 4.3-forward.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ian
>>>>>>>
>>>>>>>
>>>>>>> On 25 January 2014 22:26, Daan Hoogland
>>>>>>> <da...@gmail.com>
>>>> wrote:
>>>>>>>
>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>> I'll be looking at the server package as it seems to contain
>>>>>>>> the most issues.
>>>>>>>>
>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>> <hu...@trippaers.nl>
>>>> wrote:
>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>> the
>>>>>>>> cobertura code coverage report.
>>>>>>>>>
>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>>>> Huge
>>>>>>>> improvement over the last release where we had 4% iirc. We have
>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>> internationalization
>>>> issues.
>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>> we have
>>>>>>>> 6000+ issues still open, but at least that number is relatively
>>>>>>>> 6000+ stable, we
>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>> assume a large number of false positives there.
>>>>>>>>>
>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>> quality is
>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>> quite well on the code quality angle.
>>>>>>>>>
>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>>
>>>>>>>>> Hugo
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>> <da...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> H Hugo,
>>>>>>>>>>
>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>> ;)
>>>>>>>>>>
>>>>>>>>>> regards
>>>>>>>>>>
>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>> wrote:
>>>>>>>>>>> Hey all,
>>>>>>>>>>>
>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>> Is there
>>>>>>>> somebody who is willing to help triage the findings? Maybe
>>>>>>>> there is some stuff that we need to fix?
>>>>>>>>>>>
>>>>>>>>>>> the url is
>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven
>>>>>>>> -
>>>>>>>> bui
>>>>>>>> ld
>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>>
>>>>>>>>>>> Hugo
>
Re: Findbugs report on 4.3-forward
Posted by Hugo Trippaers <tr...@gmail.com>.
Hey Animesh,
Not in agreement here. These are squashed bugs and we want as less bugs in the release as possible.
This is why we test any RC before we release it. I say include all the big fixes we have in the release. If that means more testing before we cut the RC then that is what it is. I can't rightfully vote for a release with known issues with existing fixes. Quality over release schedule would be my vote then.
Cheers,
Hugo
Sent from my iPhone
> On 28 jan. 2014, at 18:48, Animesh Chaturvedi <an...@citrix.com> wrote:
>
> Folks these issues reported by find-bugs have existed for some time. I am not confident in picking them up now for 4.3 as it may break code that assumed old way of working. We can take them up for 4.3 maintenance release. I wish we had done this exercise and not waited until now.
>
> I will pick Hugo's commit for which he called -1.
>
> Thanks
> Animesh
>
> -----Original Message-----
> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
> Sent: Tuesday, January 28, 2014 1:29 AM
> To: dev
> Subject: Re: Findbugs report on 4.3-forward
>
> Hey Animesh,
>
> I agree with Daan here. We focussed on the bugs with a findbugs annotation of scariest. I think that would warrant them to be included in the 4.3 release, so please cherry-pick them all.
>
>
> Cheers,
>
> Hugo
>
>> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com> wrote:
>>
>> Animesh,
>>
>> I took up a lot of messages from findbugs in the server package over
>> the weekend. Not that I will attach my soul to the shipping of my
>> fixes but some of them are == vs eq and some are really nasty
>> nullpointer issues (a chack after first use is very common). You can
>> cherry-pick them or not. I don't think you should leave any of them
>> behind. Even with David being right we should go against him at every
>> convenient time, running the risk of being called his wife.
>>
>>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>> Hi Animesh,
>>>
>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>>>
>>> Fix findbug issues within LDAP authenticator commit
>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>
>>> Thanks,
>>> Ian
>>>
>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>> <an...@citrix.com>wrote:
>>>
>>>> Hugo I was reviewing your commits to 4.3-forward and looked at your
>>>> commits
>>>>
>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=
>>>> f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=
>>>> 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>> I think you want the last one which has fixes for NetUtils and
>>>> XenServerStorageMotionStrategy for which you had put -1 in first RC
>>>> but the commit includes more files. Can you make limited changes
>>>> directly to 4.3? I want to build another RC later tonight
>>>>
>>>> Animesh
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>
>>>> Agreed
>>>>
>>>> We need to fix the most important ones for 4.3. There may be
>>>> assumptions in the code which we may not know and may get broken if
>>>> these issues are fixed late. I will pull in the one Hugo casted his
>>>> -1 for the first vote, any others?
>>>>
>>>> Animesh
>>>>
>>>> -----Original Message-----
>>>> From: David Nalley [mailto:david@gnsa.us]
>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>
>>>> So just curious if I am the only one concerned about a ton of fixes
>>>> going in at the last minute. If the fixes are for serious bugs and
>>>> we have consensus around their severity being high enough, indeed lets fix things.
>>>> My concern is that much of the QA we do is manual; and while we are
>>>> getting better; fixing tons of things at the last minute may have
>>>> unintended consequences that we don't know about and won't easily find.
>>>>
>>>> I yearn for the day when our automated testing is broad enough that
>>>> we can do fixes right up to the wire and know that things still
>>>> work, I am just not sure that I have confidence that we are there yet.
>>>> Thoughts? I am being paranoid?
>>>>
>>>> --David
>>>>
>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>> <da...@gmail.com>
>>>> wrote:
>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>
>>>>> I allready send a few and will get you a list of the rest later today.
>>>>>
>>>>> regards,
>>>>>
>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>> <an...@citrix.com> wrote:
>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>>>> Are their specific commits you want me to pick up out of these?
>>>>>>
>>>>>> Animesh
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>> To: dev
>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>
>>>>>> I didn't get very far last night and will be looking at the server
>>>> package again this afternoon.
>>>>>>
>>>>>> bon appétit,
>>>>>>
>>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>>>
>>>>>>> Have pushed to 4.3-forward.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ian
>>>>>>>
>>>>>>>
>>>>>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
>>>> wrote:
>>>>>>>
>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>> I'll be looking at the server package as it seems to contain the
>>>>>>>> most issues.
>>>>>>>>
>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>> <hu...@trippaers.nl>
>>>> wrote:
>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>> the
>>>>>>>> cobertura code coverage report.
>>>>>>>>>
>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>>>> Huge
>>>>>>>> improvement over the last release where we had 4% iirc. We have
>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>> internationalization
>>>> issues.
>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>> we have
>>>>>>>> 6000+ issues still open, but at least that number is relatively
>>>>>>>> 6000+ stable, we
>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>> assume a large number of false positives there.
>>>>>>>>>
>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>> quality is
>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>> quite well on the code quality angle.
>>>>>>>>>
>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>>
>>>>>>>>> Hugo
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>> <da...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> H Hugo,
>>>>>>>>>>
>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>> ;)
>>>>>>>>>>
>>>>>>>>>> regards
>>>>>>>>>>
>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>> wrote:
>>>>>>>>>>> Hey all,
>>>>>>>>>>>
>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>> Is there
>>>>>>>> somebody who is willing to help triage the findings? Maybe there
>>>>>>>> is some stuff that we need to fix?
>>>>>>>>>>>
>>>>>>>>>>> the url is
>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-
>>>>>>>> bui
>>>>>>>> ld
>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>>
>>>>>>>>>>> Hugo
>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
Your call Animesh, I'm fine with it
On Tue, Jan 28, 2014 at 6:48 PM, Animesh Chaturvedi
<an...@citrix.com> wrote:
> Folks these issues reported by find-bugs have existed for some time. I am not confident in picking them up now for 4.3 as it may break code that assumed old way of working. We can take them up for 4.3 maintenance release. I wish we had done this exercise and not waited until now.
>
> I will pick Hugo's commit for which he called -1.
>
> Thanks
> Animesh
>
> -----Original Message-----
> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
> Sent: Tuesday, January 28, 2014 1:29 AM
> To: dev
> Subject: Re: Findbugs report on 4.3-forward
>
> Hey Animesh,
>
> I agree with Daan here. We focussed on the bugs with a findbugs annotation of scariest. I think that would warrant them to be included in the 4.3 release, so please cherry-pick them all.
>
>
> Cheers,
>
> Hugo
>
> On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com> wrote:
>
>> Animesh,
>>
>> I took up a lot of messages from findbugs in the server package over
>> the weekend. Not that I will attach my soul to the shipping of my
>> fixes but some of them are == vs eq and some are really nasty
>> nullpointer issues (a chack after first use is very common). You can
>> cherry-pick them or not. I don't think you should leave any of them
>> behind. Even with David being right we should go against him at every
>> convenient time, running the risk of being called his wife.
>>
>> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>> Hi Animesh,
>>>
>>> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>>>
>>> Fix findbug issues within LDAP authenticator commit
>>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>>
>>> Thanks,
>>> Ian
>>>
>>> On 28 January 2014 03:48, Animesh Chaturvedi
>>> <an...@citrix.com>wrote:
>>>
>>>> Hugo I was reviewing your commits to 4.3-forward and looked at your
>>>> commits
>>>>
>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=
>>>> f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>>
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=
>>>> 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>>> I think you want the last one which has fixes for NetUtils and
>>>> XenServerStorageMotionStrategy for which you had put -1 in first RC
>>>> but the commit includes more files. Can you make limited changes
>>>> directly to 4.3? I want to build another RC later tonight
>>>>
>>>> Animesh
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>>> Sent: Monday, January 27, 2014 1:30 PM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: RE: Findbugs report on 4.3-forward
>>>>
>>>> Agreed
>>>>
>>>> We need to fix the most important ones for 4.3. There may be
>>>> assumptions in the code which we may not know and may get broken if
>>>> these issues are fixed late. I will pull in the one Hugo casted his
>>>> -1 for the first vote, any others?
>>>>
>>>> Animesh
>>>>
>>>> -----Original Message-----
>>>> From: David Nalley [mailto:david@gnsa.us]
>>>> Sent: Monday, January 27, 2014 11:46 AM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>
>>>> So just curious if I am the only one concerned about a ton of fixes
>>>> going in at the last minute. If the fixes are for serious bugs and
>>>> we have consensus around their severity being high enough, indeed lets fix things.
>>>> My concern is that much of the QA we do is manual; and while we are
>>>> getting better; fixing tons of things at the last minute may have
>>>> unintended consequences that we don't know about and won't easily find.
>>>>
>>>> I yearn for the day when our automated testing is broad enough that
>>>> we can do fixes right up to the wire and know that things still
>>>> work, I am just not sure that I have confidence that we are there yet.
>>>> Thoughts? I am being paranoid?
>>>>
>>>> --David
>>>>
>>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>>> <da...@gmail.com>
>>>> wrote:
>>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>>
>>>>> I allready send a few and will get you a list of the rest later today.
>>>>>
>>>>> regards,
>>>>>
>>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>>> <an...@citrix.com> wrote:
>>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>>>> Are their specific commits you want me to pick up out of these?
>>>>>>
>>>>>> Animesh
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>>> To: dev
>>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>>
>>>>>> I didn't get very far last night and will be looking at the server
>>>> package again this afternoon.
>>>>>>
>>>>>> bon appétit,
>>>>>>
>>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>>>
>>>>>>> Have pushed to 4.3-forward.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ian
>>>>>>>
>>>>>>>
>>>>>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
>>>> wrote:
>>>>>>>
>>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>>> I'll be looking at the server package as it seems to contain the
>>>>>>>> most issues.
>>>>>>>>
>>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>>> <hu...@trippaers.nl>
>>>> wrote:
>>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>>> the
>>>>>>>> cobertura code coverage report.
>>>>>>>>>
>>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>>>> Huge
>>>>>>>> improvement over the last release where we had 4% iirc. We have
>>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>>> internationalization
>>>> issues.
>>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>>> we have
>>>>>>>> 6000+ issues still open, but at least that number is relatively
>>>>>>>> 6000+ stable, we
>>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>>> assume a large number of false positives there.
>>>>>>>>>
>>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>>> quality is
>>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>>> quite well on the code quality angle.
>>>>>>>>>
>>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>>
>>>>>>>>> Hugo
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>>> <da...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> H Hugo,
>>>>>>>>>>
>>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>>> ;)
>>>>>>>>>>
>>>>>>>>>> regards
>>>>>>>>>>
>>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>>> <hu...@trippaers.nl>
>>>>>>>> wrote:
>>>>>>>>>>> Hey all,
>>>>>>>>>>>
>>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>>> Is there
>>>>>>>> somebody who is willing to help triage the findings? Maybe there
>>>>>>>> is some stuff that we need to fix?
>>>>>>>>>>>
>>>>>>>>>>> the url is
>>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-
>>>>>>>> bui
>>>>>>>> ld
>>>>>>>> /3/findbugsResult/
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>>
>>>>>>>>>>> Hugo
>>>>>>>>>
>>>>>>>>
>>>>
>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
Folks these issues reported by find-bugs have existed for some time. I am not confident in picking them up now for 4.3 as it may break code that assumed old way of working. We can take them up for 4.3 maintenance release. I wish we had done this exercise and not waited until now.
I will pick Hugo's commit for which he called -1.
Thanks
Animesh
-----Original Message-----
From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
Sent: Tuesday, January 28, 2014 1:29 AM
To: dev
Subject: Re: Findbugs report on 4.3-forward
Hey Animesh,
I agree with Daan here. We focussed on the bugs with a findbugs annotation of scariest. I think that would warrant them to be included in the 4.3 release, so please cherry-pick them all.
Cheers,
Hugo
On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com> wrote:
> Animesh,
>
> I took up a lot of messages from findbugs in the server package over
> the weekend. Not that I will attach my soul to the shipping of my
> fixes but some of them are == vs eq and some are really nasty
> nullpointer issues (a chack after first use is very common). You can
> cherry-pick them or not. I don't think you should leave any of them
> behind. Even with David being right we should go against him at every
> convenient time, running the risk of being called his wife.
>
> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>> Hi Animesh,
>>
>> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>>
>> Fix findbug issues within LDAP authenticator commit
>> 92b4f66d73562e4211d2d787554ff229dbeb5705
>>
>> Thanks,
>> Ian
>>
>> On 28 January 2014 03:48, Animesh Chaturvedi
>> <an...@citrix.com>wrote:
>>
>>> Hugo I was reviewing your commits to 4.3-forward and looked at your
>>> commits
>>>
>>>
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=
>>> f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=
>>> 60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>> I think you want the last one which has fixes for NetUtils and
>>> XenServerStorageMotionStrategy for which you had put -1 in first RC
>>> but the commit includes more files. Can you make limited changes
>>> directly to 4.3? I want to build another RC later tonight
>>>
>>> Animesh
>>>
>>>
>>> -----Original Message-----
>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>> Sent: Monday, January 27, 2014 1:30 PM
>>> To: dev@cloudstack.apache.org
>>> Subject: RE: Findbugs report on 4.3-forward
>>>
>>> Agreed
>>>
>>> We need to fix the most important ones for 4.3. There may be
>>> assumptions in the code which we may not know and may get broken if
>>> these issues are fixed late. I will pull in the one Hugo casted his
>>> -1 for the first vote, any others?
>>>
>>> Animesh
>>>
>>> -----Original Message-----
>>> From: David Nalley [mailto:david@gnsa.us]
>>> Sent: Monday, January 27, 2014 11:46 AM
>>> To: dev@cloudstack.apache.org
>>> Subject: Re: Findbugs report on 4.3-forward
>>>
>>> So just curious if I am the only one concerned about a ton of fixes
>>> going in at the last minute. If the fixes are for serious bugs and
>>> we have consensus around their severity being high enough, indeed lets fix things.
>>> My concern is that much of the QA we do is manual; and while we are
>>> getting better; fixing tons of things at the last minute may have
>>> unintended consequences that we don't know about and won't easily find.
>>>
>>> I yearn for the day when our automated testing is broad enough that
>>> we can do fixes right up to the wire and know that things still
>>> work, I am just not sure that I have confidence that we are there yet.
>>> Thoughts? I am being paranoid?
>>>
>>> --David
>>>
>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland
>>> <da...@gmail.com>
>>> wrote:
>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>
>>>> I allready send a few and will get you a list of the rest later today.
>>>>
>>>> regards,
>>>>
>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>> <an...@citrix.com> wrote:
>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>>> Are their specific commits you want me to pick up out of these?
>>>>>
>>>>> Animesh
>>>>>
>>>>> -----Original Message-----
>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>> To: dev
>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>
>>>>> I didn't get very far last night and will be looking at the server
>>> package again this afternoon.
>>>>>
>>>>> bon appétit,
>>>>>
>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>>
>>>>>> Have pushed to 4.3-forward.
>>>>>>
>>>>>> Thanks,
>>>>>> Ian
>>>>>>
>>>>>>
>>>>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
>>> wrote:
>>>>>>
>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>> I'll be looking at the server package as it seems to contain the
>>>>>>> most issues.
>>>>>>>
>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers
>>>>>>> <hu...@trippaers.nl>
>>> wrote:
>>>>>>>> I've also added a job to master with the Findbugs report and
>>>>>>>> the
>>>>>>> cobertura code coverage report.
>>>>>>>>
>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>>> Huge
>>>>>>> improvement over the last release where we had 4% iirc. We have
>>>>>>> 306 reports from Findbugs, of which the majority are
>>>>>>> internationalization
>>> issues.
>>>>>>> (String.getBytes without charset mostly). On the coverity site
>>>>>>> we have
>>>>>>> 6000+ issues still open, but at least that number is relatively
>>>>>>> 6000+ stable, we
>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>> assume a large number of false positives there.
>>>>>>>>
>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>> quality is
>>>>>>> improving, which a good thing. Combined with the functional
>>>>>>> testing and the simulator build we can prove that we are doing
>>>>>>> quite well on the code quality angle.
>>>>>>>>
>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> Hugo
>>>>>>>>
>>>>>>>>
>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>> <da...@gmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> H Hugo,
>>>>>>>>>
>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>> ;)
>>>>>>>>>
>>>>>>>>> regards
>>>>>>>>>
>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>> <hu...@trippaers.nl>
>>>>>>> wrote:
>>>>>>>>>> Hey all,
>>>>>>>>>>
>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward.
>>>>>>>>>> Is there
>>>>>>> somebody who is willing to help triage the findings? Maybe there
>>>>>>> is some stuff that we need to fix?
>>>>>>>>>>
>>>>>>>>>> the url is
>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-
>>>>>>> bui
>>>>>>> ld
>>>>>>> /3/findbugsResult/
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> Hugo
>>>>>>>>
>>>>>>>
>>>
Re: Findbugs report on 4.3-forward
Posted by Hugo Trippaers <hu...@trippaers.nl>.
Hey Animesh,
I agree with Daan here. We focussed on the bugs with a findbugs annotation of scariest. I think that would warrant them to be included in the 4.3 release, so please cherry-pick them all.
Cheers,
Hugo
On 28 jan. 2014, at 09:32, Daan Hoogland <da...@gmail.com> wrote:
> Animesh,
>
> I took up a lot of messages from findbugs in the server package over
> the weekend. Not that I will attach my soul to the shipping of my
> fixes but some of them are == vs eq and some are really nasty
> nullpointer issues (a chack after first use is very common). You can
> cherry-pick them or not. I don't think you should leave any of them
> behind. Even with David being right we should go against him at every
> convenient time, running the risk of being called his wife.
>
> On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>> Hi Animesh,
>>
>> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>>
>> Fix findbug issues within LDAP authenticator
>> commit 92b4f66d73562e4211d2d787554ff229dbeb5705
>>
>> Thanks,
>> Ian
>>
>> On 28 January 2014 03:48, Animesh Chaturvedi
>> <an...@citrix.com>wrote:
>>
>>> Hugo I was reviewing your commits to 4.3-forward and looked at your commits
>>>
>>>
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>>
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=60ac12780bfa1604902a89d5dc7937a8b9334e0d
>>> I think you want the last one which has fixes for NetUtils and
>>> XenServerStorageMotionStrategy for which you had put -1 in first RC but the
>>> commit includes more files. Can you make limited changes directly to 4.3? I
>>> want to build another RC later tonight
>>>
>>> Animesh
>>>
>>>
>>> -----Original Message-----
>>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>>> Sent: Monday, January 27, 2014 1:30 PM
>>> To: dev@cloudstack.apache.org
>>> Subject: RE: Findbugs report on 4.3-forward
>>>
>>> Agreed
>>>
>>> We need to fix the most important ones for 4.3. There may be assumptions
>>> in the code which we may not know and may get broken if these issues are
>>> fixed late. I will pull in the one Hugo casted his -1 for the first vote,
>>> any others?
>>>
>>> Animesh
>>>
>>> -----Original Message-----
>>> From: David Nalley [mailto:david@gnsa.us]
>>> Sent: Monday, January 27, 2014 11:46 AM
>>> To: dev@cloudstack.apache.org
>>> Subject: Re: Findbugs report on 4.3-forward
>>>
>>> So just curious if I am the only one concerned about a ton of fixes going
>>> in at the last minute. If the fixes are for serious bugs and we have
>>> consensus around their severity being high enough, indeed lets fix things.
>>> My concern is that much of the QA we do is manual; and while we are getting
>>> better; fixing tons of things at the last minute may have unintended
>>> consequences that we don't know about and won't easily find.
>>>
>>> I yearn for the day when our automated testing is broad enough that we can
>>> do fixes right up to the wire and know that things still work, I am just
>>> not sure that I have confidence that we are there yet.
>>> Thoughts? I am being paranoid?
>>>
>>> --David
>>>
>>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <da...@gmail.com>
>>> wrote:
>>>> Animesh, I commented the once i made yesterday with findbugs:
>>>>
>>>> I allready send a few and will get you a list of the rest later today.
>>>>
>>>> regards,
>>>>
>>>> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>>>> <an...@citrix.com> wrote:
>>>>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>>> Are their specific commits you want me to pick up out of these?
>>>>>
>>>>> Animesh
>>>>>
>>>>> -----Original Message-----
>>>>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>>>>> Sent: Sunday, January 26, 2014 2:41 AM
>>>>> To: dev
>>>>> Subject: Re: Findbugs report on 4.3-forward
>>>>>
>>>>> I didn't get very far last night and will be looking at the server
>>> package again this afternoon.
>>>>>
>>>>> bon appétit,
>>>>>
>>>>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Fixed the issues highlighted in the ldap user authentication package.
>>>>>>
>>>>>> Have pushed to 4.3-forward.
>>>>>>
>>>>>> Thanks,
>>>>>> Ian
>>>>>>
>>>>>>
>>>>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
>>> wrote:
>>>>>>
>>>>>>>> or reply to this mail with the filename you are working on
>>>>>>> I'll be looking at the server package as it seems to contain the
>>>>>>> most issues.
>>>>>>>
>>>>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl>
>>> wrote:
>>>>>>>> I've also added a job to master with the Findbugs report and the
>>>>>>> cobertura code coverage report.
>>>>>>>>
>>>>>>>> Good stuff, we have a 12% coverage of our classes with unit tests.
>>>>>>>> Huge
>>>>>>> improvement over the last release where we had 4% iirc. We have 306
>>>>>>> reports from Findbugs, of which the majority are internationalization
>>> issues.
>>>>>>> (String.getBytes without charset mostly). On the coverity site we
>>>>>>> have
>>>>>>> 6000+ issues still open, but at least that number is relatively
>>>>>>> 6000+ stable, we
>>>>>>> fix as much issues as we introduce and it's untuned so we can
>>>>>>> assume a large number of false positives there.
>>>>>>>>
>>>>>>>> I think that on average the automated tools tell us that code
>>>>>>>> quality is
>>>>>>> improving, which a good thing. Combined with the functional testing
>>>>>>> and the simulator build we can prove that we are doing quite well
>>>>>>> on the code quality angle.
>>>>>>>>
>>>>>>>> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>>>>>>
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> Hugo
>>>>>>>>
>>>>>>>>
>>>>>>>> On 25 jan. 2014, at 14:13, Daan Hoogland
>>>>>>>> <da...@gmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> H Hugo,
>>>>>>>>>
>>>>>>>>> I'll spend some time on it tonight. Do you have a work load
>>>>>>>>> distribution scheme or is it random access?
>>>>>>>>> ;)
>>>>>>>>>
>>>>>>>>> regards
>>>>>>>>>
>>>>>>>>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>>>>>>> <hu...@trippaers.nl>
>>>>>>> wrote:
>>>>>>>>>> Hey all,
>>>>>>>>>>
>>>>>>>>>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>>>>>>>>>> there
>>>>>>> somebody who is willing to help triage the findings? Maybe there is
>>>>>>> some stuff that we need to fix?
>>>>>>>>>>
>>>>>>>>>> the url is
>>>>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-bui
>>>>>>> ld
>>>>>>> /3/findbugsResult/
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> Hugo
>>>>>>>>
>>>>>>>
>>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
Animesh,
I took up a lot of messages from findbugs in the server package over
the weekend. Not that I will attach my soul to the shipping of my
fixes but some of them are == vs eq and some are really nasty
nullpointer issues (a chack after first use is very common). You can
cherry-pick them or not. I don't think you should leave any of them
behind. Even with David being right we should go against him at every
convenient time, running the risk of being called his wife.
On Tue, Jan 28, 2014 at 6:25 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
> Hi Animesh,
>
> Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
>
> Fix findbug issues within LDAP authenticator
> commit 92b4f66d73562e4211d2d787554ff229dbeb5705
>
> Thanks,
> Ian
>
> On 28 January 2014 03:48, Animesh Chaturvedi
> <an...@citrix.com>wrote:
>
>> Hugo I was reviewing your commits to 4.3-forward and looked at your commits
>>
>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=f18c5a1910b6370585a1d61638b8310c3ecba5ef
>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=60ac12780bfa1604902a89d5dc7937a8b9334e0d
>> I think you want the last one which has fixes for NetUtils and
>> XenServerStorageMotionStrategy for which you had put -1 in first RC but the
>> commit includes more files. Can you make limited changes directly to 4.3? I
>> want to build another RC later tonight
>>
>> Animesh
>>
>>
>> -----Original Message-----
>> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
>> Sent: Monday, January 27, 2014 1:30 PM
>> To: dev@cloudstack.apache.org
>> Subject: RE: Findbugs report on 4.3-forward
>>
>> Agreed
>>
>> We need to fix the most important ones for 4.3. There may be assumptions
>> in the code which we may not know and may get broken if these issues are
>> fixed late. I will pull in the one Hugo casted his -1 for the first vote,
>> any others?
>>
>> Animesh
>>
>> -----Original Message-----
>> From: David Nalley [mailto:david@gnsa.us]
>> Sent: Monday, January 27, 2014 11:46 AM
>> To: dev@cloudstack.apache.org
>> Subject: Re: Findbugs report on 4.3-forward
>>
>> So just curious if I am the only one concerned about a ton of fixes going
>> in at the last minute. If the fixes are for serious bugs and we have
>> consensus around their severity being high enough, indeed lets fix things.
>> My concern is that much of the QA we do is manual; and while we are getting
>> better; fixing tons of things at the last minute may have unintended
>> consequences that we don't know about and won't easily find.
>>
>> I yearn for the day when our automated testing is broad enough that we can
>> do fixes right up to the wire and know that things still work, I am just
>> not sure that I have confidence that we are there yet.
>> Thoughts? I am being paranoid?
>>
>> --David
>>
>> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <da...@gmail.com>
>> wrote:
>> > Animesh, I commented the once i made yesterday with findbugs:
>> >
>> > I allready send a few and will get you a list of the rest later today.
>> >
>> > regards,
>> >
>> > On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
>> > <an...@citrix.com> wrote:
>> >> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
>> Are their specific commits you want me to pick up out of these?
>> >>
>> >> Animesh
>> >>
>> >> -----Original Message-----
>> >> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>> >> Sent: Sunday, January 26, 2014 2:41 AM
>> >> To: dev
>> >> Subject: Re: Findbugs report on 4.3-forward
>> >>
>> >> I didn't get very far last night and will be looking at the server
>> package again this afternoon.
>> >>
>> >> bon appétit,
>> >>
>> >> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>> >>> Hi,
>> >>>
>> >>> Fixed the issues highlighted in the ldap user authentication package.
>> >>>
>> >>> Have pushed to 4.3-forward.
>> >>>
>> >>> Thanks,
>> >>> Ian
>> >>>
>> >>>
>> >>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
>> wrote:
>> >>>
>> >>>> > or reply to this mail with the filename you are working on
>> >>>> I'll be looking at the server package as it seems to contain the
>> >>>> most issues.
>> >>>>
>> >>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl>
>> wrote:
>> >>>> > I've also added a job to master with the Findbugs report and the
>> >>>> cobertura code coverage report.
>> >>>> >
>> >>>> > Good stuff, we have a 12% coverage of our classes with unit tests.
>> >>>> > Huge
>> >>>> improvement over the last release where we had 4% iirc. We have 306
>> >>>> reports from Findbugs, of which the majority are internationalization
>> issues.
>> >>>> (String.getBytes without charset mostly). On the coverity site we
>> >>>> have
>> >>>> 6000+ issues still open, but at least that number is relatively
>> >>>> 6000+ stable, we
>> >>>> fix as much issues as we introduce and it's untuned so we can
>> >>>> assume a large number of false positives there.
>> >>>> >
>> >>>> > I think that on average the automated tools tell us that code
>> >>>> > quality is
>> >>>> improving, which a good thing. Combined with the functional testing
>> >>>> and the simulator build we can prove that we are doing quite well
>> >>>> on the code quality angle.
>> >>>> >
>> >>>> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
>> >>>> >
>> >>>> >
>> >>>> > Cheers,
>> >>>> >
>> >>>> > Hugo
>> >>>> >
>> >>>> >
>> >>>> > On 25 jan. 2014, at 14:13, Daan Hoogland
>> >>>> > <da...@gmail.com>
>> >>>> wrote:
>> >>>> >
>> >>>> >> H Hugo,
>> >>>> >>
>> >>>> >> I'll spend some time on it tonight. Do you have a work load
>> >>>> >> distribution scheme or is it random access?
>> >>>> >> ;)
>> >>>> >>
>> >>>> >> regards
>> >>>> >>
>> >>>> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>> >>>> >> <hu...@trippaers.nl>
>> >>>> wrote:
>> >>>> >>> Hey all,
>> >>>> >>>
>> >>>> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>> >>>> >>> there
>> >>>> somebody who is willing to help triage the findings? Maybe there is
>> >>>> some stuff that we need to fix?
>> >>>> >>>
>> >>>> >>> the url is
>> >>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-bui
>> >>>> ld
>> >>>> /3/findbugsResult/
>> >>>> >>>
>> >>>> >>> Cheers,
>> >>>> >>>
>> >>>> >>> Hugo
>> >>>> >
>> >>>>
>>
Re: Findbugs report on 4.3-forward
Posted by Ian Duffy <ia...@ianduffy.ie>.
Hi Animesh,
Can you cherry-pick the below commit from from 4.3-forward to 4.3 branch?
Fix findbug issues within LDAP authenticator
commit 92b4f66d73562e4211d2d787554ff229dbeb5705
Thanks,
Ian
On 28 January 2014 03:48, Animesh Chaturvedi
<an...@citrix.com>wrote:
> Hugo I was reviewing your commits to 4.3-forward and looked at your commits
>
>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=f18c5a1910b6370585a1d61638b8310c3ecba5ef
>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=60ac12780bfa1604902a89d5dc7937a8b9334e0d
> I think you want the last one which has fixes for NetUtils and
> XenServerStorageMotionStrategy for which you had put -1 in first RC but the
> commit includes more files. Can you make limited changes directly to 4.3? I
> want to build another RC later tonight
>
> Animesh
>
>
> -----Original Message-----
> From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
> Sent: Monday, January 27, 2014 1:30 PM
> To: dev@cloudstack.apache.org
> Subject: RE: Findbugs report on 4.3-forward
>
> Agreed
>
> We need to fix the most important ones for 4.3. There may be assumptions
> in the code which we may not know and may get broken if these issues are
> fixed late. I will pull in the one Hugo casted his -1 for the first vote,
> any others?
>
> Animesh
>
> -----Original Message-----
> From: David Nalley [mailto:david@gnsa.us]
> Sent: Monday, January 27, 2014 11:46 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Findbugs report on 4.3-forward
>
> So just curious if I am the only one concerned about a ton of fixes going
> in at the last minute. If the fixes are for serious bugs and we have
> consensus around their severity being high enough, indeed lets fix things.
> My concern is that much of the QA we do is manual; and while we are getting
> better; fixing tons of things at the last minute may have unintended
> consequences that we don't know about and won't easily find.
>
> I yearn for the day when our automated testing is broad enough that we can
> do fixes right up to the wire and know that things still work, I am just
> not sure that I have confidence that we are there yet.
> Thoughts? I am being paranoid?
>
> --David
>
> On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <da...@gmail.com>
> wrote:
> > Animesh, I commented the once i made yesterday with findbugs:
> >
> > I allready send a few and will get you a list of the rest later today.
> >
> > regards,
> >
> > On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
> > <an...@citrix.com> wrote:
> >> Good job fellas. I see a number of commits 20+ into 4.3-forward branch.
> Are their specific commits you want me to pick up out of these?
> >>
> >> Animesh
> >>
> >> -----Original Message-----
> >> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
> >> Sent: Sunday, January 26, 2014 2:41 AM
> >> To: dev
> >> Subject: Re: Findbugs report on 4.3-forward
> >>
> >> I didn't get very far last night and will be looking at the server
> package again this afternoon.
> >>
> >> bon appétit,
> >>
> >> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
> >>> Hi,
> >>>
> >>> Fixed the issues highlighted in the ldap user authentication package.
> >>>
> >>> Have pushed to 4.3-forward.
> >>>
> >>> Thanks,
> >>> Ian
> >>>
> >>>
> >>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com>
> wrote:
> >>>
> >>>> > or reply to this mail with the filename you are working on
> >>>> I'll be looking at the server package as it seems to contain the
> >>>> most issues.
> >>>>
> >>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl>
> wrote:
> >>>> > I've also added a job to master with the Findbugs report and the
> >>>> cobertura code coverage report.
> >>>> >
> >>>> > Good stuff, we have a 12% coverage of our classes with unit tests.
> >>>> > Huge
> >>>> improvement over the last release where we had 4% iirc. We have 306
> >>>> reports from Findbugs, of which the majority are internationalization
> issues.
> >>>> (String.getBytes without charset mostly). On the coverity site we
> >>>> have
> >>>> 6000+ issues still open, but at least that number is relatively
> >>>> 6000+ stable, we
> >>>> fix as much issues as we introduce and it's untuned so we can
> >>>> assume a large number of false positives there.
> >>>> >
> >>>> > I think that on average the automated tools tell us that code
> >>>> > quality is
> >>>> improving, which a good thing. Combined with the functional testing
> >>>> and the simulator build we can prove that we are doing quite well
> >>>> on the code quality angle.
> >>>> >
> >>>> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
> >>>> >
> >>>> >
> >>>> > Cheers,
> >>>> >
> >>>> > Hugo
> >>>> >
> >>>> >
> >>>> > On 25 jan. 2014, at 14:13, Daan Hoogland
> >>>> > <da...@gmail.com>
> >>>> wrote:
> >>>> >
> >>>> >> H Hugo,
> >>>> >>
> >>>> >> I'll spend some time on it tonight. Do you have a work load
> >>>> >> distribution scheme or is it random access?
> >>>> >> ;)
> >>>> >>
> >>>> >> regards
> >>>> >>
> >>>> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
> >>>> >> <hu...@trippaers.nl>
> >>>> wrote:
> >>>> >>> Hey all,
> >>>> >>>
> >>>> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
> >>>> >>> there
> >>>> somebody who is willing to help triage the findings? Maybe there is
> >>>> some stuff that we need to fix?
> >>>> >>>
> >>>> >>> the url is
> >>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-bui
> >>>> ld
> >>>> /3/findbugsResult/
> >>>> >>>
> >>>> >>> Cheers,
> >>>> >>>
> >>>> >>> Hugo
> >>>> >
> >>>>
>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
Hugo I was reviewing your commits to 4.3-forward and looked at your commits
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=f18c5a1910b6370585a1d61638b8310c3ecba5ef
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=60ac12780bfa1604902a89d5dc7937a8b9334e0d
I think you want the last one which has fixes for NetUtils and XenServerStorageMotionStrategy for which you had put -1 in first RC but the commit includes more files. Can you make limited changes directly to 4.3? I want to build another RC later tonight
Animesh
-----Original Message-----
From: Animesh Chaturvedi [mailto:animesh.chaturvedi@citrix.com]
Sent: Monday, January 27, 2014 1:30 PM
To: dev@cloudstack.apache.org
Subject: RE: Findbugs report on 4.3-forward
Agreed
We need to fix the most important ones for 4.3. There may be assumptions in the code which we may not know and may get broken if these issues are fixed late. I will pull in the one Hugo casted his -1 for the first vote, any others?
Animesh
-----Original Message-----
From: David Nalley [mailto:david@gnsa.us]
Sent: Monday, January 27, 2014 11:46 AM
To: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
So just curious if I am the only one concerned about a ton of fixes going in at the last minute. If the fixes are for serious bugs and we have consensus around their severity being high enough, indeed lets fix things. My concern is that much of the QA we do is manual; and while we are getting better; fixing tons of things at the last minute may have unintended consequences that we don't know about and won't easily find.
I yearn for the day when our automated testing is broad enough that we can do fixes right up to the wire and know that things still work, I am just not sure that I have confidence that we are there yet.
Thoughts? I am being paranoid?
--David
On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <da...@gmail.com> wrote:
> Animesh, I commented the once i made yesterday with findbugs:
>
> I allready send a few and will get you a list of the rest later today.
>
> regards,
>
> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
> <an...@citrix.com> wrote:
>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch. Are their specific commits you want me to pick up out of these?
>>
>> Animesh
>>
>> -----Original Message-----
>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>> Sent: Sunday, January 26, 2014 2:41 AM
>> To: dev
>> Subject: Re: Findbugs report on 4.3-forward
>>
>> I didn't get very far last night and will be looking at the server package again this afternoon.
>>
>> bon appétit,
>>
>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>> Hi,
>>>
>>> Fixed the issues highlighted in the ldap user authentication package.
>>>
>>> Have pushed to 4.3-forward.
>>>
>>> Thanks,
>>> Ian
>>>
>>>
>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com> wrote:
>>>
>>>> > or reply to this mail with the filename you are working on
>>>> I'll be looking at the server package as it seems to contain the
>>>> most issues.
>>>>
>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>>>> > I've also added a job to master with the Findbugs report and the
>>>> cobertura code coverage report.
>>>> >
>>>> > Good stuff, we have a 12% coverage of our classes with unit tests.
>>>> > Huge
>>>> improvement over the last release where we had 4% iirc. We have 306
>>>> reports from Findbugs, of which the majority are internationalization issues.
>>>> (String.getBytes without charset mostly). On the coverity site we
>>>> have
>>>> 6000+ issues still open, but at least that number is relatively
>>>> 6000+ stable, we
>>>> fix as much issues as we introduce and it's untuned so we can
>>>> assume a large number of false positives there.
>>>> >
>>>> > I think that on average the automated tools tell us that code
>>>> > quality is
>>>> improving, which a good thing. Combined with the functional testing
>>>> and the simulator build we can prove that we are doing quite well
>>>> on the code quality angle.
>>>> >
>>>> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>> >
>>>> >
>>>> > Cheers,
>>>> >
>>>> > Hugo
>>>> >
>>>> >
>>>> > On 25 jan. 2014, at 14:13, Daan Hoogland
>>>> > <da...@gmail.com>
>>>> wrote:
>>>> >
>>>> >> H Hugo,
>>>> >>
>>>> >> I'll spend some time on it tonight. Do you have a work load
>>>> >> distribution scheme or is it random access?
>>>> >> ;)
>>>> >>
>>>> >> regards
>>>> >>
>>>> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>> >> <hu...@trippaers.nl>
>>>> wrote:
>>>> >>> Hey all,
>>>> >>>
>>>> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>>>> >>> there
>>>> somebody who is willing to help triage the findings? Maybe there is
>>>> some stuff that we need to fix?
>>>> >>>
>>>> >>> the url is
>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-bui
>>>> ld
>>>> /3/findbugsResult/
>>>> >>>
>>>> >>> Cheers,
>>>> >>>
>>>> >>> Hugo
>>>> >
>>>>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
Agreed
We need to fix the most important ones for 4.3. There may be assumptions in the code which we may not know and may get broken if these issues are fixed late. I will pull in the one Hugo casted his -1 for the first vote, any others?
Animesh
-----Original Message-----
From: David Nalley [mailto:david@gnsa.us]
Sent: Monday, January 27, 2014 11:46 AM
To: dev@cloudstack.apache.org
Subject: Re: Findbugs report on 4.3-forward
So just curious if I am the only one concerned about a ton of fixes going in at the last minute. If the fixes are for serious bugs and we have consensus around their severity being high enough, indeed lets fix things. My concern is that much of the QA we do is manual; and while we are getting better; fixing tons of things at the last minute may have unintended consequences that we don't know about and won't easily find.
I yearn for the day when our automated testing is broad enough that we can do fixes right up to the wire and know that things still work, I am just not sure that I have confidence that we are there yet.
Thoughts? I am being paranoid?
--David
On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <da...@gmail.com> wrote:
> Animesh, I commented the once i made yesterday with findbugs:
>
> I allready send a few and will get you a list of the rest later today.
>
> regards,
>
> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
> <an...@citrix.com> wrote:
>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch. Are their specific commits you want me to pick up out of these?
>>
>> Animesh
>>
>> -----Original Message-----
>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>> Sent: Sunday, January 26, 2014 2:41 AM
>> To: dev
>> Subject: Re: Findbugs report on 4.3-forward
>>
>> I didn't get very far last night and will be looking at the server package again this afternoon.
>>
>> bon appétit,
>>
>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>> Hi,
>>>
>>> Fixed the issues highlighted in the ldap user authentication package.
>>>
>>> Have pushed to 4.3-forward.
>>>
>>> Thanks,
>>> Ian
>>>
>>>
>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com> wrote:
>>>
>>>> > or reply to this mail with the filename you are working on
>>>> I'll be looking at the server package as it seems to contain the
>>>> most issues.
>>>>
>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>>>> > I've also added a job to master with the Findbugs report and the
>>>> cobertura code coverage report.
>>>> >
>>>> > Good stuff, we have a 12% coverage of our classes with unit tests.
>>>> > Huge
>>>> improvement over the last release where we had 4% iirc. We have 306
>>>> reports from Findbugs, of which the majority are internationalization issues.
>>>> (String.getBytes without charset mostly). On the coverity site we
>>>> have
>>>> 6000+ issues still open, but at least that number is relatively
>>>> 6000+ stable, we
>>>> fix as much issues as we introduce and it's untuned so we can
>>>> assume a large number of false positives there.
>>>> >
>>>> > I think that on average the automated tools tell us that code
>>>> > quality is
>>>> improving, which a good thing. Combined with the functional testing
>>>> and the simulator build we can prove that we are doing quite well
>>>> on the code quality angle.
>>>> >
>>>> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>> >
>>>> >
>>>> > Cheers,
>>>> >
>>>> > Hugo
>>>> >
>>>> >
>>>> > On 25 jan. 2014, at 14:13, Daan Hoogland
>>>> > <da...@gmail.com>
>>>> wrote:
>>>> >
>>>> >> H Hugo,
>>>> >>
>>>> >> I'll spend some time on it tonight. Do you have a work load
>>>> >> distribution scheme or is it random access?
>>>> >> ;)
>>>> >>
>>>> >> regards
>>>> >>
>>>> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>> >> <hu...@trippaers.nl>
>>>> wrote:
>>>> >>> Hey all,
>>>> >>>
>>>> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>>>> >>> there
>>>> somebody who is willing to help triage the findings? Maybe there is
>>>> some stuff that we need to fix?
>>>> >>>
>>>> >>> the url is
>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-bui
>>>> ld
>>>> /3/findbugsResult/
>>>> >>>
>>>> >>> Cheers,
>>>> >>>
>>>> >>> Hugo
>>>> >
>>>>
Re: Findbugs report on 4.3-forward
Posted by David Nalley <da...@gnsa.us>.
So just curious if I am the only one concerned about a ton of fixes
going in at the last minute. If the fixes are for serious bugs and we
have consensus around their severity being high enough, indeed lets
fix things. My concern is that much of the QA we do is manual; and
while we are getting better; fixing tons of things at the last minute
may have unintended consequences that we don't know about and won't
easily find.
I yearn for the day when our automated testing is broad enough that we
can do fixes right up to the wire and know that things still work, I
am just not sure that I have confidence that we are there yet.
Thoughts? I am being paranoid?
--David
On Mon, Jan 27, 2014 at 3:11 AM, Daan Hoogland <da...@gmail.com> wrote:
> Animesh, I commented the once i made yesterday with findbugs:
>
> I allready send a few and will get you a list of the rest later today.
>
> regards,
>
> On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
> <an...@citrix.com> wrote:
>> Good job fellas. I see a number of commits 20+ into 4.3-forward branch. Are their specific commits you want me to pick up out of these?
>>
>> Animesh
>>
>> -----Original Message-----
>> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
>> Sent: Sunday, January 26, 2014 2:41 AM
>> To: dev
>> Subject: Re: Findbugs report on 4.3-forward
>>
>> I didn't get very far last night and will be looking at the server package again this afternoon.
>>
>> bon appétit,
>>
>> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>>> Hi,
>>>
>>> Fixed the issues highlighted in the ldap user authentication package.
>>>
>>> Have pushed to 4.3-forward.
>>>
>>> Thanks,
>>> Ian
>>>
>>>
>>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com> wrote:
>>>
>>>> > or reply to this mail with the filename you are working on
>>>> I'll be looking at the server package as it seems to contain the most
>>>> issues.
>>>>
>>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>>>> > I've also added a job to master with the Findbugs report and the
>>>> cobertura code coverage report.
>>>> >
>>>> > Good stuff, we have a 12% coverage of our classes with unit tests.
>>>> > Huge
>>>> improvement over the last release where we had 4% iirc. We have 306
>>>> reports from Findbugs, of which the majority are internationalization issues.
>>>> (String.getBytes without charset mostly). On the coverity site we
>>>> have
>>>> 6000+ issues still open, but at least that number is relatively
>>>> 6000+ stable, we
>>>> fix as much issues as we introduce and it's untuned so we can assume
>>>> a large number of false positives there.
>>>> >
>>>> > I think that on average the automated tools tell us that code
>>>> > quality is
>>>> improving, which a good thing. Combined with the functional testing
>>>> and the simulator build we can prove that we are doing quite well on
>>>> the code quality angle.
>>>> >
>>>> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>>> >
>>>> >
>>>> > Cheers,
>>>> >
>>>> > Hugo
>>>> >
>>>> >
>>>> > On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com>
>>>> wrote:
>>>> >
>>>> >> H Hugo,
>>>> >>
>>>> >> I'll spend some time on it tonight. Do you have a work load
>>>> >> distribution scheme or is it random access?
>>>> >> ;)
>>>> >>
>>>> >> regards
>>>> >>
>>>> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>>> >> <hu...@trippaers.nl>
>>>> wrote:
>>>> >>> Hey all,
>>>> >>>
>>>> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>>>> >>> there
>>>> somebody who is willing to help triage the findings? Maybe there is
>>>> some stuff that we need to fix?
>>>> >>>
>>>> >>> the url is
>>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build
>>>> /3/findbugsResult/
>>>> >>>
>>>> >>> Cheers,
>>>> >>>
>>>> >>> Hugo
>>>> >
>>>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
Animesh, I commented the once i made yesterday with findbugs:
I allready send a few and will get you a list of the rest later today.
regards,
On Mon, Jan 27, 2014 at 3:48 AM, Animesh Chaturvedi
<an...@citrix.com> wrote:
> Good job fellas. I see a number of commits 20+ into 4.3-forward branch. Are their specific commits you want me to pick up out of these?
>
> Animesh
>
> -----Original Message-----
> From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
> Sent: Sunday, January 26, 2014 2:41 AM
> To: dev
> Subject: Re: Findbugs report on 4.3-forward
>
> I didn't get very far last night and will be looking at the server package again this afternoon.
>
> bon appétit,
>
> On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
>> Hi,
>>
>> Fixed the issues highlighted in the ldap user authentication package.
>>
>> Have pushed to 4.3-forward.
>>
>> Thanks,
>> Ian
>>
>>
>> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com> wrote:
>>
>>> > or reply to this mail with the filename you are working on
>>> I'll be looking at the server package as it seems to contain the most
>>> issues.
>>>
>>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>>> > I've also added a job to master with the Findbugs report and the
>>> cobertura code coverage report.
>>> >
>>> > Good stuff, we have a 12% coverage of our classes with unit tests.
>>> > Huge
>>> improvement over the last release where we had 4% iirc. We have 306
>>> reports from Findbugs, of which the majority are internationalization issues.
>>> (String.getBytes without charset mostly). On the coverity site we
>>> have
>>> 6000+ issues still open, but at least that number is relatively
>>> 6000+ stable, we
>>> fix as much issues as we introduce and it's untuned so we can assume
>>> a large number of false positives there.
>>> >
>>> > I think that on average the automated tools tell us that code
>>> > quality is
>>> improving, which a good thing. Combined with the functional testing
>>> and the simulator build we can prove that we are doing quite well on
>>> the code quality angle.
>>> >
>>> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
>>> >
>>> >
>>> > Cheers,
>>> >
>>> > Hugo
>>> >
>>> >
>>> > On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com>
>>> wrote:
>>> >
>>> >> H Hugo,
>>> >>
>>> >> I'll spend some time on it tonight. Do you have a work load
>>> >> distribution scheme or is it random access?
>>> >> ;)
>>> >>
>>> >> regards
>>> >>
>>> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>>> >> <hu...@trippaers.nl>
>>> wrote:
>>> >>> Hey all,
>>> >>>
>>> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>>> >>> there
>>> somebody who is willing to help triage the findings? Maybe there is
>>> some stuff that we need to fix?
>>> >>>
>>> >>> the url is
>>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build
>>> /3/findbugsResult/
>>> >>>
>>> >>> Cheers,
>>> >>>
>>> >>> Hugo
>>> >
>>>
RE: Findbugs report on 4.3-forward
Posted by Animesh Chaturvedi <an...@citrix.com>.
Good job fellas. I see a number of commits 20+ into 4.3-forward branch. Are their specific commits you want me to pick up out of these?
Animesh
-----Original Message-----
From: Daan Hoogland [mailto:daan.hoogland@gmail.com]
Sent: Sunday, January 26, 2014 2:41 AM
To: dev
Subject: Re: Findbugs report on 4.3-forward
I didn't get very far last night and will be looking at the server package again this afternoon.
bon appétit,
On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
> Hi,
>
> Fixed the issues highlighted in the ldap user authentication package.
>
> Have pushed to 4.3-forward.
>
> Thanks,
> Ian
>
>
> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com> wrote:
>
>> > or reply to this mail with the filename you are working on
>> I'll be looking at the server package as it seems to contain the most
>> issues.
>>
>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>> > I've also added a job to master with the Findbugs report and the
>> cobertura code coverage report.
>> >
>> > Good stuff, we have a 12% coverage of our classes with unit tests.
>> > Huge
>> improvement over the last release where we had 4% iirc. We have 306
>> reports from Findbugs, of which the majority are internationalization issues.
>> (String.getBytes without charset mostly). On the coverity site we
>> have
>> 6000+ issues still open, but at least that number is relatively
>> 6000+ stable, we
>> fix as much issues as we introduce and it's untuned so we can assume
>> a large number of false positives there.
>> >
>> > I think that on average the automated tools tell us that code
>> > quality is
>> improving, which a good thing. Combined with the functional testing
>> and the simulator build we can prove that we are doing quite well on
>> the code quality angle.
>> >
>> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
>> >
>> >
>> > Cheers,
>> >
>> > Hugo
>> >
>> >
>> > On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com>
>> wrote:
>> >
>> >> H Hugo,
>> >>
>> >> I'll spend some time on it tonight. Do you have a work load
>> >> distribution scheme or is it random access?
>> >> ;)
>> >>
>> >> regards
>> >>
>> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers
>> >> <hu...@trippaers.nl>
>> wrote:
>> >>> Hey all,
>> >>>
>> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is
>> >>> there
>> somebody who is willing to help triage the findings? Maybe there is
>> some stuff that we need to fix?
>> >>>
>> >>> the url is
>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build
>> /3/findbugsResult/
>> >>>
>> >>> Cheers,
>> >>>
>> >>> Hugo
>> >
>>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
I didn't get very far last night and will be looking at the server
package again this afternoon.
bon appétit,
On Sun, Jan 26, 2014 at 1:36 AM, Ian Duffy <ia...@ianduffy.ie> wrote:
> Hi,
>
> Fixed the issues highlighted in the ldap user authentication package.
>
> Have pushed to 4.3-forward.
>
> Thanks,
> Ian
>
>
> On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com> wrote:
>
>> > or reply to this mail with the filename you are working on
>> I'll be looking at the server package as it seems to contain the most
>> issues.
>>
>> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>> > I’ve also added a job to master with the Findbugs report and the
>> cobertura code coverage report.
>> >
>> > Good stuff, we have a 12% coverage of our classes with unit tests. Huge
>> improvement over the last release where we had 4% iirc. We have 306 reports
>> from Findbugs, of which the majority are internationalization issues.
>> (String.getBytes without charset mostly). On the coverity site we have
>> 6000+ issues still open, but at least that number is relatively stable, we
>> fix as much issues as we introduce and it’s untuned so we can assume a
>> large number of false positives there.
>> >
>> > I think that on average the automated tools tell us that code quality is
>> improving, which a good thing. Combined with the functional testing and the
>> simulator build we can prove that we are doing quite well on the code
>> quality angle.
>> >
>> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
>> >
>> >
>> > Cheers,
>> >
>> > Hugo
>> >
>> >
>> > On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com>
>> wrote:
>> >
>> >> H Hugo,
>> >>
>> >> I'll spend some time on it tonight. Do you have a work load
>> >> distribution scheme or is it random access?
>> >> ;)
>> >>
>> >> regards
>> >>
>> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers <hu...@trippaers.nl>
>> wrote:
>> >>> Hey all,
>> >>>
>> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is there
>> somebody who is willing to help triage the findings? Maybe there is some
>> stuff that we need to fix?
>> >>>
>> >>> the url is
>> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build/3/findbugsResult/
>> >>>
>> >>> Cheers,
>> >>>
>> >>> Hugo
>> >
>>
Re: Findbugs report on 4.3-forward
Posted by Ian Duffy <ia...@ianduffy.ie>.
Hi,
Fixed the issues highlighted in the ldap user authentication package.
Have pushed to 4.3-forward.
Thanks,
Ian
On 25 January 2014 22:26, Daan Hoogland <da...@gmail.com> wrote:
> > or reply to this mail with the filename you are working on
> I'll be looking at the server package as it seems to contain the most
> issues.
>
> On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
> > I’ve also added a job to master with the Findbugs report and the
> cobertura code coverage report.
> >
> > Good stuff, we have a 12% coverage of our classes with unit tests. Huge
> improvement over the last release where we had 4% iirc. We have 306 reports
> from Findbugs, of which the majority are internationalization issues.
> (String.getBytes without charset mostly). On the coverity site we have
> 6000+ issues still open, but at least that number is relatively stable, we
> fix as much issues as we introduce and it’s untuned so we can assume a
> large number of false positives there.
> >
> > I think that on average the automated tools tell us that code quality is
> improving, which a good thing. Combined with the functional testing and the
> simulator build we can prove that we are doing quite well on the code
> quality angle.
> >
> > http://jenkins.buildacloud.org/job/build-master-slowbuild/
> >
> >
> > Cheers,
> >
> > Hugo
> >
> >
> > On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com>
> wrote:
> >
> >> H Hugo,
> >>
> >> I'll spend some time on it tonight. Do you have a work load
> >> distribution scheme or is it random access?
> >> ;)
> >>
> >> regards
> >>
> >> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers <hu...@trippaers.nl>
> wrote:
> >>> Hey all,
> >>>
> >>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is there
> somebody who is willing to help triage the findings? Maybe there is some
> stuff that we need to fix?
> >>>
> >>> the url is
> http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build/3/findbugsResult/
> >>>
> >>> Cheers,
> >>>
> >>> Hugo
> >
>
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
> or reply to this mail with the filename you are working on
I'll be looking at the server package as it seems to contain the most issues.
On Sat, Jan 25, 2014 at 4:00 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
> I’ve also added a job to master with the Findbugs report and the cobertura code coverage report.
>
> Good stuff, we have a 12% coverage of our classes with unit tests. Huge improvement over the last release where we had 4% iirc. We have 306 reports from Findbugs, of which the majority are internationalization issues. (String.getBytes without charset mostly). On the coverity site we have 6000+ issues still open, but at least that number is relatively stable, we fix as much issues as we introduce and it’s untuned so we can assume a large number of false positives there.
>
> I think that on average the automated tools tell us that code quality is improving, which a good thing. Combined with the functional testing and the simulator build we can prove that we are doing quite well on the code quality angle.
>
> http://jenkins.buildacloud.org/job/build-master-slowbuild/
>
>
> Cheers,
>
> Hugo
>
>
> On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com> wrote:
>
>> H Hugo,
>>
>> I'll spend some time on it tonight. Do you have a work load
>> distribution scheme or is it random access?
>> ;)
>>
>> regards
>>
>> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>>> Hey all,
>>>
>>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is there somebody who is willing to help triage the findings? Maybe there is some stuff that we need to fix?
>>>
>>> the url is http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build/3/findbugsResult/
>>>
>>> Cheers,
>>>
>>> Hugo
>
Re: Findbugs report on 4.3-forward
Posted by Hugo Trippaers <hu...@trippaers.nl>.
I’ve also added a job to master with the Findbugs report and the cobertura code coverage report.
Good stuff, we have a 12% coverage of our classes with unit tests. Huge improvement over the last release where we had 4% iirc. We have 306 reports from Findbugs, of which the majority are internationalization issues. (String.getBytes without charset mostly). On the coverity site we have 6000+ issues still open, but at least that number is relatively stable, we fix as much issues as we introduce and it’s untuned so we can assume a large number of false positives there.
I think that on average the automated tools tell us that code quality is improving, which a good thing. Combined with the functional testing and the simulator build we can prove that we are doing quite well on the code quality angle.
http://jenkins.buildacloud.org/job/build-master-slowbuild/
Cheers,
Hugo
On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com> wrote:
> H Hugo,
>
> I'll spend some time on it tonight. Do you have a work load
> distribution scheme or is it random access?
> ;)
>
> regards
>
> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>> Hey all,
>>
>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is there somebody who is willing to help triage the findings? Maybe there is some stuff that we need to fix?
>>
>> the url is http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build/3/findbugsResult/
>>
>> Cheers,
>>
>> Hugo
Re: Findbugs report on 4.3-forward
Posted by Hugo Trippaers <hu...@trippaers.nl>.
Thanks!
Random access. :-) Either push any fixes to the 4.3-forward branch for Animesh to look at, or reply to this mail with the filename you are working on. I won’t working on anything tonight, so feel free to go ahead without the sync.
Cheers,
Hugo
On 25 jan. 2014, at 14:13, Daan Hoogland <da...@gmail.com> wrote:
> H Hugo,
>
> I'll spend some time on it tonight. Do you have a work load
> distribution scheme or is it random access?
> ;)
>
> regards
>
> On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
>> Hey all,
>>
>> I've made Jenkins run the findbugs analysis on 4.3-forward. Is there somebody who is willing to help triage the findings? Maybe there is some stuff that we need to fix?
>>
>> the url is http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build/3/findbugsResult/
>>
>> Cheers,
>>
>> Hugo
Re: Findbugs report on 4.3-forward
Posted by Daan Hoogland <da...@gmail.com>.
H Hugo,
I'll spend some time on it tonight. Do you have a work load
distribution scheme or is it random access?
;)
regards
On Sat, Jan 25, 2014 at 12:39 PM, Hugo Trippaers <hu...@trippaers.nl> wrote:
> Hey all,
>
> I've made Jenkins run the findbugs analysis on 4.3-forward. Is there somebody who is willing to help triage the findings? Maybe there is some stuff that we need to fix?
>
> the url is http://jenkins.buildacloud.org/job/cloudstack-4.3-forward-maven-build/3/findbugsResult/
>
> Cheers,
>
> Hugo