Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Conversation

@PeterC10
Copy link

Currently Odoo assumes that a request body is set for any JSON API requests, even though this is not required. See "params" here: https://www.jsonrpc.org/specification#request_object

This change will set the request body to be empty if not set, as Odoo did allow for JSON API GET requests to be sent with an empty body set. This allows external services to make JSON API GET requests without needing to specify a body, something which some applications do not allow.

* Odoo assumes JSON body is set for any JSON requests,
  including GET requests where this is not needed. By
  setting the body to an empty dictionary if not set we
  avoid the need for external systems to do this.
@PeterC10 PeterC10 force-pushed the 11.0_DM-562_json_get_fix branch from 4d2e90f to b9c7027 Compare April 17, 2024 12:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants