Skip to content
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

Wrong body parse in PUT /active-response endpoint using Dev Tools #3457

Closed
vicferpoy opened this issue Jul 9, 2021 · 0 comments
Closed

Wrong body parse in PUT /active-response endpoint using Dev Tools #3457

vicferpoy opened this issue Jul 9, 2021 · 0 comments
Assignees
Labels
type/bug Bug issue

Comments

@vicferpoy
Copy link

Wazuh
4.1.5

Description
PUT /active-response JSON body does not match specification when using Dev Tools.

Steps to reproduce

  1. Go to Dev Tools (Kibana).
  2. Try to use the PUT /active-response endpoint adding arguments to the JSON body.
  3. See how the error reported in the response does not match.
  4. Check the api.log and confirm that the JSON is different from the one introduced in the Dev Tools.

Screenshots

  1. Dev Tools using a list of arguments.
    image

  2. api.log showing that the Wazuh API received a string instead of the list.
    image

Additional context

This was tested using the wazuh-docker environment with v4.1.5.

Regards,
Víctor

@vicferpoy vicferpoy added the type/bug Bug issue label Jul 9, 2021
@vicferpoy vicferpoy changed the title Wrong parameter parse in PUT /active-response endpoint using Dev Tools Wrong body parse in PUT /active-response endpoint using Dev Tools Jul 9, 2021
@sortiz1191 sortiz1191 self-assigned this Jul 12, 2021
@sortiz1191 sortiz1191 added the 4.3 label Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
None yet
Development

No branches or pull requests

3 participants