sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
207 stars 85 forks source link

Filter by Capture ID does not return any results #449

Closed agrigorjevs closed 3 years ago

agrigorjevs commented 3 years ago

Hello,

When trying to search in WEB messages by Capture ID - it never return any results.

Doesn't matter if the Capture ID is int or string (we are using hep node names instead of numeric ID's on heplify agents).

At the same time if just searching without filter and filtering capture ID on the search result itself (frontend filter) - it works.

Screenshot 2021-10-20 at 13 17 21 Screenshot 2021-10-20 at 13 18 30
github-actions[bot] commented 3 years ago

Your report is appreciated. Please star this repository to motivate its developers! :star:

adubovikov commented 3 years ago

@agrigorjevs unfortunately I couldn't reproduce it in the latest homer-app. Whats version do you use ?

agrigorjevs commented 3 years ago

@adubovikov just did a little bit of testing, so the issue is the following:

Tested with latest version of homer-app and heplify-server.

adubovikov commented 3 years ago

@agrigorjevs I understood. Can you show your mapping for this field ?

also, please upgrade homer-app to 1.4.18

agrigorjevs commented 3 years ago

{ "id": "protocol_header.captureId", "name": "Capture ID", "type": "integer", "index": "none", "form_type": "input", "position": 17, "skip": false, "hide": true }

Changed type to string in mapping and it fixed the issue :) Thanks!

adubovikov commented 3 years ago

you are welcome!