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 support-notification: 500 errors when invalid charactor in Name for http://localhost:59860/api/v3/subscription #4654

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

Comments

@vli11
Copy link
Contributor

vli11 commented Aug 24, 2023

🐞 Bug Report

Affected Services [REQUIRED]

support-notification

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:59860/api/v3/subscription
JSON body: (note: name has value of "\u")

{
"subscription": {
"name": "\u",
"channels": [
{
"type": "REST",
"host": "fuzzstring",
"port": 1,
"path": "fuzzstring",
"httpMethod": "fuzzstring"
}
],
"categories": [
"fuzzstring"
],
"labels": [
"fuzzstring"
],
"description": "fuzzstring",
"receiver": "fuzzstring",
"resendLimit": 1,
"resendInterval": "fuzzstring",
"adminState": "LOCKED"
},
"requestId": "3a4cd2dd-8b9e-4b5b-a079-5048a78ef371",
"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 24, 2023
@vli11 vli11 added this to the Napa milestone Aug 24, 2023
@lenny-goodell lenny-goodell moved this to New Issues in Technical WG Aug 25, 2023
@jumpingliu jumpingliu moved this from New Issues to Icebox in Technical WG Oct 25, 2023
@jumpingliu jumpingliu moved this from Icebox to Release Backlog in Technical WG Dec 13, 2023
@jumpingliu jumpingliu moved this from Release Backlog to Icebox in Technical WG Feb 21, 2024
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