Actions
Bug #34984
closedActionController::BadRequest when uploading RPMs via Hammer
Description
For some reason, the Rails 6.1 upgrade suddenly cause the binary file data to go through a UTF-8 encoding check. This fails since it's just binary data (RPMs).
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'
Related thread: https://community.theforeman.org/t/katello-nightly-rpm-pipeline-1337-failed/28772
Updated by The Foreman Bot over 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/10137 added
Updated by The Foreman Bot over 2 years ago
- Fixed in Releases Katello 4.5.0 added
Updated by Anonymous over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|2be708d33aaafaaa420963a31cba308f86274bee.
Actions