Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code scanning alert - Log Injection #879

Closed
1 task
sleberknight opened this issue Jan 30, 2023 · 0 comments · Fixed by #896
Closed
1 task

Fix code scanning alert - Log Injection #879

sleberknight opened this issue Jan 30, 2023 · 0 comments · Fixed by #896
Assignees
Labels
code cleanup Fix issues reported by Sonar or any other code analysis tools
Milestone

Comments

@sleberknight
Copy link
Member

Tracking issue for:

Instead of logging the object, instead log the type of object it is (and handle null appropriately, possibly by requiring the argument be not null). This way the log messages would look like:

"Unable to get property value startDate from object of type Employee"

where startDate is the field name and Employee is the type.

@sleberknight sleberknight added the code cleanup Fix issues reported by Sonar or any other code analysis tools label Jan 30, 2023
@sleberknight sleberknight self-assigned this Jan 31, 2023
@sleberknight sleberknight added this to the 2.5.0 milestone Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Fix issues reported by Sonar or any other code analysis tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant