2022-05-25T19:44:44 [I|app|241d1a28] Started PUT "/katello/api/repositories/1/content_uploads/e43ff7cc-b87d-427d-9211-db6544be1f62" for 192.168.121.18 at 2022-05-25 19:44:44 +0000
2022-05-25T19:44:44 [F|app|241d1a28]
241d1a28 | ActionController::BadRequest (Invalid request parameters: Invalid encoding for parameter: [binary gibberish]
241d1a28 |
241d1a28 | app/controllers/concerns/foreman/controller/filter_parameters.rb:15:in `process_action'
241d1a28 | katello (4.6.0.pre.master) lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
241d1a28 | katello (4.6.0.pre.master) lib/katello/middleware/event_daemon.rb:10:in `call'
241d1a28 | lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
241d1a28 | lib/foreman/middleware/telemetry.rb:10:in `call'
241d1a28 | lib/foreman/middleware/logging_context_session.rb:22:in `call'
241d1a28 | lib/foreman/middleware/logging_context_request.rb:11:in `call'
241d1a28 | katello (4.6.0.pre.master) lib/katello/prevent_json_parsing.rb:12:in `call'
@katello this looks like some Rails 6.1 fallout
Happens during content upload via hammer:
@test "upload package" {
(cd /tmp; curl -O https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_errata_install/animaniacs-0.1-1.noarch.rpm)
hammer repository upload-content --organization="${ORGANIZATION}"\
--product="${PRODUCT}" --name="${YUM_REPOSITORY}" --path="/tmp/animaniacs-0.1-1.noarch.rpm" | grep -q "Successfully uploaded"
}
Hammer is using these for request headers:
{:content_type => 'multipart/form-data'}
Perhaps the default charset
is no longer good? I haven’t found anything yet regarding Rails 6.1 and encoding issues.
It seems the error goes deeper, it’s in here:
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/actionpack-6.1.6/lib/action_dispatch/request/utils.rb:39:in `check_param_encoding’
A PR was merged for this issue: https://github.com/Katello/katello/pull/10137
1 Like
system
Closed
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.