Bug 1119200 - Distribution saved to a directory name with white spaces
Summary: Distribution saved to a directory name with white spaces
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: iso-support
Version: 2.3
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: pulp-qe-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-14 09:07 UTC by Joaquin
Modified: 2014-07-16 16:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-16 16:17:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Joaquin 2014-07-14 09:07:52 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Pulp 2.3.1

How reproducible:

Steps to Reproduce:
1. Install Pulp
2. Create and sync a repository with distribution (e.g. CentOS 6.5).
   Result, the distribution ends up in:
   /var/lib/pulp/content/distribution/ks-CentOS--6.5-x86_64/
3. Create and sync a RHEL 6.5 repository with a distribution.
   Result, the distribution ends up in:
   /var/lib/pulp/content/distribution/ks-Red Hat Enterprise Linux-Server-6.5-x86_64/

While on https://cdn.redhat.com/ the "images" directory is in:
/content/dist/rhel/server/6/6.5/x86_64/kickstart/


Actual results:
(long) Directory name with white spaces:
  ks-Red Hat Enterprise Linux-Server-6.5-x86_64

Expected results:
(short) Directory name without white spaces, e.g.:
  ks-RHEL-Server-6.5-x86_64


Additional info:
The white spaces make it very hard to mount the ISO image. The long name makes it impossible to use the directory name as an ISO label for a custom boot image (max 32 characters).

Comment 1 Michael Hrivnak 2014-07-16 16:17:02 UTC
The file path that pulp uses to store the files in a distribution is not part of a public API and should not be relied upon for any purpose. Pulp may change its scheme for file path layout at any time.

You should look in the published directory to access the iso you want.


Note You need to log in before you can comment on or make changes to this bug.