Skip to content

[core] Support text/plain content type for REST catalog request body#8198

Open
ArnavBalyan wants to merge 1 commit into
apache:masterfrom
ArnavBalyan:arnavb/rest-content-type
Open

[core] Support text/plain content type for REST catalog request body#8198
ArnavBalyan wants to merge 1 commit into
apache:masterfrom
ArnavBalyan:arnavb/rest-content-type

Conversation

@ArnavBalyan

@ArnavBalyan ArnavBalyan commented Jun 10, 2026

Copy link
Copy Markdown
Member

Purpose

  • REST create table fails because post and delete are sent without a content type, defaulting to plain text, which JSON expecting REST servers reject before processing.
  • Fix by setting the request body content type to json in the http client, and by body type in the simple client, (form encoded for form bodies and JSON otherwise).
  • Closes user reported bug [Bug] REST Catalog Content-Type Error with Paimon 1.3.1 #7092

Tests

  • UT

@ArnavBalyan

Copy link
Copy Markdown
Member Author

cc @JingsongLi @leaves12138 thanks! :)

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.

1 participant