lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cao Manh Dat (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-10408) v2 API introspect should return useful message for non-existent command
Date Fri, 12 May 2017 01:10:04 GMT

     [ https://issues.apache.org/jira/browse/SOLR-10408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Cao Manh Dat updated SOLR-10408:
--------------------------------
    Summary: v2 API introspect should return useful message for non-existent command  (was:
v2 API introspect should fail when filtering for a non-existent command)

> v2 API introspect should return useful message for non-existent command
> -----------------------------------------------------------------------
>
>                 Key: SOLR-10408
>                 URL: https://issues.apache.org/jira/browse/SOLR-10408
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: v2 API
>            Reporter: Steve Rowe
>            Assignee: Cao Manh Dat
>            Priority: Minor
>         Attachments: SOLR-10408.patch
>
>
> Instead of failing, v2 API introspect requests that filter for a non-existent command
succeed and show {{null}} for the command spec.
> E.g., after {{bin/solr start -e cloud -noprompt}}, {{curl "http://localhost:8983/v2/c/gettingstarted/_introspect?method=POST&command=XXXXX&indent=on"}}
returns:
> {noformat}
> {
>   "spec":[{
>       "documentation":"https://cwiki.apache.org/confluence/display/solr/Collections+API",
>       "description":"Several collection-level operations are supported with this endpoint:
modify collection attributes; reload a collection; migrate documents to a different collection;
rebalance collection leaders; balance properties across shards; and add or delete a replica
property.",
>       "methods":["POST"],
>       "url":{"paths":["/collections/{collection}",
>           "/c/{collection}"]},
>       "commands":{"XXXXX":null}}],
>   "WARNING":"This response format is experimental.  It is likely to change in the future.",
>   "availableSubPaths":{ [...] }
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message