You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "nick-boss-tech (via GitHub)" <gi...@apache.org> on 2026/10/01 22:17:43 UTC

[PR] SOLR-18129: Keep multi-valued request-handler defaults on the Config API [solr]

nick-boss-tech opened a new pull request, #5000:
URL: https://github.com/apache/solr/pull/5000

   🤖 *AI text below* 🤖 *(posted on behalf of Nick Shanin)*
   
   https://issues.apache.org/jira/browse/SOLR-18129
   
   `update-requesthandler` via the Config API was broken for multi-valued parameters: duplicate JSON keys were silently collapsed (the JSON `ObjectBuilder` kept only the last value) and array-valued `defaults`/`appends`/`invariants` lost their multi-valued form.
   
   `CommandOperation` now parses commands with an accumulating object builder so duplicate JSON keys accumulate into lists, and `normalizeCommandData` keeps `defaults`, `appends`, and `invariants` multi-valued for the `add-`/`update-`/`create-requesthandler` commands. The ref guide's config-api page documents the behavior.
   
   Tests: `TestSolrConfigHandler` create-path and duplicate-default coverage — green with Error Prone.
   
   Changelog: `changelog/unreleased/SOLR-18129.yml` (fixed)
   
   ### AI assistance
   
   AI agents assisted with research, implementation, review, and drafting. Nick Shanin directed the work and takes responsibility for this contribution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org