You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the POST /api/cve/:id/cna endpoint, setting the description lang to "eng" causes a 500 error. Update this, and all other 500 errors being thrown for failing validation to 400 "bad input" errors. If possible, return additional failure information from the validator
Sample JSON for the container to use for testing:
{"cnaContainer" : {
"descriptions" : [ { "lang" : "eng", "value" : "One more CVE Services test CVE Record post." } ],
"affected" : [ { "versions" : [ { "version" : "1.1.0", "status" : "affected" } ],
"product" : "CVE Services product number two", "vendor" : "MITRE" } ],
"references" : [ { "url" : "http://mitre.org" } ],
"providerMetadata" : { "orgId" : "466e066c-d384-4b8a-8b15-067d9c22c5af",
"shortName" : "mitre",
"dateUpdated" : "2022-04-28T21:30:13.057Z"
}
}}
The text was updated successfully, but these errors were encountered:
For the POST /api/cve/:id/cna endpoint, setting the description lang to "eng" causes a 500 error. Update this, and all other 500 errors being thrown for failing validation to 400 "bad input" errors. If possible, return additional failure information from the validator
Sample JSON for the container to use for testing:
{"cnaContainer" : {
"descriptions" : [ { "lang" : "eng", "value" : "One more CVE Services test CVE Record post." } ],
"affected" : [ { "versions" : [ { "version" : "1.1.0", "status" : "affected" } ],
"product" : "CVE Services product number two", "vendor" : "MITRE" } ],
"references" : [ { "url" : "http://mitre.org" } ],
"providerMetadata" : { "orgId" : "466e066c-d384-4b8a-8b15-067d9c22c5af",
"shortName" : "mitre",
"dateUpdated" : "2022-04-28T21:30:13.057Z"
}
}}
The text was updated successfully, but these errors were encountered: