Skip to content

Conversation

JuditKnoll
Copy link
Collaborator

In the SARIF report the Exception's message should be string property, not the message object as it is in the Notification. Also, it can be absent, so it's logical to have it as nullable. See the SARIF's specification for Exception's message:

An exception object SHOULD contain a property named message whose value is a string that describes the exception.
If the tool does not have access to an appropriate property of the thrown object, the message property SHALL be absent.

This PR fixes #3197.

@hazendaz hazendaz merged commit 06b18f7 into spotbugs:master Nov 30, 2024
15 checks passed
@JuditKnoll JuditKnoll deleted the sarif-3197 branch December 2, 2024 07:12
@hazendaz hazendaz added this to the SpotBugs 4.9.0 milestone Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect parsing of a message-property in the sarif analysis result
3 participants