Project

General

Profile

Actions

Bug #37603

closed

API endpoint "/katello/api/repositories/:id/upload_content " not accepting calls from the client

Added by Samir Jha about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by The Foreman Bot about 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/11054 added
Actions #2

Updated by Samir Jha about 2 months ago

  • Red Hat JIRA set to SAT-21353
Actions #3

Updated by The Foreman Bot about 2 months ago

  • Fixed in Releases Katello 4.14.0 added
Actions #4

Updated by Samir Jha about 2 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF