Skip to content

[7.x] fix 400 error on initial signals search (#70618)#70662

Merged
yctercero merged 1 commit intoelastic:7.xfrom
yctercero:backport/7.x/pr-70618
Jul 3, 2020
Merged

[7.x] fix 400 error on initial signals search (#70618)#70662
yctercero merged 1 commit intoelastic:7.xfrom
yctercero:backport/7.x/pr-70618

Conversation

@yctercero
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

### Summary

On initial render of the SIEM pages, a 400 error was showing for POST http://localhost:5601/api/detection_engine/signals/search. This PR is a temporary fix for this bug. This initial call is being used to populate the Last alert text that shows at the top of a number of the pages. The reason the size was 0 is because we weren't interested in the signals themselves, just the timestamp of the last alert. Teamed up with @XavierM and it seems to us that the issue is the server side validation. It may be Hapi misreading the 0 as false or our updated validation not accepting size 0.
@yctercero yctercero added the backport This PR is a backport of another PR label Jul 2, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@yctercero yctercero merged commit 3385545 into elastic:7.x Jul 3, 2020
@yctercero yctercero deleted the backport/7.x/pr-70618 branch October 14, 2020 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants