Project

General

Profile

Actions

Bug #38269

open

Organization-label can break container image sync

Added by Markus Bucher 1 day ago. Updated about 22 hours ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
-
Category:
Container
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Reproducer

  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.

Actions

Also available in: Atom PDF