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 error in Linux ERR999.UnhandledEngineException : System.InvalidOperationException: This operation is not supported for a relative URI. #2664

Merged
merged 6 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ReleaseHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
* BUG: Properly report skipping empty files (rather than reporting file was skipped due to exceeding size limits). [#2660](https://github.com/microsoft/sarif-sdk/pull/2660)
* BUG: Update user messages and code comments that refer to `--force` (replaced by `--log ForceOverwrite`). [#2656](https://github.com/microsoft/sarif-sdk/pull/2656)
* BUG: Handle return code 422 `UnprocessableEntity` when validating that log file POST endpoint is available. [#2656](https://github.com/microsoft/sarif-sdk/pull/2656)
Expand Down
4 changes: 2 additions & 2 deletions src/Sarif.Driver/OrderedFileSpecifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private IEnumerable<IEnumeratedArtifact> EnumeratedArtifacts()
Skipped ??= new List<IEnumeratedArtifact>();
Skipped.Add(new EnumeratedArtifact(FileSystem)
{
Uri = new Uri(fullFilePath, UriKind.RelativeOrAbsolute),
Uri = new Uri(fullFilePath, UriKind.Absolute),
});
}
else
Expand All @@ -115,7 +115,7 @@ private IEnumerable<IEnumeratedArtifact> EnumeratedArtifacts()
{
yield return new EnumeratedArtifact(FileSystem)
{
Uri = new Uri(file, UriKind.RelativeOrAbsolute),
Uri = new Uri(file, UriKind.Absolute),
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</EmbeddedResource>
</ItemGroup>

<Target Name="CoyoteRewriting" AfterTargets="AfterBuild">
<Target Name="CoyoteRewriting" AfterTargets="AfterBuild" Condition=" '$(OS)'=='Windows_NT' ">
<Exec Command="$(ExecCommand)" />
</Target>
</Project>