-
Bug
-
Resolution: Done
-
Normal
-
None
-
1
-
False
-
-
False
-
CLOSED
-
400
-
Phoenix
-
-
-
Sprint 126, Sprint 127, Sprint 128, Sprint 129, Sprint 130, Sprint 131, Sprint 132, Sprint 133, Sprint 134, Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141
-
Moderate
-
No
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.
- links to
-
RHBA-2024:140284 Important: Satellite 6.16.0 release