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

PUT /cve-id/:id should throw an error when the value of the state query parameter is PUBLISHED #1036

Closed
slubar opened this issue Feb 22, 2023 · 0 comments
Assignees

Comments

@slubar
Copy link
Contributor

slubar commented Feb 22, 2023

For the endpoint PUT /cve-id/:id, the query parameter 'state' can be used to set a RESERVED cve-id to REJECTED (if there's no corresponding CVE Record) and to set a REJECTED id (without a corresponding rejected CVE record) to RESERVED.

When the 'state' parameter value is 'PUBLISHED', the update should not occur since only POST/PUT /cve should be able to cause ids to be published. Currently, the state change does not happen, but a 200 response is returned indicating that it did happen.

Update modifyCveId to throw an error if the value of the state parameter is 'PUBLISHED'

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