From e94980268a81c1ae7b20f663263a8ac3cd406c21 Mon Sep 17 00:00:00 2001 From: Shaopeng Li Date: Wed, 3 May 2023 16:46:12 -0700 Subject: [PATCH 1/4] Fix RelativeOrAbsolute --- src/Sarif.Driver/OrderedFileSpecifier.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sarif.Driver/OrderedFileSpecifier.cs b/src/Sarif.Driver/OrderedFileSpecifier.cs index e66a3a163..cc3d36ce0 100644 --- a/src/Sarif.Driver/OrderedFileSpecifier.cs +++ b/src/Sarif.Driver/OrderedFileSpecifier.cs @@ -102,7 +102,7 @@ private IEnumerable EnumeratedArtifacts() Skipped ??= new List(); Skipped.Add(new EnumeratedArtifact(FileSystem) { - Uri = new Uri(fullFilePath, UriKind.RelativeOrAbsolute), + Uri = new Uri(fullFilePath, UriKind.Absolute), }); } else @@ -115,7 +115,7 @@ private IEnumerable EnumeratedArtifacts() { yield return new EnumeratedArtifact(FileSystem) { - Uri = new Uri(file, UriKind.RelativeOrAbsolute), + Uri = new Uri(file, UriKind.Absolute), }; } } From 6014644c95fc2df377f8bec29501e731512a15b1 Mon Sep 17 00:00:00 2001 From: Shaopeng Li Date: Wed, 3 May 2023 19:39:34 -0700 Subject: [PATCH 2/4] Add Release History --- ReleaseHistory.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ReleaseHistory.md b/ReleaseHistory.md index 1d653ba74..75757cc5d 100644 --- a/ReleaseHistory.md +++ b/ReleaseHistory.md @@ -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) From 8f49022f22d36191288693ab48cb0ef83001f1cb Mon Sep 17 00:00:00 2001 From: Shaopeng Li Date: Thu, 4 May 2023 12:02:50 -0700 Subject: [PATCH 3/4] Fix Release History --- ReleaseHistory.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReleaseHistory.md b/ReleaseHistory.md index 75757cc5d..b14a2676d 100644 --- a/ReleaseHistory.md +++ b/ReleaseHistory.md @@ -14,7 +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: 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) From 61906fd38c6dec0767336a028931ad38498f2297 Mon Sep 17 00:00:00 2001 From: Suvam Mukherjee Date: Thu, 4 May 2023 15:05:54 -0400 Subject: [PATCH 4/4] limit Coyote rewriting to Windows only --- .../Test.UnitTests.Sarif.Driver.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Test.UnitTests.Sarif.Driver/Test.UnitTests.Sarif.Driver.csproj b/src/Test.UnitTests.Sarif.Driver/Test.UnitTests.Sarif.Driver.csproj index 3e8251cbd..2539895ae 100644 --- a/src/Test.UnitTests.Sarif.Driver/Test.UnitTests.Sarif.Driver.csproj +++ b/src/Test.UnitTests.Sarif.Driver/Test.UnitTests.Sarif.Driver.csproj @@ -70,7 +70,7 @@ - +