Skip to content

Commit

Permalink
SOLR-17617: Add missing Inject to CollectionProperty and InstallCoreData
Browse files Browse the repository at this point in the history
  • Loading branch information
colvinco committed Jan 10, 2025
1 parent 1425e0e commit ab49b04
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ Bug Fixes
* SOLR-17587: Metrics: wt=prometheus fix for non-compliant exposition format containing duplicate TYPE lines.
(Matthew Biscocho via David Smiley)

* SOLR-17617: Fix v2 CollectionPropertyApi and InstallCoreDataApi. (Colvin Cowie)

Dependency Upgrades
---------------------
* SOLR-17471: Upgrade Lucene to 9.12.1. (Pierre Salagnac, Christine Poerschke)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import static org.apache.solr.security.PermissionNameProvider.Name.COLL_EDIT_PERM;

import java.io.IOException;

import jakarta.inject.Inject;
import org.apache.solr.client.api.endpoint.CollectionPropertyApi;
import org.apache.solr.client.api.model.SolrJerseyResponse;
import org.apache.solr.client.api.model.UpdateCollectionPropertyRequestBody;
Expand All @@ -38,6 +40,7 @@
*/
public class CollectionProperty extends AdminAPIBase implements CollectionPropertyApi {

@Inject
public CollectionProperty(
CoreContainer coreContainer,
SolrQueryRequest solrQueryRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import static org.apache.solr.security.PermissionNameProvider.Name.CORE_EDIT_PERM;

import java.net.URI;

import jakarta.inject.Inject;
import org.apache.solr.client.api.endpoint.InstallCoreDataApi;
import org.apache.solr.client.api.model.InstallCoreDataRequestBody;
import org.apache.solr.client.api.model.SolrJerseyResponse;
Expand All @@ -43,6 +45,7 @@
*/
public class InstallCoreData extends CoreAdminAPIBase implements InstallCoreDataApi {

@Inject
public InstallCoreData(
CoreContainer coreContainer,
CoreAdminHandler.CoreAdminAsyncTracker coreAdminAsyncTracker,
Expand Down

0 comments on commit ab49b04

Please sign in to comment.