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

Organization-label can break container image sync

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.17.0, 6.15.5.1, 6.14.4.4, 6.16.3
    • None
    • None
    • None
    • None
    • None

      1. create Organization whose name ends with a non-alphanumeric character (e.g. Acme Inc.)
      2. create docker-type repository

      expected : image can be synced

      actual : sync fails with the following error:

      PulpContainerClient::ApiError Error message: the server returns an error HTTP status code: 400 Response headers: {"date"=>"Wed, 05 Mar 2025 10:30:14 GMT", "server"=>"gunicorn", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, POST, HEAD, OPTIONS", "x-frame-options"=>"DENY", "content-length"=>"71", "x-content-type-options"=>"nosniff", "referrer-policy"=>"same-origin", "cross-origin-opener-policy"=>"same-origin", "correlation-id"=>"d74f4f1a-c0aa-4fd6-9cfc-88b161db39e7", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 almalinux9-katello-nightly.example.com", "connection"=>"close"} Response body: {"base_path":["The provided base path contains forbidden characters."]}

       

      Root cause

      Organization label is created as Acme_Inc_.

      The resulting base-path for the container-image is evaluated to something like acme_inc_/containertest/testcontainer, which is an invalid container-image name/path.

              Unassigned Unassigned
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Quinn James
              Quinn James Quinn James
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: