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
There are more mandatory fields required than showed in Swagger #3121
Comments
@vidhan13j07 could you check again in |
@valentijnscholten I can have this validated. |
@vira-vira Hi, could you give us more details about how to reproduce this error? |
…(Active and verified are required as well)
* Solve for issue#3121 * Solve for issue#3121, revert unnecessary changes * Solve for issue#3121, without changing model.py * Solve for issue#3121, also fix the conflict issue by revert unnecessary changes.. * Fix issue #3121 with necessary field for findings POST API (Active and verified are required as well) Co-authored-by: Michael Chen <michaelchen@Michaels-MBP.attlocal.net> Co-authored-by: Michael Chen <michaelchen@Michaels-MacBook-Pro.local>
merged into dev / 2.2.0 |
The fix turned out to be incomplete, see for example #5019 |
In /import-scan/, environment variable is not marked as required in swagger, but results in 500 errors when using the netsparker import test_type without it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Attempted to
Create a new issue in Defect Dojo through API v2 using the minimal parameters marked as mandatory in the documentation. We use a POST Request with the endpoint /findings/
Documentation:
http://127.0.0.1:8080/api/v2/doc/
Screenshots of Swagger:
In Swagger, it shows that the minimum mandatory fields required for a POST Request in /findings are:
The expected behavior was
A 201 Created with a JSON response as stated in the docs.
We Got
500 Error
. In the server logs there is this traceback: ![image](https://user-images.githubusercontent.com/32620981/97574556-2b91dd80-19ca-11eb-9b0a-33c3c27bac49.png)Workaround
We created POST request with the following parameters:
The text was updated successfully, but these errors were encountered: