[JIRA] (JENKINS-57602) NPE in Support Core Plugin when reporting agents

瀏覽次數:1 次
跳到第一則未讀訊息

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

未讀,
2019年5月22日 清晨7:19:022019/5/22
收件者:jenkinsc...@googlegroups.com
Oleg Nenashev created an issue
 
Jenkins / Bug JENKINS-57602
NPE in Support Core Plugin when reporting agents
Issue Type: Bug Bug
Assignee: Emilio Escobar
Components: support-core-plugin
Created: 2019-05-22 11:18
Environment: support-core-2.56
Priority: Minor Minor
Reporter: Oleg Nenashev

I have a node which has been configured with JCasC and then never connected. When Support  Core Plugin generates a bundle, I see NPE in System logs.

WARNING: Could not attach ''nodes.md'' to support bundle java.lang.NullPointerException at com.cloudbees.jenkins.support.util.Markdown.escapeBacktick(Markdown.java:17) at com.cloudbees.jenkins.support.impl.AboutJenkins$NodesContent.printTo(AboutJenkins.java:877) at com.cloudbees.jenkins.support.api.PrintedContent.writeTo(PrintedContent.java:56) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:316) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:278) at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl.lambda$doRun$0(SupportPlugin.java:820) at java.lang.Thread.run(Thread.java:748)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

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

未讀,
2019年5月22日 清晨7:22:022019/5/22
收件者:jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
I have a node which has been configured with JCasC and then never connected. When Support  Core Plugin generates a bundle, I see NPE in System logs.

Acceptance criteria:
* There is handling of null inputs in the reporting path

Nice 2 have:
* Methods are annotated to ensure that there is no such mistakes happening in the future

{code:java}

WARNING: Could not attach ''nodes.md'' to support bundle java.lang.NullPointerException at com.cloudbees.jenkins.support.util.Markdown.escapeBacktick(Markdown.java:17) at com.cloudbees.jenkins.support.impl.AboutJenkins$NodesContent.printTo(AboutJenkins.java:877) at com.cloudbees.jenkins.support.api.PrintedContent.writeTo(PrintedContent.java:56) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:316) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:278) at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl.lambda$doRun$0(SupportPlugin.java:820) at java.lang.Thread.run(Thread.java:748)
{code}

bmathus+ossjira@cloudbees.com (JIRA)

未讀,
2019年5月27日 凌晨4:31:012019/5/27
收件者:jenkinsc...@googlegroups.com
Baptiste Mathus commented on Bug JENKINS-57602
 
Re: NPE in Support Core Plugin when reporting agents

I think we should check if this also reproducible out of JCasC configured.

At this stage, Oleg is saying it looks only like log spam, but we'd need to double check.

bmathus+ossjira@cloudbees.com (JIRA)

未讀,
2019年5月27日 凌晨4:32:022019/5/27
收件者:jenkinsc...@googlegroups.com

bmathus+ossjira@cloudbees.com (JIRA)

未讀,
2019年6月12日 凌晨3:46:022019/6/12
收件者:jenkinsc...@googlegroups.com
Baptiste Mathus assigned an issue to Unassigned
Change By: Baptiste Mathus
Assignee: Emilio  Escobar

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2019年7月11日 中午12:40:022019/7/11
收件者:jenkinsc...@googlegroups.com
Ramon Leon started work on Bug JENKINS-57602
 
Change By: Ramon Leon
Status: Open In Progress

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2019年7月11日 中午12:40:022019/7/11
收件者:jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2019年7月11日 中午12:40:032019/7/11
收件者:jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2019年7月11日 中午12:40:032019/7/11
收件者:jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2019年7月11日 中午12:41:022019/7/11
收件者:jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2019年7月11日 中午12:41:022019/7/11
收件者:jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2019年7月12日 上午10:43:042019/7/12
收件者:jenkinsc...@googlegroups.com

It only happens with JCasC because the node configured ha the field to null instead of "" (empty string). Not sure whether it's a bug in JCasC or not because the field is mandatory anyway. Why can you leave it empty in the UI?

If we consider that JCasC should do the same as the UI then it's a bug in the UI.

Oleg Nenashev WDYT?

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2019年7月12日 上午10:44:022019/7/12
收件者:jenkinsc...@googlegroups.com
Ramon Leon edited a comment on Bug JENKINS-57602
It only happens with JCasC because the node configured ha the field to *null* instead of *""* (empty string). Not sure whether it's a bug in JCasC or not because the field is mandatory anyway. Why can you leave it empty in the UI?


If we consider that JCasC should do the same as the UI then it's a bug in the UI.

manuelramonleonjimenez@gmail.com (JIRA)

未讀,
2020年3月11日 凌晨3:30:032020/3/11
收件者:jenkinsc...@googlegroups.com
Change By: Ramon Leon
Status: In Review Resolved
Resolution: Fixed
Released As: support-core-2.58
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
回覆所有人
回覆作者
轉寄
0 則新訊息