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

Javascript error credentials select

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      Jenkins 2.251

      Description

      Seems to be related to credentials plugin when visiting Configure with a credentials plugin select box loaded.
      The error seems innocence, reporting it since I seen it around for awhile now.
      Maybe this did not https://github.com/jenkinsci/jenkins/commit/372bfb81acc11bd37a9a5979ba18512b429acb9 fix it completely.

      https://github.com/jenkinsci/jenkins/blob/master/war/src/main/webapp/scripts/hudson-behavior.js#L417

      But line 417:

      e.targetElement = findFollowingTR(e, "validation-error-area").firstChild.nextSibling;
      

      Results in

      This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.
      
      hudson-behavior.js:472 Unable to find nearby url
      (anonymous) @ hudson-behavior.js:472
      (anonymous) @ prototype.js:853
      each @ prototype.js:852
      registerValidator @ hudson-behavior.js:469
      (anonymous) @ behavior.js:111
      (anonymous) @ behavior.js:107
      applySubtree @ behavior.js:93
      (anonymous) @ select.js:269
      
      hudson-behavior.js:417 Uncaught TypeError: Cannot read property 'firstChild' of undefined
          at registerValidator (http://localhost:8080/static/a29569d7/scripts/hudson-behavior.js:417:66)
          at Array.forEach (native)
          at http://localhost:8080/static/a29569d7/scripts/behavior.js:111:30
          at Array.forEach (native)
          at http://localhost:8080/static/a29569d7/scripts/behavior.js:107:27
          at Array.forEach (native)
          at Object.applySubtree (http://localhost:8080/static/a29569d7/scripts/behavior.js:93:17)
          at http://localhost:8080/adjuncts/a29569d7/lib/credentials/select/select.js:269:19
      

        Attachments

          Issue Links

            Activity

            casz Joseph Petersen (old) created issue -
            casz Joseph Petersen (old) made changes -
            Field Original Value New Value
            Description Seems to be related to credentials plugin when visiting Configure with a credentials plugin select box loaded.
            The error seems innocence, reporting it since I seen it around for awhile now.
            Maybe this did not https://github.com/jenkinsci/jenkins/commit/372bfb81acc11bd37a9a5979ba18512b429acb9 fix it completely.

            https://github.com/jenkinsci/jenkins/blob/master/war/src/main/webapp/scripts/hudson-behavior.js#L417

            But line 417:

            {code:java}
            e.targetElement = findFollowingTR(e, "validation-error-area").firstChild.nextSibling;
            {code}

            Results in
            {code:java}
            This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.

            hudson-behavior.js:472 Unable to find nearby url
            (anonymous) @ hudson-behavior.js:472
            (anonymous) @ prototype.js:853
            each @ prototype.js:852
            registerValidator @ hudson-behavior.js:469
            (anonymous) @ behavior.js:111
            (anonymous) @ behavior.js:107
            applySubtree @ behavior.js:93
            (anonymous) @ select.js:269

            hudson-behavior.js:417 Uncaught TypeError: Cannot read property 'firstChild' of undefined
                at registerValidator (http://vasbld06:8080/static/a29569d7/scripts/hudson-behavior.js:417:66)
                at Array.forEach (native)
                at http://vasbld06:8080/static/a29569d7/scripts/behavior.js:111:30
                at Array.forEach (native)
                at http://vasbld06:8080/static/a29569d7/scripts/behavior.js:107:27
                at Array.forEach (native)
                at Object.applySubtree (http://vasbld06:8080/static/a29569d7/scripts/behavior.js:93:17)
                at http://vasbld06:8080/adjuncts/a29569d7/lib/credentials/select/select.js:269:19
            {code}
            Seems to be related to credentials plugin when visiting Configure with a credentials plugin select box loaded.
             The error seems innocence, reporting it since I seen it around for awhile now.
             Maybe this did not [https://github.com/jenkinsci/jenkins/commit/372bfb81acc11bd37a9a5979ba18512b429acb9] fix it completely.

            [https://github.com/jenkinsci/jenkins/blob/master/war/src/main/webapp/scripts/hudson-behavior.js#L417]

            But line 417:
            {code:java}
            e.targetElement = findFollowingTR(e, "validation-error-area").firstChild.nextSibling;
            {code}
            Results in
            {code:java}
            This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.

            hudson-behavior.js:472 Unable to find nearby url
            (anonymous) @ hudson-behavior.js:472
            (anonymous) @ prototype.js:853
            each @ prototype.js:852
            registerValidator @ hudson-behavior.js:469
            (anonymous) @ behavior.js:111
            (anonymous) @ behavior.js:107
            applySubtree @ behavior.js:93
            (anonymous) @ select.js:269

            hudson-behavior.js:417 Uncaught TypeError: Cannot read property 'firstChild' of undefined
                at registerValidator (http://localhost:8080/static/a29569d7/scripts/hudson-behavior.js:417:66)
                at Array.forEach (native)
                at http://localhost:8080/static/a29569d7/scripts/behavior.js:111:30
                at Array.forEach (native)
                at http://localhost:8080/static/a29569d7/scripts/behavior.js:107:27
                at Array.forEach (native)
                at Object.applySubtree (http://localhost:8080/static/a29569d7/scripts/behavior.js:93:17)
                at http://localhost:8080/adjuncts/a29569d7/lib/credentials/select/select.js:269:19
            {code}
            rgoers Ralph Goers made changes -
            Link This issue is related to JENKINS-49630 [ JENKINS-49630 ]
            stephenconnolly Stephen Connolly made changes -
            Assignee Stephen Connolly [ stephenconnolly ]
            jetersen Joseph Petersen made changes -
            Assignee Joseph Petersen [ jetersen ]
            jetersen Joseph Petersen made changes -
            Assignee Joseph Petersen [ jetersen ] Stephen Connolly [ stephenconnolly ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Stephen Connolly [ stephenconnolly ]
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            danielbeck Daniel Beck made changes -
            Released As Jenkins 2.251
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Closed [ 6 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              casz Joseph Petersen (old)
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: