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-metadata: 500 errors when invalid character in name for http://localhost:59881/api/v3/deviceservice #4658

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

Comments

@vli11
Copy link
Contributor

vli11 commented Aug 24, 2023

🐞 Bug Report

Affected Services [REQUIRED]

core-metadata

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:59881/api/v3/deviceservice
JSON body: (note invalid character in name)
{
"service": {
"name": "D0at>\u000bVA1CM",
"description": "fuzzstring",
"adminState": "LOCKED",
"labels": [
"fuzzstring"
],
"baseAddress": "fuzzstring"
},
"requestId": "d65fffc0-c8c3-4980-a208-9f798bd076a6",
"apiVersion": "v3"
}

This postman call will produce http status code 500, and message of "json: cannot unmarshal object into Go value of type []requests.AddDeviceServiceRequest", with this error message, it shouldn't be status code 500, but status code 400.

🔥 Exception or Error

{
"apiVersion": "v3",
"message": "json: cannot unmarshal object into Go value of type []requests.AddDeviceServiceRequest",
"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
@github-project-automation github-project-automation bot moved this to New Issues in Technical WG Aug 25, 2023
@guyver30
Copy link

sorry for question, but how to launch "make run no-secty ds-virtual" in a docker container already deployed?
As I was going through the walkthrough https://docs.edgexfoundry.org/3.0/walk-through/Ch-WalkthroughDeviceService/ and had the same error as in this thread.

@vli11
Copy link
Contributor Author

vli11 commented Aug 30, 2023

sorry for question, but how to launch "make run no-secty ds-virtual" in a docker container already deployed? As I was going through the walkthrough https://docs.edgexfoundry.org/3.0/walk-through/Ch-WalkthroughDeviceService/ and had the same error as in this thread.

here is the list of steps on your host machine to run that command:

  1. open edgex-compose project
  2. cd compose-builder
  3. make pull
  4. make run no-secty ds-virtual

@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

2 participants