Skip to content

correctly encode content uploads as multipart/form-data#1871

Draft
evgeni wants to merge 1 commit into
developfrom
multipart/form-data
Draft

correctly encode content uploads as multipart/form-data#1871
evgeni wants to merge 1 commit into
developfrom
multipart/form-data

Conversation

@evgeni
Copy link
Copy Markdown
Member

@evgeni evgeni commented Jun 6, 2025

before this, they were encoded as application/x-www-form-urlencoded, and
while this technically works, it makes the request 2-3× larger,
sometimes hitting limits in Rack/Rails.

Fixes: #1862

before this, they were encoded as application/x-www-form-urlencoded, and
while this technically works, it makes the request 2-3× larger,
sometimes hitting limits in Rack/Rails.

Fixes: #1862
@evgeni
Copy link
Copy Markdown
Member Author

evgeni commented Jun 6, 2025

interestingly, the uploaded data is corrupt 🙈

@evgeni
Copy link
Copy Markdown
Member Author

evgeni commented Jun 6, 2025

@evgeni
Copy link
Copy Markdown
Member Author

evgeni commented Jun 6, 2025

As this seems to require more work, let's apply a workaround for now: #1872

@ekohl
Copy link
Copy Markdown
Member

ekohl commented Apr 30, 2026

@evgeni now that Katello/katello#11408 is fixed, can this progress?

@evgeni
Copy link
Copy Markdown
Member Author

evgeni commented Apr 30, 2026

Technically, yes.
It'd make the code incompatible with older releases (unless we do some wild if/else based on version), so I've been putting it off for now.
Is there any pressure to get this in?

@ekohl
Copy link
Copy Markdown
Member

ekohl commented May 4, 2026

I came across this in https://redhat.atlassian.net/browse/SAT-41766 which mentioned there was only a workaround in place. But you're right that not breaking compatibility with versions prior to Katello 4.18 is also a valuable thing.

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.

[content_upload] Error while performing update on content_uploads

2 participants