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

Hammer Allows Invalid Release Version to be Set on Activation Key

XMLWordPrintable

    • Sprint 102, Sprint 103, Sprint 111, Sprint 112, Sprint 113, Sprint 114, Sprint 115, Sprint 116
    • Moderate
    • None

      Description of problem:

      Using the hammer command to create or update an activation key, users can input invalid release versions (any string is accepted). This causes issues when hosts try and register. It can be difficult to spot if an admin uses "7server" instead of "7Server" in a script. The "7server" will be used in the pathway for the repository url on the content host, and will give 404 errors.

      Version-Release number of selected component (if applicable):
      Satellite 6.8.0

      How reproducible:
      always

      Steps to Reproduce:
      1. Create an activation key with hammer command:

      1. hammer activation-key create --name=testing --release-version="thisshouldntwork" --organization-id=1 --lifecycle-environment-id=1 --content-view-id=1

      2. Or update with hammer:

      1. hammer activation-key update --id=1 --release-version="butitdoes" --organization-id=1

      Actual results:
      Activation key is created with an invalid release version.

      Expected results:
      The API should verify if the release version is valid.

      Additional info:

              rhn-engineering-lfu Lucy Fu
              satellite-focaccia-bot Focaccia Bot
              Chris Roberts Chris Roberts
              Cole Higgins Cole Higgins
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: