Why hammer fails with error "missing param 'id' in parameters" when try to upload content to repository on Red Hat Satellite 6?

Solution Verified - Updated -

Issue

  • After upgrade of Red Hat Satellite 6 from version 6.0.8 to 6.1.2, why hammer fails with error missing param 'id' in parameters when try to upload content to repository?

    To get repo id:
    # hammer -c auth.yml repository list --name <repository-name> --organization <organization-name>
    
    To upload content:
    # hammer -c auth.yml repository upload-content --path './path-to-file' --id <repository-id>
    Failed to upload file '' to repository. Please check the file and try again.
    Could not upload the content:
     missing param 'id' in parameters
    
    Same result with repository name:
    # hammer -c auth.yml repository upload-content --path './path-to-file' --name <repository-name> --product <product-name> --organization <organization-name>
    Failed to upload file '' to repository. Please check the file and try again.
    Could not upload the content:
    missing param 'id' in parameters
    
  • Misleading error message while upload rpm using hammer repository upload-content

Environment

  • Red Hat Satellite 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content