[
https://issues.apache.org/jira/browse/METRON-1497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mohan updated METRON-1497:
--------------------------
Summary: Rest endpoint '/api/v1/search/search' needs to handle null when
elastic search response return null for getAggregations (was:
/api/v1/search/search needs to handle null when elastic search response return
null for getAggregations)
> Rest endpoint '/api/v1/search/search' needs to handle null when elastic
> search response return null for getAggregations
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: METRON-1497
> URL: https://issues.apache.org/jira/browse/METRON-1497
> Project: Metron
> Issue Type: Bug
> Reporter: Mohan
> Assignee: Mohan
> Priority: Major
>
> /api/v1/search/search throws null pointer exception as below when you have
> fresh deployment with no indices created .
> {code:java}
> {
> "timestamp": "2018-03-19 11:42:11",
> "status": 500,
> "error": "Internal Server Error",
> "exception": "java.lang.NullPointerException",
> "message": "No message available",
> "path": "/api/v1/search/search"
> }
> {code}
> below is the pay load
> {code:java}
> {
> "indices": [],
> "query": "*",
> "from": 0,
> "size": 10,
> "sort": [
> {
> "field": "timestamp",
> "sortOrder": "desc"
> }
> ],
> "facetFields": []
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)