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
In case when user sends broken body for /artifacts/{parentId} endpoint(for example valid file without "artifacts" key) he get 201 status code(success)
Also, if user sends invalid parentId he can't see that something wrong with parentId
Step to reproduce
Steps to reproduce the behavior:
Create request to /artifacts/{parentId}
In body don't use "artifacts" key in formdata
Use wrong parentId(optionally)
Send request
Expected behavior
422 status code with "There are no files to upload" message(body without "artifacts" key)
422 status code with "There is no appropriate policy or policy is not in DRAFT status" message(invalid parentId)
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Problem description
In case when user sends broken body for /artifacts/{parentId} endpoint(for example valid file without "artifacts" key) he get 201 status code(success)
Also, if user sends invalid parentId he can't see that something wrong with parentId
Step to reproduce
Steps to reproduce the behavior:
Expected behavior
422 status code with "There are no files to upload" message(body without "artifacts" key)
422 status code with "There is no appropriate policy or policy is not in DRAFT status" message(invalid parentId)
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: