Project

General

Profile

Bug #4735

dynamic bindings not allowing file upload

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

Status:
Closed
Priority:
High
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
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?

History

#1 Updated by Martin Bacovsky over 6 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

#2 Updated by Martin Bacovsky over 6 years ago

  • Status changed from Assigned to Closed

The patch was merged upstream

Also available in: Atom PDF