Actions
Bug #37380
closedContainer push can fail with a different JSON error
Description
In http_resource.rb, there's the following code:
def issue_request(method:, path:, headers: {}, payload: nil)
logger.debug("Resource #{method.upcase} request: #{path}")
logger.debug "Headers: #{headers.to_json}"
begin
logger.debug "Body: #{filter_sensitive_data(payload.to_json)}"
rescue JSON::GeneratorError
logger.debug "Body: Error: could not render payload as json"
end
The last logger.debug might cause an Encoding::UndefinedConversionError error instead of a JSON::GeneratorError.
Updated by Ian Ballou 7 months ago
- Subject changed from Container push fails with Ruby 3 to Container push can fail with a different JSON error
Updated by The Foreman Bot 7 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/10977 added
Updated by Anonymous 7 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|95a55e0da6b5355170a23bed51d6f5065c05cb7f.
Actions