Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1497

Rest endpoint '/api/v1/search/search' needs to handle null when elastic search response return null for getAggregations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.5.0
    • None

    Description

      /api/v1/search/search throws null pointer exception as below when you have fresh deployment with no indices created .

      {
        "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"
      }
      

      below is the pay load

      {
          "indices": [],
          "query": "*",
          "from": 0,
          "size": 10,
          "sort": [
            {
              "field": "timestamp",
              "sortOrder": "desc"
            }
          ],
          "facetFields": []
          }
      

      Attachments

        Issue Links

          Activity

            People

              mohandv Mohan Venkateshaiah
              mohandv Mohan Venkateshaiah
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: