[jira] [Commented] (SOLR-12482) 'bin/solr config' claims success for failed operations

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (SOLR-12482) 'bin/solr config' claims success for failed operations

JIRA jira@apache.org

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

Steve Rowe commented on SOLR-12482:

Just realized that the problem here is not directly {{bin/solr config}}, but rather the {{"status":0}} returned by the Config API on failure.  I'll change the issue title.

> 'bin/solr config' claims success for failed operations
> ------------------------------------------------------
>                 Key: SOLR-12482
>                 URL: https://issues.apache.org/jira/browse/SOLR-12482
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public)
>            Reporter: Steve Rowe
>            Priority: Major
> For example, after running {{bin/solr start -c}} and {{bin/solr create -c mycoll}}:
> {noformat}
> $PROMPT$ bin/solr config -c mycoll -z localhost:9983 -property FOOBAR -value BAZ
> [...]
> POSTing request to Config API:
> {"set-property":{"FOOBAR":"BAZ"}}
> Successfully set-property FOOBAR to BAZ
> {noformat}
> But the {{FOOBAR}} property cannot be set via {{set-property}}, because it is not on the editable properties whitelist in {{EditableSolrConfigAttributes.json}}.
> This is evident from the direct Config API call:
> {noformat}
> PROMPT$ curl -X POST -d '{set-property:{FOOBAR:BAZ}}'
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":1},
>   "errorMessages":[{
>       "set-property":{"FOOBAR":"BAZ"},
>       "errorMessages":["'FOOBAR' is not an editable property"]}],
>   "WARNING":"This response format is experimental.  It is likely to change in the future."}
> {noformat}

This message was sent by Atlassian JIRA

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