Bug 668000
Summary: | Repo with spaces in the ID cannot be deleted | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
Component: | z_other | Assignee: | John Matthews <jmatthew> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | jmatthew, tsanders |
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: | 2011-08-16 14:00:02 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-07 16:11:35 UTC
We weren't encoding the spaces in the URL, so we ended up with a 404. Example before change: $ sudo pulp-admin repo delete --id "test with spaces" _request calling: /pulp/api//repositories/test with spaces/ to host:port : jwm-devel.home:443 Request_type: DELETE info: None headers: {'Accept-Language': 'en-us', 'Content-type': 'application/json', 'Accept': 'application/json', 'Authorization': ''} 404 /pulp/api//repositories/test with spaces/, not found After change: $ sudo pulp-admin repo delete --id "test with spaces" _request calling: /pulp/api//repositories/test%20with%20spaces/ to host:port : jwm-devel.home:443 Request_type: DELETE info: None headers: {'Accept-Language': 'en-us', 'Content-type': 'application/json', 'Accept': 'application/json', 'Authorization': ''} Commit: http://git.fedorahosted.org/git/?p=pulp.git;a=commit;h=d0fc22b3887e712f1004bb9e4b9b1d485b620a5f Fixed in build 0.123. verified [root@preethi ~]# rpm -q pulp pulp-0.0.123-1.fc14.noarch [root@preethi ~]# pulp-admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Id foo1234 Name foo1234 FeedURL None FeedType None Arch noarch Sync Schedule None Packages 2 Files 0 Distributions None Publish True Clones [] Groups None Id pulp-repo Name pulp-repo FeedURL http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-13/x86_64/ FeedType yum Arch x86_64 Sync Schedule None Packages 10 Files 0 Distributions None Publish True Clones [] Groups None Id space repo Name space repo FeedURL None FeedType None Arch noarch Sync Schedule None Packages 0 Files 0 Distributions None Publish True Clones [] Groups None Id f13 Name f13 FeedURL http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/ FeedType yum Arch x86_64 Sync Schedule None Packages 3102 Files 0 Distributions ks-f13-x86_64 Publish True Clones [] Groups None [root@preethi ~]# pulp-admin repo delete --id="space repo" Successful deleted repository [ space repo ] [root@preethi ~]# pulp-admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Id foo1234 Name foo1234 FeedURL None FeedType None Arch noarch Sync Schedule None Packages 2 Files 0 Distributions None Publish True Clones [] Groups None Id pulp-repo Name pulp-repo FeedURL http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-13/x86_64/ FeedType yum Arch x86_64 Sync Schedule None Packages 10 Files 0 Distributions None Publish True Clones [] Groups None Id f13 Name f13 FeedURL http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/ FeedType yum Arch x86_64 Sync Schedule None Packages 3102 Files 0 Distributions ks-f13-x86_64 Publish True Clones [] Groups None Closing with Community Release 15 pulp-0.0.223-4. |