Skip to content

Commit 701d16b

Browse files
committed
+ Fixes for Checkmarx findings
1 parent bcf509f commit 701d16b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Client/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ public object CallApi(
453453
}
454454
catch (Exception err)
455455
{
456-
logger.Error($"ApiException : Error writing to path {DownloadResponseFileName}\n{err}");
456+
logger.Error($"ApiException : Error writing to path {DownloadResponseFileName}");
457457
throw new ApiException(-1, $"Error writing to path : {DownloadResponseFileName}");
458458
}
459459
}

Utilities/Flex/TokenVerification/TokenVerificationUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ private static bool ValidateTokenSignature(RSAParameters publicKey, string signe
6060
}
6161
catch (CryptographicException e)
6262
{
63-
logger.Error($"FlexInternalException : Error validating signature\n{e}");
63+
logger.Error($"FlexInternalException : Error validating signature\n{e.Message}");
6464
throw new FlexInternalException("Error validating signature", e);
6565
}
6666
catch (System.Exception e)
6767
{
68-
logger.Error($"FlexInternalException : Error validating signature\n{e}");
68+
logger.Error($"FlexInternalException : Error validating signature\n{e.Message}");
6969
throw new FlexInternalException("Error validating signature", e);
7070
}
7171
finally

cybersource-rest-client-dotnet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ OpenAPI spec version: 0.0.1
6060
<HintPath>packages\NLog.4.5.10\lib\net45\NLog.dll</HintPath>
6161
</Reference>
6262
<Reference Include="RestSharp">
63-
<HintPath>packages\RestSharp.106.5.4\lib\net452\RestSharp.dll</HintPath>
63+
<HintPath>packages\RestSharp.106.12.0\lib\net452\RestSharp.dll</HintPath>
6464
</Reference>
6565
</ItemGroup>
6666
<ItemGroup>

generator/cybersource-csharp-template/ApiClient.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ namespace {{packageName}}.Client
505505
}
506506
catch (Exception err)
507507
{
508-
logger.Error($"ApiException : Error writing to path {DownloadResponseFileName}\n{err}");
508+
logger.Error($"ApiException : Error writing to path {DownloadResponseFileName}");
509509
throw new ApiException(-1, $"Error writing to path : {DownloadResponseFileName}");
510510
}
511511
}

generator/cybersource-csharp-template/Project.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<HintPath>packages\Newtonsoft.Json.11.0.2\lib\{{targetFrameworkNuget}}\Newtonsoft.Json.dll</HintPath>
7979
</Reference>
8080
<Reference Include="RestSharp">
81-
<HintPath>packages\RestSharp.106.5.4\lib\{{targetFrameworkNuget}}2\RestSharp.dll</HintPath>
81+
<HintPath>packages\RestSharp.106.12.0\lib\{{targetFrameworkNuget}}2\RestSharp.dll</HintPath>
8282
</Reference>
8383
{{#generatePropertyChanged}}
8484
<Reference Include="PropertyChanged">

packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
<package id="CyberSource.Authentication" version="0.0.0.10" />
44
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net45" />
55
<package id="NLog" version="4.5.10" targetFramework="net461" />
6-
<package id="RestSharp" version="106.5.4" targetFramework="net452" />
6+
<package id="RestSharp" version="106.12.0" targetFramework="net452" />
77
</packages>

0 commit comments

Comments
 (0)