-
Notifications
You must be signed in to change notification settings - Fork 93
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 error in Linux ERR999.UnhandledEngineException
: System.InvalidOperationException
: This operation is not supported for a relative URI.
#2664
Conversation
ReleaseHistory.md
Outdated
@@ -14,6 +14,7 @@ | |||
* BRK: Remove unused `quiet` parameter from `SarifLogger`. [#2639]https://github.com/microsoft/sarif-sdk/pull/2639 | |||
* BRK: Remove `ComputeHashData` and `AnalysisTargetToHashDataMap` properties from `SarifLogger` (in preference of new `fileRegionsCache` parameter. [#2639](https://github.com/microsoft/sarif-sdk/pull/2639) | |||
* BRK: Eliminate proactive hashing of artifacts in `SarifLogger` constructor when `OptionallyEmittedData.Hashes` is specified. [#2639](https://github.com/microsoft/sarif-sdk/pull/2639) | |||
* BUG: Fixed `ERR999.UnhandledEngineException`: `System.InvalidOperationException`: "This operation is not supported for a relative URI" when running in Linux with files skipped due to zero byte size. [#2664](https://github.com/microsoft/sarif-sdk/pull/2664) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put the whole thing from ERR999 to relative URI inside backticks,
ReleaseHistory.md
Outdated
@@ -14,6 +14,7 @@ | |||
* BRK: Remove unused `quiet` parameter from `SarifLogger`. [#2639]https://github.com/microsoft/sarif-sdk/pull/2639 | |||
* BRK: Remove `ComputeHashData` and `AnalysisTargetToHashDataMap` properties from `SarifLogger` (in preference of new `fileRegionsCache` parameter. [#2639](https://github.com/microsoft/sarif-sdk/pull/2639) | |||
* BRK: Eliminate proactive hashing of artifacts in `SarifLogger` constructor when `OptionallyEmittedData.Hashes` is specified. [#2639](https://github.com/microsoft/sarif-sdk/pull/2639) | |||
* BUG: Fixed `ERR999.UnhandledEngineException`: `System.InvalidOperationException`: "This operation is not supported for a relative URI" when running in Linux with files skipped due to zero byte size. [#2664](https://github.com/microsoft/sarif-sdk/pull/2664) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put the whole thing from ERR999 to relative URI inside backticks,
…com/microsoft/sarif-sdk into users/shaopeng-gh/fixlinuxpathissue
Test:
have added the test in BinSkim after this is merged in and sub-module update,
the failing test that repro the issue (microsoft/binskim#884) will pass see below:
Reason:
Below code will output false in Linux, means not absolute Uri.
But I think it is wrong, I don't know if it is .NET bug or not. The url should be a absolute uri.
The place fix is made, if you look at the code above, it is always a Absolute uri before reaching the line. So we don't leave .NET to do the guessing, we just create a Absolute uri.