Filters using numbers as strings
Dear DefectDojo Team,
I hope this message finds you well. I wanted to bring to your attention a bug that I encountered while using the DefectDojo open source program. This bug pertains to the incorrect sorting of vulnerabilities listed under the product filters.
Bug Description: When sorting the vulnerabilities in ascending or descending order, the program treats the number of vulnerabilities as text instead of an integer. As a result, the sorting functionality does not display the correct order of vulnerabilities.
Steps to Reproduce:
Version: v. 2.22.2 Log in to the DefectDojo program. Go to the "Product" section. Apply sorting in ascending or descending order based on the number of vulnerabilities. Observe that the sorting does not display the correct order. Expected Behavior: The program should interpret the number of vulnerabilities as an integer and display the correct sorting order when applying ascending or descending sorting in the product filters.
Actual Behavior: The program treats the number of vulnerabilities as text, leading to incorrect sorting of the vulnerabilities when applying ascending or descending sorting in the product filters.
I attach you a example:
Additional Information:
I have encountered this issue consistently on the latest version of DefectDojo. This bug affects the usability of the program, as it hampers efficient vulnerability management. Please let me know if you require any further information or if there is anything else I can do to assist in resolving this bug. DefectDojo is a valuable tool, and I appreciate the effort put into maintaining and improving it.
Thank you for your attention to this matter. I look forward to hearing from you and seeing this bug resolved in a future update.
Best regards,Samuel
Hey, I would like to take this issue. Do you have any other examples where you found an incorrect sorting? I'm willing to fix them as well.
https://github.com/DefectDojo/django-DefectDojo/issues/6629