Project

General

Profile

Actions

Bug #4735

closed

dynamic bindings not allowing file upload

Added by Thomas McKay over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

% hammer subscription upload --organization-id megacorp --file test/data/megacorp.zip
Manifest upload failed:
Error: 400 Bad Request

From log:
Processing by Katello::Api::V2::SubscriptionsController#upload as application/json;version=2
Parameters: {"{\"content\":\"#<File:0x000000039c1258>\"}"=>nil, "api_version"=>"v2", "organization_id"=>"megacorp"}

Previously a fix was applied to katello_api (and foreman_api?) to handle File objects specially. How is this handled in dynamic apipie?

Actions

Also available in: Atom PDF