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

Credentials plugin causes JS error which breaks CIFS plugin

XMLWordPrintable

      When opening an existing project it removes my CIFS selection. 

      Based on the console log I have included below there seems to be a JS issue similar to the one introduced in Credentials 2.0.5 and fixed in 2.0.6.

      I uninstalled the Credentials plug in and the issue resolved itself, however more issues arised so I reinstalled it.

      I believe this is the root cause of  JENKINS-48551 but just encase am filing separately with the credentials plug in included. 
      // select.js:8 Uncaught TypeError: Cannot read property 'firstChild' of undefinedat updateListBox (select.js:8)
      at select.js:79
      at h (hudson-behavior.js:1295)
      at refillOnChange (hudson-behavior.js:1310)
      at select.js:77
      at Array.forEach (<anonymous>)
      at behavior.js:111
      at Array.forEach (<anonymous>)
      at behavior.js:107
      at Array.forEach (<anonymous>)
       

      // [DOM] Found 2 elements with non-unique id #svn.remote.loc: (More info: https://goo.gl/9p2vKq) <input checkdependson="remote" onchange="{ /* workaround for JENKINS-19124 */             var self=this.targetElement ? this.targetElement : this;             var r=findNextFormItem(self,'credentialsId');             r.onchange(r);             if (self===document.getElementById('svn.remote.loc')){                 r=findNextFormItem(self,'excludedRevprop');                 r.onchange(r);             }             self=null;             r=null;     }" id="svn.remote.loc" checkurl="/job/Armer-Exposure-Requests-API-Build-UAT/descriptorByName/hudson.scm.SubversionSCM$ModuleLocation/checkRemote" name="_.remote" type="text" class="setting-input validated  " value> <input checkdependson="remote" onchange="{ /* workaround for JENKINS-19124 */             var self=this.targetElement ? this.targetElement : this;             var r=findNextFormItem(self,'credentialsId');             r.onchange(r);             if (self===document.getElementById('svn.remote.loc')){                 r=findNextFormItem(self,'excludedRevprop');                 r.onchange(r);             }             self=null;             r=null;     }" id="svn.remote.loc" checkurl="/job/Armer-Exposure-Requests-API-Build-UAT/descriptorByName/hudson.scm.SubversionSCM$ModuleLocation/checkRemote" name="_.remote" type="text" class="setting-input validated  " value>
      

       

       

       

            slide_o_mix Alex Earl
            qblack Quinton Black
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: