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

Fuzzing core-command: 500 errors when invalid input in body http://localhost:59882/api/v3/device/name/Random-Boolean-Device/Bool #4639

Closed
vli11 opened this issue Aug 16, 2023 · 0 comments · Fixed by #4640
Assignees
Labels
bug Something isn't working

Comments

@vli11
Copy link
Contributor

vli11 commented Aug 16, 2023

🐞 Bug Report

Affected Services [REQUIRED]

core-command

Is this a regression?

No

Description and Minimal Reproduction [REQUIRED]

  1. use compose-builder command make run no-secty ds-virtual to bring up EdgeX system

  2. on edgex-go:
    - make docker-fuzz
    - make fuzz-test-command to run fuzzing test on core-command
    You will see checker_500 error logs in folder "/edgex-go/fuzz_test/fuzz_results/core-command/FuzzLean/RestlerResults/experiment113/bug_buckets"

  3. Or you can reproduce this problem using postman:
    PUT http://localhost:59882/api/v3/device/name/Random-Boolean-Device/Bool
    raw JSON "false" into the body

🔥 Exception or Error

http status code 500

Postman error:
{
"apiVersion": "v3",
"message": "failed to parse request body",
"statusCode": 500
}

🌍 Your Environment

Deployment Environment:

EdgeX Version [REQUIRED]:
3.1.0 or v3

Anything else relevant?

@vli11 vli11 added the bug Something isn't working label Aug 16, 2023
@vli11 vli11 self-assigned this Aug 16, 2023
vli11 added a commit to vli11/edgex-go that referenced this issue Aug 16, 2023
fixed fuzzing core-command http error 500 when invalid input in body http://localhost:59882/api/v3/device/name/Random-Boolean-Device/Bool

Closes: edgexfoundry#4639
Signed-off-by: Valina Li <valina.li@intel.com>
vli11 added a commit to vli11/edgex-go that referenced this issue Aug 16, 2023
fixed fuzzing core-command http error 500 when invalid input in body http://localhost:59882/api/v3/device/name/Random-Boolean-Device/Bool

Closes: edgexfoundry#4639
Signed-off-by: Valina Li <valina.li@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant