[JIRA] (JENKINS-57562) EC2Cloud crashes with NPE when instanceCapStr is not passed from JCasC

11 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
May 20, 2019, 10:29:02 AM5/20/19
to jenkinsc...@googlegroups.com
Oleg Nenashev created an issue
 
Jenkins / Improvement JENKINS-57562
EC2Cloud crashes with NPE when instanceCapStr is not passed from JCasC
Issue Type: Improvement Improvement
Assignee: FABRIZIO MANFREDI
Components: ec2-plugin
Created: 2019-05-20 14:28
Labels: jcasc-compatibility newbie-friendly
Priority: Minor Minor
Reporter: Oleg Nenashev

It is a minor issue in the EC2 Plugin implementation. 
instanceCapStr in https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/EC2Cloud.java is designed to be optional, and it supports empty strings in the constructor. But it still fails with NPE when a field is not passed from the JCasC configuration.
 
I consider it is as an important issue, because the field is not exported by default

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
May 20, 2019, 10:30:02 AM5/20/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
It is a minor issue in the EC2 Plugin implementation. 
instanceCapStr in [https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/EC2Cloud.java] is designed to be optional, and it supports empty strings in the constructor. But it still fails with NPE when a field is not passed from the JCasC configuration.
 
I consider it is as an important issue, because the field is not exported by default .

The issue can be fixed by a small patch to properly handle nulls in the constructor arguments

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 3, 2019, 10:31:03 AM6/3/19
to jenkinsc...@googlegroups.com

nisshah1499@gmail.com (JIRA)

unread,
Jun 9, 2019, 10:56:02 AM6/9/19
to jenkinsc...@googlegroups.com

Oleg Nenashev

Is this issue still available to work on? If available, I would like to have a look on it.

timjacomb1@gmail.com (JIRA)

unread,
Jun 9, 2019, 11:44:02 AM6/9/19
to jenkinsc...@googlegroups.com

timjacomb1@gmail.com (JIRA)

unread,
Jun 9, 2019, 11:45:02 AM6/9/19
to jenkinsc...@googlegroups.com

nisshah1499@gmail.com (JIRA)

unread,
Jun 9, 2019, 12:10:04 PM6/9/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Jul 23, 2019, 6:09:01 PM7/23/19
to jenkinsc...@googlegroups.com
Change By: Oleg Nenashev
Status: Fixed but Unreleased Resolved
Released As: ec2-1.44
Reply all
Reply to author
Forward
0 new messages