Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-18036

Special chars in the source id breaks composer-cli

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.3.0
    • weldr-client
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      • What I created using "composer-cli", I can't properly edit using cockpit.

      Please provide the package NVR for which bug is seen:

      • cockpit-composer.noarch == 47-1.el9
      • composer-cli == v35.9

      How reproducible:

      No special requirements.

      Steps to reproduce

      1. Via cockpit, using Image Builder:
        1. Go to the "Sources" tab
        2. Create a source with the following name: "Red Hat Ansible Automation Platform 2.4 for RHEL 9 x86_64 (RPMs)". Then, save it.
      2. Via terminal, using composer-cli:
        1. Run "composer-cli sources info 'Red Hat Ansible Automation Platform 2.4 for RHEL 9 x86_64 (RPMs)'"
        2. BUG: the command returns a bunch of "UnknownSource" errors

      Expected results

      • If I'm able to create a source using special char in the ID, then I should be able to get info about it.

      Actual results

      • BUG: the command returns a bunch of "UnknownSource" errors
      $ composer-cli sources info 'Red Hat Ansible Automation Platform 2.4 for RHEL 9 x86_64 (RPMs)'
      ERROR: UnknownSource: Red is not a valid source
      ERROR: UnknownSource: Hat is not a valid source
      ERROR: UnknownSource: Ansible is not a valid source
      ERROR: UnknownSource: Automation is not a valid source
      ERROR: UnknownSource: Platform is not a valid source
      ERROR: UnknownSource: 2.4 is not a valid source
      ERROR: UnknownSource: for is not a valid source
      ERROR: UnknownSource: RHEL is not a valid source
      ERROR: UnknownSource: 9 is not a valid source
      ERROR: UnknownSource: x86_64 is not a valid source
      ERROR: UnknownSource: (RPMs) is not a valid source 

              Unassigned Unassigned
              rhn-support-lufernan Luiz Felipe Fernandes Machado Costa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: