| Summary: | Repositories with nested relative paths shouldn't be allowed by Pulp | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
| Component: | user-experience | Assignee: | Jay Dobies <jason.dobies> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.0.0 | CC: | jmatthew |
| 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: | 2012-02-24 20:14:58 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 744250 | ||
|
Description
Jay Dobies
2011-12-07 21:14:50 UTC
commit a3a05c905e89ad766c9d5fe2299639c7d0b37c14
Author: Jay Dobies <jason.dobies>
Date: Fri Dec 9 09:44:31 2011 -0500
Refinements to the relative path validation logic
src/pulp/server/api/repo.py
test/unit/test_repo_api.py
= CLI output for a bad relative path =
-> pulp-admin repo create --id test3 --relativepath foo/bar
error: operation failed: PulpException: New relative path [foo/bar] conflicts with existing relative path [foo]; relative paths may not be a parent or child directory of another relative path
= To simulate a failed migrate =
I made two repositories with safe relative paths (the CLI won't let you create bad ones anymore). I had to manually go into mongo's shell and dork with the relative paths to trigger the error message (simulating existing bad data). Here is the command I used:
db.repos.update( {"_id" : "test2"}. {$set : {"relative_path" : "foo"}})
For reference, my test1 repository had relative path foo/bar
= Sample output of a failed migrate =
-> sudo pulp-migrate
Repository [test2] with relative path [foo] conflicts with repository [test1] with
relative path [foo/bar]. Relative paths may not be a parent or child directory of
another relative path. Please correct the listed repositories.
database migration to version 32 complete
*** Bug 654713 has been marked as a duplicate of this bug. *** build: 0.255 [root@preethi ~]# rpm -q pulp pulp-0.0.255-1.fc15.noarch [root@preethi ~]# [root@preethi ~]# pulp-admin repo create --id=test --relativepath=foo/ Successfully created repository [ test ] [root@preethi ~]# [root@preethi ~]# pulp-admin repo create --id=test1 --relativepath=foo/bar error: error: operation failed: PulpException: New relative path [foo/bar] conflicts with existing relative path [foo]; paths may not be a parent or child directory of another relative path Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |