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

Can RESTler detect other status codes than 500? #892

Open
henning410 opened this issue May 23, 2024 · 1 comment
Open

Can RESTler detect other status codes than 500? #892

henning410 opened this issue May 23, 2024 · 1 comment

Comments

@henning410
Copy link

henning410 commented May 23, 2024

Description

I have some test API with endpoint GET /testStatusCode. In the OAS is defined, that this endpoint will return 200 or 400 status code. Instead, I implemented my API to always return 403. Other fuzzers can detect this difference between real status code and specified status code as bug. What about RESTler? Is this possible?

Thanks for your great work so far :)

@SilvanD
Copy link

SilvanD commented May 23, 2024

I believe there's no looking for difference between OAS and real answers (since I don't see any reference to response codes in compilation results), but you can detect specified codes with "custom_bug_codes" in user settings file. At least that's what I do in my project detecting both 200 and 5** codes.

Please refer to: https://github.com/microsoft/restler-fuzzer/blob/main/docs/user-guide/SettingsFile.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants