Project

General

Profile

Actions

Bug #4735

closed

dynamic bindings not allowing file upload

Added by Thomas McKay over 10 years ago. Updated about 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 #1

Updated by Martin Bacovsky over 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Martin Bacovsky
  • Target version set to 1.9.0

Upstream issue https://github.com/Apipie/apipie-bindings/issues/2
The fix should land in apipie-bindings 0.0.5

Actions #2

Updated by Martin Bacovsky over 10 years ago

  • Status changed from Assigned to Closed

The patch was merged upstream

Actions

Also available in: Atom PDF