Skip to content

Commit a6646f8

Browse files
authored
Merge main branch and resolved the security issue (#29)
1 parent 068c225 commit a6646f8

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

source/AAS.TwinEngine.Plugin.RelationalDatabase.UnitTests/ApplicationLogic/Extensions/Base64UrlExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void DecodeBase64_ShouldThrowAndLog_OnInvalidBase64Url(string encoded)
5050
string act() => Base64UrlExtensions.DecodeBase64(encoded, logger);
5151

5252
Assert.Throws<InvalidUserInputException>((Func<string>)act);
53-
AssertLogErrorCalled(logger, expectedMessageContains: "Failed to decode Base64 URL string");
53+
AssertLogErrorCalled(logger, expectedMessageContains: "Failed to decode input Base64 URL string");
5454
}
5555

5656
[Theory]

source/AAS.TwinEngine.Plugin.RelationalDatabase/AAS.TwinEngine.Plugin.RelationalDatabase.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
<PackageReference Include="Asp.Versioning.Mvc" Version="8.1.0" />
2323
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
2424
<PackageReference Include="JsonSchema.Net" Version="7.4.0" />
25-
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.3" />
2625
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.2" />
27-
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
2826
<PackageReference Include="Npgsql" Version="10.0.1" />
2927
<PackageReference Include="NSwag.AspNetCore" Version="14.2.0" />
3028
<PackageReference Include="OpenTelemetry" Version="1.14.0" />

source/AAS.TwinEngine.Plugin.RelationalDatabase/ApplicationLogic/Extensions/Base64UrlExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static string DecodeBase64(this string encoded, ILogger? logger = null)
4040
}
4141
catch (Exception ex)
4242
{
43-
logger?.LogError(ex, "Failed to decode Base64 URL string: {Encoded}", encoded);
43+
logger?.LogError(ex, "Failed to decode input Base64 URL string.");
4444
throw new InvalidUserInputException();
4545
}
4646
}

0 commit comments

Comments
 (0)