Project

Profile

Help

Issue #7697

closed

docker repo_repository_id name restrictions seems to be wrong

Added by jpasqualetto over 3 years ago. Updated over 2 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version - Docker:
Platform Release:
Target Release - Docker:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

While the code states that:

" Docker registry repos are restricted to lower case letters, numbers, hyphens, underscores, and periods. Additionally, we allow a single slash for namespacing purposes."

pulp is returning error for any docker_registry_id containing this sequence of characters:

  _-_

Example:

# pulp-admin docker repo create --repo-id=docker_test --repo-registry-id "my_-_repo"
A validation error occurred.

The value specified for repo-registry-id: 'my_-_repo' is invalid. Registry id
must contain only lower case letters, integers, hyphens, periods, and may
include a single slash.

Also, the error message doesn't say anything about accepting underscores.

Also available in: Atom PDF