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-scheduler: 500 errors when invalid value of "created" for http://localhost:59861/api/v3/interval #4655

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-scheduler

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:59861/api/v3/interval
JSON body: (note the created value has really long invalid string)
{
"interval": {
"created":zaZswmJkhAIkIw7f8zFjSlvbv78Ua61Vlgz2JToGRZYo2nXIlKG7ck8ZjoHjudSe95WVwQVDdMuLA7mVRIek7okrHGaaElLXfFzX7zp2buylQGpzQueCmMmi3usHQPXqAwGJNexRcUQyBqTDqbv5PM5bLlylv3S0esWclfYoAahFXvtcgjmJw8r1fGIOzGWjGKWkzbP1vYObDctXhJdg7fk6tnfEdnnUkKo9953I5NjT0amWVIhqo8nwQPIO14gb44wyQAgpsJkT8xJNXNGSb63RmMbynIpfXpIbIWWuhLtrnyQyOTYJ9FHO8R4jARTZqtzyfyNToMUjajQ4YjI7OTJpPrZKxYR946DkDgRYQGVY5Dmth3XbfNMYQOlD7paQR77vuRfaSDAa2bWBpOoOiOEhLLkefqcmbRm73m5icnGlCx3X6cwFxArjexVz2zZgRk62bm5M,
"end": "20221016T200000",
"interval": "100m",
"id": "ec40bf0f-1c22-4c62-9227-1b8dad2f9725",
"modified": 1,
"name": "testinterval01",
"start": "20211016T200000"
},
"requestId": "59429949-eb50-446d-8765-5c2b4f640388",
"apiVersion": "v3"
}

This postman call will produce http status code 500, and message of "invalid character 'z' looking for beginning of value", with this error message, it shouldn't be status code 500, but status code 400.

🔥 Exception or Error

{
"apiVersion": "v3",
"message": "invalid character 'z' looking for beginning of value",
"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
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