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

fix: Error when CreateVMReq does not have Spec #470

Merged
merged 2 commits into from
Jun 27, 2022

Conversation

Callisto13
Copy link
Member

In the rare case that a user either:

  • Sends the wrong request type to the server (ie uses BloomRPC to send a
    ListReq to a Create call)
  • Does not include a Spec at all on a CreateMicroVMRequest

we check for its presence and error if not found.

We are doing something similar for other server requests, so this
completes it.

Closes #469

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

In the rare case that a user either:
- Sends the wrong request type to the server (ie uses BloomRPC to send a
  ListReq to a Create call)
- Does not include a Spec at all on a CreateMicroVMRequest

we check for its presence and error if not found.

We are doing something similar for other server requests, so this
completes it.
@Callisto13 Callisto13 added the kind/bug Something isn't working label Jun 27, 2022
@Callisto13 Callisto13 requested a review from richardcase June 27, 2022 10:24
Co-authored-by: Richard Case <198425+richardcase@users.noreply.github.com>
@Callisto13 Callisto13 merged commit d33959f into liquidmetal-dev:main Jun 27, 2022
@Callisto13 Callisto13 deleted the fix-create-panic branch June 27, 2022 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sending invalid payload to API causes panic
2 participants