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

Error when creating global registration via API "{"registration_command":"set -o pipefail \u0026\u0026 curl --silent --show-error 'https://sat02.king.lab/...."

XMLWordPrintable

    • False
    • Moderate
    • sat-proton
    • None
    • None
    • None
    • None

      Description of problem:

      Error when creating global registration via API "{"registration_command":"set -o pipefail \u0026\u0026 curl --silent --show-error   'https://sat02.king.lab/...."

       

      Above, we can see the "\u0026\u0026", which should be "&&"

       

      How reproducible:

      100%

       

      Is this issue a regression from an earlier version:

      Not sure

       

      Steps to Reproduce:

      1. In your Satellite, create an ak

       

      [root@sat02 ~]# hammer --csv activation-key list --organization-id 1
      Id,Name,Host Limit,Content View Environments,Multi Content View Environment
      4,ak_rhel,4 of Unlimited,Library,false
      

       

      2. Proceed with the API call, passing the ak in question

      curl -u admin:password_here -k -X POST -H 'Content-type: application/json' -d '{ "registration_command": { "activation_keys": ["ak_rhel"] }}' https://$(hostname)/api/registration_commands 

      3. Check the output

      {"registration_command":"set -o pipefail \u0026\u0026 curl --silent --show-error   'https://sat02.king.lab/register?activation_keys=ak_rhel' --header 'Authorization: Bearer eyJhbGciO...' | bash"} 

      Actual behavior:
      We can see "set -o pipefail \u0026\u0026 curl --silent --show-error ..."

       

      Expected behavior:
      We should see "set -o pipefail && curl --silent --show-error ..."

       

      Business Impact / Additional info:

       

              rh-ee-nalfassi Nofar Alfassi
              rhn-support-wpinheir Waldirio Pinheiro
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: