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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzzing core-data: 500 errors when invalid apiVersion in body for http://localhost:59880/api/v3/event/fuzzstring/fuzzstring/fuzzstring/fuzzstring #4647

Open
vli11 opened this issue Aug 22, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@vli11
Copy link
Contributor

vli11 commented Aug 22, 2023

馃悶 Bug Report

Affected Services [REQUIRED]

core-data

Is this a regression?

no

Description and Minimal Reproduction [REQUIRED]

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

On postman:
POST http://localhost:59880/api/v3/event/fuzzstring/fuzzstring/fuzzstring/fuzzstring
body (make sure the apiVersion has invalid character such as "\u"):

{
"event": {
"apiVersion": "\u",
"id": "c4e494c2-360d-4b64-8f7c-dc8e786d5671",
"deviceName": "fuzzstring",
"profileName": "fuzzstring",
"sourceName": "fuzzstring",
"origin": 1676764764676476767,
"readings": [
{
"fuzz": false
}
],
"tags": {
"Gateway-id": "HoustonStore-000123",
"latitude": {
"degrees": "25.0",
"minute": "1.0",
"second": "26.6268000000062"
},
"longitude": {
"degree": "121.0",
"minute": "31.0",
"second": "19.600799999980154"
}
}
},
"requestId": "751a94d4-8374-42d4-aeab-414171d6419f",
"apiVersion": "v3"
}

This postman call will produce http status code 500, and message of "invalid character '"' in \u hexadecimal character escape", with this error message, it shouldn't be status code 500, but status code 400.

馃敟 Exception or Error

{
"apiVersion": "v3",
"message": "invalid character '"' in \u hexadecimal character escape",
"statusCode": 500
}

馃實 Your Environment

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

EdgeX Version [REQUIRED]:
3.1

Anything else relevant?

@vli11 vli11 added the bug Something isn't working label Aug 22, 2023
@vli11 vli11 added this to the Napa milestone Aug 22, 2023
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
Status: Icebox
Development

No branches or pull requests

1 participant