ishiDACo / vulsrepo

VulsRepo is visualized based on the json report output in vuls.
MIT License
31 stars 14 forks source link

VulsRepo - never ending loading #230

Closed pawelrosada closed 3 years ago

pawelrosada commented 3 years ago

VulsRepo version:

ishidaco/vulsrepo        latest              da0c50f1bbbf        5 months ago        26.6MB

VulsRepo logs:

2021/08/26 05:21:37 main.go:202: /
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXA.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXB.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXC.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXD.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXE.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXF.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXG.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXH.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXJ.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXK.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXL.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXM.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXN.json
2021/08/26 05:21:43 main.go:202: /results/results_other/2021-08-25T23:15:37Z/XXXS.json

Vuls version:

vuls/vuls                latest              dc8b12fe5259        3 days ago          76.8MB

Problem: After upgrade vuls to newest version VulsRepo stop working. For now I see never ending loading after chose .json files to load.

image

JS error:

Uncaught TypeError: Cannot read property 'toFixed' of undefined
    at getCvss (vulsrepo.js:1345)
    at String.<anonymous> (vulsrepo.js:1442)
    at Function.each (jquery-3.6.0.min.js:2)
    at Object.<anonymous> (vulsrepo.js:1440)
    at Function.each (jquery-3.6.0.min.js:2)
    at Object.<anonymous> (vulsrepo.js:969)
    at Function.each (jquery-3.6.0.min.js:2)
    at Object.<anonymous> (vulsrepo.js:965)
    at Function.each (jquery-3.6.0.min.js:2)
    at createPivotData (vulsrepo.js:883)
ishiDACo commented 3 years ago

Not compatible with the latest versions of Vuls. I will improve the support for the latest version of Vuls.

Please use Vuls 0.15.13 or earlier until it is supported.

ishiDACo commented 3 years ago

Added support for not causing errors. However, if multiple cveContent exist, only the first one will be displayed.