[ 
https://issues.apache.org/jira/browse/SOLR-17862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18018663#comment-18018663
 ] 

David Smiley commented on SOLR-17862:
-------------------------------------

Agreed Christos.

Disclaimer:  I'm not a fan of the config API at all; I've only ever used it 
experimentally.  I'd rather it be disabled by default for security purposes.  
TBH, I'd rather it go away altogether.  There, I've said it; maybe I'm a 
heretic.  I think it's implementation & approach is a large maintenance burden 
for our project, having both code for and conceptually different ways of 
thinking of adding/configuring a component.  I think the concept could have 
been approached differently in a way that considers the maintenance / cognitive 
burden of the feature for both us maintainers, and a user.  For example imagine 
if the API was XML snippet driven that was literally 1:1 with our 
documented/understood config file.

> Config API is not per-collection; applies to all collections using the same 
> configset
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-17862
>                 URL: https://issues.apache.org/jira/browse/SOLR-17862
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Chris M. Hostetter
>            Priority: Major
>
> The "Config API" uses a URL path prefix of 
> {{/api/collections/<<COLLECTION_NAME>>/config}} and [has documentation that 
> says|https://solr.apache.org/guide/solr/latest/configuration-guide/config-api.html]...
> {quote}
> All Config API endpoints are collection-specific, meaning this API can 
> inspect or modify the configuration for a single collection at a time.
> {quote}
> ...but this is a lie.  Using the Config API to modify any aspect of a 
> collection actually modifies the {{configoverlay.json}} in the configset, and 
> impacts all collections using that configset.
> ----
> * The "Config API" should be changed to use some new a URL path prefix that 
> is specific to the name of the configset (Example: 
> {{/api/configset-props/<<CONFIGSET_NAME>>/}}) 
> * The Existing {{/api/collections/<<COLLECTION_NAME>>/config}} URL should be 
> deprecated
> * Documentation should be updated accordingly



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to