SOLR-18343: Require explicit HTTP methods for admin requests #4861
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.35) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 167 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.307
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4861"
general
weight: 0.35
zhangxinyao88
https://issues.apache.org/jira/browse/SOLR-18343
Description
SolrJ's multi-action admin request classes currently default to GET, including requests that modify server state.
Solution
This adds constructors that require an HTTP method and updates the Collection, Core, and ConfigSet admin requests to choose GET or POST explicitly. The existing GET-defaulting constructors remain available but are deprecated for compatibility.
Read-only requests use GET. Other admin actions use POST.
I used an AI coding assistant to audit the constructor call sites, make the mechanical edits, and run validation. I reviewed the final diff and the method chosen for each action.
Tests
./gradlew tidy:solr:core:ecjLintTest:solr:solrj:checkThe full
./gradlew check -x testreached the Antora documentation build, which failed because the local checkout path contains spaces.Checklist
main../gradlew check.