Project

General

Profile

Actions

Bug #38269

open

Organization-label can break container image sync

Added by Markus Bucher about 23 hours ago. Updated about 18 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 #1

Updated by The Foreman Bot about 23 hours ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/11336 added
Actions #2

Updated by Lucy Fu about 18 hours ago

  • Triaged changed from No to Yes
  • Fixed in Releases Katello Next added
Actions

Also available in: Atom PDF