Skip to content

Commit

Permalink
[Snyk] Security upgrade Kentico.Xperience.Libraries from 13.0.73 to 1…
Browse files Browse the repository at this point in the history
…3.0.137 (#35)

* fix: src/Kentico.Xperience.AlgoliaSearch.csproj to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DOTNET-MICROSOFTIDENTITYMODELJSONWEBTOKENS-6148656
- https://snyk.io/vuln/SNYK-DOTNET-SYSTEMDATASQLCLIENT-6149433
- https://snyk.io/vuln/SNYK-DOTNET-SYSTEMIDENTITYMODELTOKENSJWT-6148655

* fix(AlgoliaClient): manually clear and update data instead of replace

* update(tests): project version

---------

Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: bkapustik <[email protected]>
  • Loading branch information
3 people authored Jun 3, 2024
1 parent 785ec8f commit 955aba1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Kentico.Xperience.AlgoliaSearch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<ItemGroup>
<PackageReference Include="Algolia.Search" Version="6.13.0" />
<PackageReference Include="Kentico.Xperience.Libraries" Version="13.0.73" />
<PackageReference Include="Kentico.Xperience.Libraries" Version="13.0.137" />
<PackageReference Include="Microsoft.AspNetCore.Html.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.ViewFeatures" Version="2.2.0" />
Expand Down
3 changes: 2 additions & 1 deletion src/Services/Implementations/DefaultAlgoliaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ public void Rebuild(string indexName)
var dataToUpsert = new List<JObject>();
indexedNodes.ForEach(node => dataToUpsert.AddRange(GetDataToUpsert(new AlgoliaQueueItem(node, AlgoliaTaskType.CREATE, algoliaIndex.IndexName))));
var searchIndex = algoliaIndexService.InitializeIndex(algoliaIndex.IndexName);
searchIndex.ReplaceAllObjects(dataToUpsert);
searchIndex.ClearObjects();
searchIndex.SaveObjects(dataToUpsert);
}


Expand Down
2 changes: 1 addition & 1 deletion tests/Kentico.Xperience.AlgoliaSearch.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" Version="1.2.0" />
<PackageReference Include="Kentico.Xperience.Libraries.Tests" Version="13.0.73" />
<PackageReference Include="Kentico.Xperience.Libraries.Tests" Version="13.0.137" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
<PackageReference Include="NSubstitute" Version="4.3.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
Expand Down

0 comments on commit 955aba1

Please sign in to comment.