Bug 1159071
Summary: | repos and users named with a single period | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Irina Gulina <igulina> |
Component: | z_other | Assignee: | pulp-bugs |
Status: | CLOSED UPSTREAM | QA Contact: | Irina Gulina <igulina> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.5 | CC: | austin, jortel |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-28 22:42:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Irina Gulina
2014-10-30 21:07:55 UTC
However, everything is fine if a repo-id starts with a period.... >> pulp-admin docker repo list +----------------------------------------------------------------------+ Docker Repositories +----------------------------------------------------------------------+ Id: zoo Display Name: zoo Description: None Content Unit Counts: Id: woo.doo Display Name: woo.doo Description: None Content Unit Counts: Id: . Display Name: . Description: None Content Unit Counts: >> pulp-admin docker repo create --repo-id .myrepo Repository [.myrepo] successfully created >> pulp-admin -u admin -p admin docker repo update --repo-id .myrepo --description 'my repo' Repository [.myrepo] successfully updated >> pulp-admin -u admin -p admin docker repo list+----------------------------------------------------------------------+ Docker Repositories +----------------------------------------------------------------------+ Id: zoo Display Name: zoo Description: None Content Unit Counts: Id: woo.doo Display Name: woo.doo Description: None Content Unit Counts: Id: . Display Name: . Description: None Content Unit Counts: Id: .myrepo Display Name: .myrepo Description: my repo Content Unit Counts: I think this is a webpy problem. /v2/repositories/foo/ and matches based on foo/ /v2/reposotiroes/./ matches / /v2/repositories/././ also matches / We can validate against the repo name of '.' but I think this will probably be fixed by a move to Django, so I will leave it for now. Here is a little note that the user has the same issue if named with a signle perid [1]. Ok, let's wait for moving to Django. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1158138#c4 Moved to https://pulp.plan.io/issues/600 |