Repository navigation
Conversation
|
Review TL/DR: Review Details:
|
PUT /api/cores/coreName/replication used UPDATE_PERM, the generic document-indexing permission, instead of CORE_EDIT_PERM used by every other mutating core-admin v2 API (ReloadCore, RenameCore, UnloadCore, etc). A client granted only 'update' could toggle replication without core-admin rights, while 'core-admin-edit' alone wouldn't suffice. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RP73fkX7r2Si2w3VejPfxv
|
okay, it looks like in v1 we used the wrong perms for this api! UPDATE_PERM is for idexing documents.. CORE_EDIT_PERM is for modifying a core. And enalbing/disable is a core dit, not a document update... |
https://issues.apache.org/jira/browse/SOLR-16398
Description
Add V2 JAX-RS API to enable or disable replication
Solution
Used Cursor for approach & design. Code is fully vetted by Jalaz Kumar.
Tests
-CoreReplicationAPITest
Checklist
Please review the following and check all that apply:
mainbranch../gradlew check.