netwrix / pingcastle

PingCastle - Get Active Directory Security at 80% in 20% of the time
https://www.pingcastle.com
Other
2.35k stars 292 forks source link

Fix Null Reference Bug in Application Permissions Details #230

Closed Raideeen closed 4 months ago

Raideeen commented 6 months ago

Overview

This pull request addresses a bug in the application details view within PingCastle Cloud. Specifically, when clicking on an application in the "All Applications" summary to view more details, the application failed to load further information if any permission data was null. This was traced back to a lack of null handling in the permissionFormatter function. This fix ensures that all details are displayed correctly, even if some permission data is missing or null.

Purpose

The purpose of this PR is to improve the stability and reliability of the application details view by ensuring that null permission data does not interrupt the user's ability to view application details. This change helps maintain a smooth and error-free user experience in the administration console.

Changes Made

Additional Context

Testing and Validation

Feedback Request

I would appreciate a review on the implementation of the null handling in the permissionFormatter function. Additionally, feedback on the user-facing text "N/A" would be valuable—should it perhaps be "Error occurred" or another placeholder? Guidance on this choice would be helpful.

Testing and Validation

How to Validate This Fix

Thank you for reviewing this pull request!

vletoux commented 4 months ago

Thanks for providing this PR and analyzing the problem. I remind that the source code published here is an extract of the private repository so PR management is a challenge. Accepting the PR for crediting.