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

Tables are not initialized correctly

XMLWordPrintable

      Opening https://jenkins-fsn1.samknows.com/job/<job>/coverage/ (from Code Coverage API Plugin) and clicking on "File Coverage".

      • Works the first time
      • Results in an empty file list the following times

      This is not fixed by restarting the browser or Jenkins. But,

      • Opening a "New private window" in Firefox allow me to see the file list again (once). I can do this as many times as I want.
      • Opening the page with a different browser also allows me to see the file list, also only once.

      I know zero Javascript / web development. But I have seen

      jQuery.Deferred exception: cannot use 'in' operator to search for "length" in "[[4, \"desc\"]]" p@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/jquery3-api/webjars/jquery.min.js:2:1092
      each@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/jquery3-api/webjars/jquery.min.js:2:2965
      pe@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/jquery.dataTables.min.js:4:45761
      he@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/jquery.dataTables.min.js:4:45140
      w/<@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/jquery.dataTables.min.js:4:8666
      each@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/jquery3-api/webjars/jquery.min.js:2:3003
      each@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/jquery3-api/webjars/jquery.min.js:2:1481
      w@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/jquery.dataTables.min.js:4:3568
      P.fn.DataTable@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/jquery.dataTables.min.js:4:86702
      createDataTable@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:70:37
      bindTables/<@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:109:46
      each@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/jquery3-api/webjars/jquery.min.js:2:3003
      each@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/jquery3-api/webjars/jquery.min.js:2:1481
      bindTables@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:106:19
      @https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:205:19
      @https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:206:7
      e@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/jquery3-api/webjars/jquery.min.js:2:30158
      Deferred/then/l/</t<@https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/jquery3-api/webjars/jquery.min.js:2:30460
       undefined

      and

      Uncaught TypeError: cannot use 'in' operator to search for "length" in "[[4, \"desc\"]]"
          jQuery 9
              p
              each
              pe
              he
              w
              each
              each
              w
              DataTable
          createDataTable https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:70
          bindTables https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:109
          jQuery 2
          bindTables https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:106
          <anonymous> https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:205
          <anonymous> https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:206
          jQuery 2
              e
              t
      jquery.min.js:2:1092
          jQuery 9
          createDataTable https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:70
          bindTables https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:109
          jQuery 2
          bindTables https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:106
          <anonymous> https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:205
          <anonymous> https://jenkins-fsn1.samknows.com/static/277dfae1/plugin/data-tables-api/js/table.js:206
          jQuery 2
              e
              t
       

      in the Firefox "Browser Console" (see the original in the attached jenkins_issue.png) which, from the chat in Gitter, apparently means "Somehow the tables are not initialized correctly".

       

      As of this writing, I'm using the latest versions of all the plugins

      • Jenkins 2.387.2
      • Code Coverage API Plugin Version 4.4.0
      • jQuery plugin Version 1.12.4-1
      • JQuery3 API Plugin Version 3.6.4-1
      • Cobertura Plugin Version 1.17
      • DataTables.net API Plugin Version 1.13.3-3

            drulli Ulli Hafner
            reddwarf94 Cristian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: