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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
