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

JS errors and 403s prevent configuring project properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Blocker Blocker
    • core
    • Jenkins 2.46 on Ubuntu 16.04.2 LTS, affects all browsers tested on OSX

      I'm trying to configure a multiproject Gradle build on Jenkins 2.46. Anything that requires adding a panel is failing. For example, adding additional behaviors in SCM section fails, so I can't specify advanced submodules behaviors. I also can't add build or post-build actions.

      When I first load the configure page for the project, I get these errors (i.e. I'm not doing anything, just opening the project):

      configure:1 This page includes a password or credit card input in a non-secure context. A warning will be added to the URL bar in Chrome 56 (Jan 2017). For more information, see https://goo.gl/zmWq3m.
      hudson-behavior.js:417 Uncaught TypeError: Cannot read property 'firstChild' of undefined
          at registerValidator (<server>/static/b7508750/scripts/hudson-behavior.js:417:66)
          at Array.forEach (native)
          at <server>/static/b7508750/scripts/behavior.js:111:30
          at Array.forEach (native)
          at <server>/static/b7508750/scripts/behavior.js:107:27
          at Array.forEach (native)
          at Object.applySubtree (<server>/static/b7508750/scripts/behavior.js:93:17)
          at <server>/adjuncts/b7508750/lib/credentials/select/select.js:269:19
      registerValidator @ hudson-behavior.js:417
      (anonymous) @ behavior.js:111
      (anonymous) @ behavior.js:107
      applySubtree @ behavior.js:93
      (anonymous) @ select.js:269
      
      prototype.js:1585 POST <server>/$stapler/bound/6b685d4a-0423-4bfe-adeb-4ae10db0d579/render 403 (No valid crumb was included in the request)
      request @ prototype.js:1585
      initialize @ prototype.js:1550
      (anonymous) @ prototype.js:452
      klass @ prototype.js:101
      proxy.(anonymous function) @ bind.js:48
      renderOnDemand @ hudson-behavior.js:547
      updateDropDownList @ hudson-behavior.js:1110
      SELECT.dropdownList @ hudson-behavior.js:1125
      (anonymous) @ behavior.js:111
      (anonymous) @ behavior.js:107
      applySubtree @ behavior.js:93
      apply @ behavior.js:76
      (anonymous) @ behavior.js:71
      window.onload @ behavior.js:125
      
      prototype.js:1585 POST <server>/$stapler/bound/9aa0ea86-a1d5-425e-b037-bc91e52ee576/render 403 (No valid crumb was included in the request)
      request @ prototype.js:1585
      initialize @ prototype.js:1550
      (anonymous) @ prototype.js:452
      klass @ prototype.js:101
      proxy.(anonymous function) @ bind.js:48
      renderOnDemand @ hudson-behavior.js:547
      updateDropDownList @ hudson-behavior.js:1110
      SELECT.dropdownList @ hudson-behavior.js:1125
      (anonymous) @ behavior.js:111
      (anonymous) @ behavior.js:107
      applySubtree @ behavior.js:93
      apply @ behavior.js:76
      (anonymous) @ behavior.js:71
      window.onload @ behavior.js:125

      Then when I try to do something like, e.g., Add build step->Invoke Gradle command, I get this JS error:

      prototype.js:1585 POST <server>/$stapler/bound/0b722d6f-726c-424a-b26e-faa15193c741/render 403 (No valid crumb was included in the request)
      request @ prototype.js:1585
      initialize @ prototype.js:1550
      (anonymous) @ prototype.js:452
      klass @ prototype.js:101
      proxy.(anonymous function) @ bind.js:48
      renderOnDemand @ hudson-behavior.js:547
      (anonymous) @ hetero-list.js:53
      notify @ event-min.js:7
      fire @ event-min.js:7
      e @ menu-min.js:7
      n @ event-min.js:7

      The same error occurs every time I try to do something similar, e.g. add post-build step or whatever. This has rendered the UI unusable in 2.46.

      Note that these error messages come from the Web console in Opera, but I've also tested in Chrome, Firefox, and Safari with the same results.

            Unassigned Unassigned
            rherrick rherrick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: