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

CA-381119: use JsonRPC V2 for error replies #5730

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

lindig
Copy link
Contributor

@lindig lindig commented Jun 25, 2024

For regular replies we look at the request and reply with a matching version. However when we fail to parse the JsonRPC request itself then we don't know what version to use.

XenCenter uses JsonRPC v2 by default, and JsonRPC v2 has been supported in XAPI for a long time.

@lindig
Copy link
Contributor Author

lindig commented Jun 25, 2024

Cherry-picked from @edwintorok's branch for CA-381119

@lindig
Copy link
Contributor Author

lindig commented Jun 25, 2024

There is a CI problem - how can this be related to this one-line change?

@lindig
Copy link
Contributor Author

lindig commented Jun 25, 2024

File "ocaml/xenopsd/test/dune", line 2, characters 7-11:
2 |  (name test)
           ^^^^
(cd _build/default/ocaml/xenopsd/test && ./test.exe)
{xenops test}
make: *** [Makefile:59: test] Error 1

@Vincent-lau
Copy link
Contributor

There is a CI problem - how can this be related to this one-line change?

Rerun the CI?

For regular replies we look at the request and reply with a matching version.
However when we fail to parse the JsonRPC request itself then we don't know what version to use.

XenCenter uses JsonRPC v2 by default, and JsonRPC v2 has been supported in XAPI for a long time.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@lindig lindig merged commit 7d4c00c into xapi-project:master Jun 26, 2024
14 checks passed
@psafont
Copy link
Member

psafont commented Jun 26, 2024

When the server is unable to parse the request it should return a 400

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

Successfully merging this pull request may close these issues.

None yet

5 participants