Project

Profile

Help

Issue #117

closed

Validation message for docker repo create does not make sense

Added by pthomas@redhat.com over 9 years ago. Updated about 5 years ago.

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

Description

Validation message should be clear when its failing on repo name.

[root@cloud-qe-17 docker]# rpm -qa pulp-server
pulp-server-2.6.0-0.5.beta.el7.noarch
[root@cloud-qe-17 docker]#

1. Create a docker repo wih the --repo-id with a capital letter

See the error message

[root@cloud-qe-17 docker]# pulp-admin docker repo create --repo-id Docker-test
The server indicated one or more values were incorrect. The server provided the
following error message:

Pulp exception occurred: PulpDataException

More information can be found in the client log file ~/.pulp/admin.log.

In rpm here is the message we get

root@cloud-qe-17 docker]# pulp-admin rpm repo create --repo-id Docker-test.test%
Validation failed for argument [--repo-id]: value must contain only letters,
numbers, underscores, periods and hyphens


Related issues

Is duplicate of Pulp - Issue #683: Pulp throws away validation error information from distributorsCLOSED - CURRENTRELEASEamacdona@redhat.comActions

Also available in: Atom PDF