Bug 683861
Summary: | Feed type checking error message no longer says what the error is | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
Component: | z_other | Assignee: | John Matthews <jmatthew> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | jmatthew, tsanders |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 21 | ||
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:11: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-03-10 14:33:21 UTC
I retract the statement about this being a regression. This was for repo update; the error message might be getting masked in that functionality. I retract my retraction. This is an issue for repo create as well: # Missing type in feed $ pulp-admin repo create --id pulp-32 --feed http://repos.fedorapeople.org/repos/pulp/pulp/fedora-13/i386 error: operation failed: # Next command specified the feed type $ pulp-admin repo create --id pulp-32 --feed yum:http://repos.fedorapeople.org/repos/pulp/pulp/fedora-13/i386 Successfully created repository [ pulp-32 ] Turns out there was an extra '\n' in the response body we sent back to the client. The client gets a string of test. Of that string, the last line is the error message we want to display to the user. We weren't handling if blank new lines were present at the end of the message. $ sudo pulp-admin repo update --id test_mar10_b --feed blah error: operation failed: PulpException: "Invalid feed url. Must be <type>:<path> where types are: ['yum', 'local', 'rhn']" Commit here: http://git.fedorahosted.org/git/?p=pulp.git;a=commitdiff;h=77f77fc41c09f4715ea9ab8c044bceb9fb02c1cc Build: 0.151 Build: 0.151 verified [root@preethi ~]# rpm -q pulp pulp-0.0.151-1.fc14.noarch [root@preethi ~]# pulp-admin repo update --id=simple-repo --feed=http://repos.fedorapeople.org/repos/pulp/pulp/fedora-14/x86_64 error: operation failed: PulpException: "Invalid type. valid types are ['yum', 'local', 'rhn']" [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin repo create --id=simple-repo1 --feed=http://repos.fedorapeople.org/repos/pulp/pulp/fedora-14/x86_64 error: operation failed: PulpException: "Invalid type. valid types are ['yum', 'local', 'rhn']" Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |