You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Justin Leet (JIRA)" <ji...@apache.org> on 2018/05/22 19:35:07 UTC

[jira] [Updated] (METRON-1497) Rest endpoint '/api/v1/search/search' needs to handle null when elastic search response return null for getAggregations

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

Justin Leet updated METRON-1497:
--------------------------------
    Fix Version/s: 0.5.0

> 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
>             Fix For: 0.5.0
>
>
> /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)