Bug #37603
closedAPI endpoint "/katello/api/repositories/:id/upload_content " not accepting calls from the client
Description
Description of problem:
API endpoint "/katello/api/repositories/:id/upload_content" it's not accepting the call when doing it via CLI (curl, python, ruby, etc)
Version-Release number of selected component (if applicable):
6.13.z
How reproducible:
100%
Steps to Reproduce:
1. Create the json file
2. Run the curl command
3.
Actual results:
We will be able to see the error below
—
{
"displayMessage": "undefined method `path' for #<String:0x00007ff0669b76d0>\nDid you mean? pathmap",
"errors": [
"undefined method `path' for #<String:0x00007ff0669b76d0>\nDid you mean? pathmap"
]
}
—
Expected results:
To upload the file in a single shot
Additional info:
We know that we have already a second endpoint, "/katello/api/repositories/:repository_id/content_uploads", which will be able to upload the file as well.
Ps.: Note that this endpoint is special and it should be used ONLY for the webUI, which will apply some additional information and will make it work.