[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Ivan Fernandez Calvo commented on JENKINS-48198 Re: "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title This issue still happens on BO 1.9.0, Jenkins Core 2.153, and Google Chrome Version 70.0.3538.102 (Official Build) (64-bit) blueocean.js:58096 Unhandled Rejection: "TypeError: Cannot read property 'toLowerCase' of undefined\nat TimeHarmonizerUtil.getI18nTitle (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/blueocean-core-js.js:54379:75)\n at LiveStatusIndicator.render (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/blueocean-core-js.js:53687:25)\n at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49621:30)\n at ReactCompositeComponentWrapper._renderValidatedComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49644:32)\n at ReactCompositeComponentWrapper.performInitialMount (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49184:30)\n at ReactCompositeComponentWrapper.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49080:21)\n at Object.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:55420:35)\n at ReactCompositeComponentWrapper.performInitialMount (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49193:34)\n at ReactCompositeComponentWrapper.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49080:21)\n at Object.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:55420:35)\n at ReactDOMComponent.mountChildren (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:54382:44)\n at ReactDOMComponent._createInitialChildren (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:50508:32)\n at ReactDOMComponent.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:50327:12)\n at Object.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:55420:35)\n at ReactCompositeComponentWrapper.performInitialMount (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49193:34)\n at ReactCompositeComponentWrapper.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49080:21)\n at Object.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:55420:35)\n at ReactCompositeComponentWrapper.performInitialMount (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49193:34)\n at ReactCompositeComponentWrapper.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:49080:21)\n at Object.mountComponent (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:55420:35)\n at ReactDOMComponent.mountChildren (https://jenkins.example.com/adjuncts/753fab46/io/jenkins/blueocean/jenkins-design-language.js:54382:44)\n
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Michael Ferris reopened an issue I have been able to track down a bit more where the problem occurs. In Activity details (https://github.com/jenkinsci/blueocean-plugin/blob/77960a8dc21840ae5f6df784a26f91e09d7da621/blueocean-dashboard/src/main/js/components/ActivityDetailsRow.jsx#L33) There is the following const resultRun = run.result === 'UNKNOWN' ? run.state : run.result; resultRun is later used with .toLowerCase() to show in the page. However, it is possible (not sure how) for run.state to be undefined when run.result is "UNKNOWN" probably should change the check to const resultRun = (run.result === 'UNKNOWN' && typeof run.state === "string") ? run.state : run.result; This way Blue Ocean would be more resilient to builds' data Jenkins / JENKINS-48198 "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title Change By: Michael Ferris Resolution: Fixed Status: Closed Reopened Add Comment
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Michael Ferris updated an issue Jenkins / JENKINS-48198 "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title Change By: Michael Ferris Comment: I have been able to track down a bit more where the problem occurs.In Activity details ([https://github.com/jenkinsci/blueocean-plugin/blob/77960a8dc21840ae5f6df784a26f91e09d7da621/blueocean-dashboard/src/main/js/components/ActivityDetailsRow.jsx#L33)]There is the following {code:java}const resultRun = run.result === 'UNKNOWN' ? run.state : run.result;{code}resultRun is later used with .toLowerCase() to show in the page. However, it is possible (not sure how) for run.state to be undefined when run.result is "UNKNOWN" probably should change the check to{code:java}const resultRun = (run.result === 'UNKNOWN' && typeof run.state === "string") ? run.state : run.result;{code}This way Blue Ocean would be more resilient to builds' data Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Michael Ferris commented on JENKINS-48198 Re: "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title I have been able to track down a bit more where the problem occurs. In Activity details (https://github.com/jenkinsci/blueocean-plugin/blob/77960a8dc21840ae5f6df784a26f91e09d7da621/blueocean-dashboard/src/main/js/components/ActivityDetailsRow.jsx#L33) There is the following const resultRun = run.result === 'UNKNOWN' ? run.state : run.result; resultRun is later used with .toLowerCase() to show in the page. However, it is possible (not sure how) for run.state to be undefined when run.result is "UNKNOWN" probably should change the check to const resultRun = (run.result === 'UNKNOWN' && typeof run.state === "string") ? run.state : run.result; This way Blue Ocean would be more resilient to builds' data Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Vivek Pandey commented on JENKINS-48198 Re: "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title Øyvind Rørtveit oh sorry, my intent was not to just close the ticket. As you can see comments/evaluation from Josh, we did what we could as it’s not something we can fix in blueocean and this error will go away. Fix made here is to report better error so that you know where/which plugin is failing and with that info we can fix appropriate plugin. If you disagree you can reopen but we did what we could as explained in this ticket. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Øyvind Rørtveit commented on JENKINS-48198 Re: "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title Vivek Panday, but the issue has been "resolved" with status "fixed". Surely while the issue persists it should still be open? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Josh McDonald commented on JENKINS-48198 Re: "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title Not really. Once we have per-property skipability, it will get better in that we won't have partially-formed runs bringing the UI down, but instead we would just get a 500 (or some runs would be missing from the response completely, if it's a list). But I don't really know enough to diagnose why those runs' executions can't be iterated properly when attempting to create the nodes - the root exception is coming from non-BlueOcean code, so I'm not particularly familiar with it. Somebody on the pipeline team might have something more useful to add, though. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Vivek Pandey commented on JENKINS-48198 Re: "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title Øyvind Rørtveit Not necessarily fixed. Josh has added some more server side logging to help see whats blowing up in server side resulting in to UI showing this error. Josh McDonald do you have more ideas on what else can be done on it? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Øyvind Rørtveit commented on JENKINS-48198 Re: "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title How is this issue now fixed? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-48198) "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title
Title: Message Title Vivek Pandey resolved as Fixed More logging info added in https://github.com/jenkinsci/blueocean-plugin/pull/1648, hopefully this should help diagnose whats causing this behavior. Jenkins / JENKINS-48198 "TypeError: Cannot read property 'toLowerCase' of undefined" for i18n title Change By: Vivek Pandey Status: Reopened Resolved Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from