-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live query API returns 500 error when query_id
not included
#11901
Comments
This bug has aged out. Moving back to drafting. |
Bug has aged out. Moved back to drafting |
Bug has aged out. Moved back to drafting |
Bug has aged out. Moving back to product drafting. |
@sharon-fdm This looks like a quick fix, as well. Let's advocate for getting this prioritized into the next release since it's an easy win. I think the challenge here is that not all 1's are equal (some are 30 minutes, some are 4 hours...) |
CC @noahtalerman same here. |
Fixes to /fleet/queries/run endpoint: - now returns 403 for an unauthorized user - now returns 400 when query_ids or host_ids are not specified #11446 and #11901 # Checklist for submitter If some of the following don't apply, delete the relevant line. API clarifications are in a separate PR #14956 - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
Error five hundred, |
Fleet version: Fleet 0.0.0-SNAPSHOT-301840a
π§βπ» Β Expected behavior
When sending an API request with missing information in the request body, I would expect to see a 400 error.
π₯ Β Actual behavior
When sending a request to the live query endpoint with an empty array for
query_ids
, I receive a 500 error.π£ Reproduction steps
Request URL:
{{host}}/api/{{api_version}}/fleet/queries/run
Request Body:
Response:
The text was updated successfully, but these errors were encountered: