You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… zero (#30337) (#30338)
### Proposed Changes
* To avoid division by zero in the LargeFileReader class, you should add
a check before performing any division operation. In this class, the
division operation is performed when calculating the progressPercentage.
### Additional Info
Related to #30337 (Sonar Quality Gate failure due to potential division
by zero).
… zero (#30337) (#30338)
### Proposed Changes
* To avoid division by zero in the LargeFileReader class, you should add
a check before performing any division operation. In this class, the
division operation is performed when calculating the progressPercentage.
### Additional Info
Related to #30337 (Sonar Quality Gate failure due to potential division
by zero).
Parent Issue
No parent issue identified.
Problem Statement
The Sonar Quality Gate is failing due to uncovered code that could potentially lead to a division by zero. The specific issue reported by Sonar is:
This issue poses a risk of runtime errors and must be addressed to pass the Quality Gate and ensure code stability.
Steps to Reproduce
totalCount
occurs.Acceptance Criteria
totalCount
is properly validated and cannot be zero before performing the division.dotCMS Version
Not applicable.
Proposed Objective
Quality Assurance
Proposed Priority
Priority 1 - Show Stopper
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No external links provided.
Assumptions & Initiation Needs
totalCount
occurs and ensure it is properly protected against a division by zero.Quality Assurance Notes & Workarounds
No workaround is available. The code must be updated to handle this potential division by zero.
Sub-Tasks & Estimates
totalCount
is not zero before performing the division.The text was updated successfully, but these errors were encountered: