Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-21353

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

XMLWordPrintable

    • 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
    • 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.

            jira-bugzilla-migration RH Bugzilla Integration
            rhn-support-wpinheir Waldirio Pinheiro
            Vladimír Sedmík Vladimír Sedmík
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: