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

Munendra S N commented on SOLR-13827:
-------------------------------------

[^SOLR-13827.patch]

 This includes
* Changes to fail on unknown operation type
* Fix error message in case of delete params so that it includes the parameter 
name

I haven't handled unsupported HTTP method because both v1 API and V2 API behave 
differently in this case. For example, 
This V1 API behaves similar to GET request parameters
{code:java}
curl -X DELETE "http://localhost:8983/solr/coll1/config/params";
{code}
 
but returns different result with V2 API
{code:java}
curl -X DELETE "http://localhost:8983/api/c/coll1/config/params";
{code}

I think this is not specific to one API. So, might require separate issue for 
this. Also, Changing the issue to type bug

[~noble.paul]
A quick question(not related to this issue)
As I was looking into this API, I checked implicit API definitions. From solr 
7, {{wt=json}} is default. So, should we remove wt=json from {{defaults}} of 
the implicit API?

> Fail on Unknown operation in Request Parameters API
> ---------------------------------------------------
>
>                 Key: SOLR-13827
>                 URL: https://issues.apache.org/jira/browse/SOLR-13827
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: config-api
>            Reporter: Munendra S N
>            Assignee: Munendra S N
>            Priority: Minor
>         Attachments: SOLR-13827.patch
>
>
> Request Parameters API supports set, update and delete operations. For any 
> other operation, The API should fail and return error.
> Currently, for unknown operation API returns 200 status
> The config/overlay API fails on unknown operations



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to