Bug 669397
Summary: | Enforce ID restrictions | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
Component: | z_other | Assignee: | Sayli Karmarkar <skarmark> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | cperry, skarmark, tsanders |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 23 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-16 12:07:13 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 647488 |
Description
Jay Dobies
2011-01-13 15:10:27 UTC
I suggest we only allow the following in IDs: * Letters * Numbers * dash (-) * underscore (_) * period (.) We can define a regex to match these and add it to our create methods down near the database layer. $ sudo pulp-admin repo create --id=abc$%%% error: operation failed: PulpException: 'Given ID is invalid. ID may contain numbers(0-9), upper and lower case letters(A-Z, a-z), hyphens(-), underscore(_) and periods(.)' $ sudo pulp-admin repo create --id=abc_xyz Successfully created repository [ abc_xyz ] build 0.174 verified [root@preethi ~]# rpm -q pulp pulp-0.0.181-1.fc14.noarch [root@preethi ~]# pulp-admin repo create --id=abc$%%% error: operation failed: PulpException: 'Given ID is invalid. ID may contain numbers(0-9), upper and lower case letters(A-Z, a-z), hyphens(-), underscore(_) and periods(.)' [root@preethi ~]# [root@preethi ~]# pulp-admin repo create --id=abc** error: operation failed: PulpException: 'Given ID is invalid. ID may contain numbers(0-9), upper and lower case letters(A-Z, a-z), hyphens(-), underscore(_) and periods(.)' [root@preethi ~]# pulp-admin repo create --id=abc_12_AD Successfully created repository [ abc_12_AD ] Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |