Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19391

Unable to add some post build actions: TypeError: Cannot read property 'style' of null

      Job config page loads fine, but after clicking on certain post build actions nothing happens and following error occurs: TypeError: $(...) is null @ hudson-behavior.js:377.

      This regression was introduced in [1] (merged in [2])

      Affected post build actions:
      Publish Cobertura Coverage Report

      Reproducing selenium-test features:
      features/cobertura_plugin.feature:6

      [1] https://github.com/jenkinsci/jenkins/commit/ef3d6e46b9826ab84098834261daafaa1fe3b6da
      [2] https://github.com/jenkinsci/jenkins/commit/5c6044ca49b67cdc37b0f418efda84d6ff1fa396

          [JENKINS-19391] Unable to add some post build actions: TypeError: Cannot read property 'style' of null

          Jesse Glick added a comment -

          Was this any particular browser, or is it specific to the plugin?

          Jesse Glick added a comment - Was this any particular browser, or is it specific to the plugin?

          Observed using Firefox 21.0, Chromium 28.0. The error in chromium says Uncaught TypeError: Cannot read property 'style' of null. The problem occurs when clicking on the link that activates cobertura postbuild-step, other postbuild steps works fine even when cobertura is installed.

          No other plugins covered by selenium have this problem.

          Oliver Gondža added a comment - Observed using Firefox 21.0, Chromium 28.0. The error in chromium says Uncaught TypeError: Cannot read property 'style' of null . The problem occurs when clicking on the link that activates cobertura postbuild-step, other postbuild steps works fine even when cobertura is installed. No other plugins covered by selenium have this problem.

          Jesse Glick added a comment -

          Yeah, reproduced and fixed already, https://jenkins.ci.cloudbees.com/job/core/job/jenkins_main_trunk/1154/ is validating. See JENKINS-3107 for discussion.

          Jesse Glick added a comment - Yeah, reproduced and fixed already, https://jenkins.ci.cloudbees.com/job/core/job/jenkins_main_trunk/1154/ is validating. See JENKINS-3107 for discussion.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/resources/lib/form/advanced.jelly
          core/src/main/resources/lib/form/checkbox.jelly
          core/src/main/resources/lib/form/expandableTextbox.jelly
          core/src/main/resources/lib/form/textarea.jelly
          core/src/main/resources/lib/form/textbox.jelly
          http://jenkins-ci.org/commit/jenkins/7cb81ee826e41d5f70c73bd2992bb249eccd90f7
          Log:
          [FIXED JENKINS-19391] Trying to show the annotation on an Advanced block in newly inserted dynamic section failed since the span is not yet registered.
          More generally, suppressing customizedField detection when attrs.field is null;
          this prevents us from giving false positives for complex forms with Java-based defaults like CoberturaPublisher.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/resources/lib/form/advanced.jelly core/src/main/resources/lib/form/checkbox.jelly core/src/main/resources/lib/form/expandableTextbox.jelly core/src/main/resources/lib/form/textarea.jelly core/src/main/resources/lib/form/textbox.jelly http://jenkins-ci.org/commit/jenkins/7cb81ee826e41d5f70c73bd2992bb249eccd90f7 Log: [FIXED JENKINS-19391] Trying to show the annotation on an Advanced block in newly inserted dynamic section failed since the span is not yet registered. More generally, suppressing customizedField detection when attrs.field is null; this prevents us from giving false positives for complex forms with Java-based defaults like CoberturaPublisher.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2843
          [FIXED JENKINS-19391] Trying to show the annotation on an Advanced block in newly inserted dynamic section failed since the span is not yet registered. (Revision 7cb81ee826e41d5f70c73bd2992bb249eccd90f7)

          Result = SUCCESS
          Jesse Glick : 7cb81ee826e41d5f70c73bd2992bb249eccd90f7
          Files :

          • core/src/main/resources/lib/form/expandableTextbox.jelly
          • core/src/main/resources/lib/form/checkbox.jelly
          • core/src/main/resources/lib/form/textarea.jelly
          • core/src/main/resources/lib/form/advanced.jelly
          • core/src/main/resources/lib/form/textbox.jelly

          dogfood added a comment - Integrated in jenkins_main_trunk #2843 [FIXED JENKINS-19391] Trying to show the annotation on an Advanced block in newly inserted dynamic section failed since the span is not yet registered. (Revision 7cb81ee826e41d5f70c73bd2992bb249eccd90f7) Result = SUCCESS Jesse Glick : 7cb81ee826e41d5f70c73bd2992bb249eccd90f7 Files : core/src/main/resources/lib/form/expandableTextbox.jelly core/src/main/resources/lib/form/checkbox.jelly core/src/main/resources/lib/form/textarea.jelly core/src/main/resources/lib/form/advanced.jelly core/src/main/resources/lib/form/textbox.jelly

            jglick Jesse Glick
            olivergondza Oliver Gondža
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: