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

Bug: Silent SARIF file merge failure when a text properly is emply/blank #2848

Open
davewichers opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@davewichers
Copy link

This is related to the situation I ran into in issue #2847, where it reports:

Required property 'text' not found in JSON. Path 'runs[0].results[0].codeFlows[0].threadFlows[0].locations[0].location.physicalLocation.region.snippet.rendered', line 101, position 44.

for a SARIF file I'm dealing with. In my case I have two such SARIF files and I'm trying to merge them together. So, I went in and manually edited both to fix them, by adding a property:

"text": "" where the missing text property was needed.

I then reran validate and they both 'pass' validation.

However, when I try to merge these two SARIF files together, it silently fails by effectively only including most of the 1st SARIF file into the resulting merge file but not the second.

To 'fix' this I had to edit them again with something like this:

"text": "dontcare" where the missing text property was needed.

I then reran the merge and it seemed to work.

So, can you either:

  1. Ideally: make it work properly, even when a property value is empty, or
  2. At least: generate an error, and don't do the merge, because it fails, and describe the problem.
@davewichers davewichers changed the title Bug: Silent merge failure when a text properly is emply/blank Bug: Silent SARIF file merge failure when a text properly is emply/blank Jan 13, 2025
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

No branches or pull requests

1 participant