We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cve-services/src/middleware/middleware.js
Lines 443 to 447 in 97b00ab
curl -g -X PUT \ -H "CVE-API-ORG: ..." \ -H "CVE-API-USER: ..." \ -H "CVE-API-KEY: ..." \ 'https://cveawg-test.mitre.org/api/org/Mickey%20Mouse/user/minnie?active_roles.add[a]=b'
results in:
{"error":"BAD_INPUT","message":"Parameters were invalid","details":[{"msg":"val.includes is not a function"
Another example is a PUT of:
https://cveawg-test.mitre.org/api/org/Mickey%20Mouse/user/minnie?active_roles.add[500]=ADMIN
which fails with:
even though an analogous request with a smaller array index succeeds:
https://cveawg-test.mitre.org/api/org/Mickey%20Mouse/user/minnie?active_roles.add[5]=ADMIN
"message":"minnie was successfully updated." ... "authority":{"active_roles":["ADMIN"]}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
cve-services/src/middleware/middleware.js
Lines 443 to 447 in 97b00ab
There is currently no guarantee that val is a string when this is called. For example, val may be an object such that val.includes is not defined:
results in:
Another example is a PUT of:
which fails with:
even though an analogous request with a smaller array index succeeds:
The text was updated successfully, but these errors were encountered: