Bug #6050
closedCLI - content definition filter package rule: package without name is allowed
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=956591
Description of problem:
In CLI you can create package (rpm) filter rule what contains package without name.
I think its nonsense and it should not be allowed.
Version-Release number of selected component (if applicable):
katello-common-1.4.1-1.git.182.8e8188f.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-repos-1.4.1-1.el6.noarch
katello-cli-1.4.1-1.git.182.c6940ed.el6.noarch
katello-configure-1.4.1-1.git.111.f7f9fea.el6.noarch
katello-glue-candlepin-1.4.1-1.git.182.8e8188f.el6.noarch
katello-glue-pulp-1.4.1-1.git.182.8e8188f.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-common-1.4.1-1.git.182.c6940ed.el6.noarch
katello-selinux-1.4.1-1.el6.noarch
katello-1.4.1-1.git.182.8e8188f.el6.noarch
katello-agent-1.4.1-1.el6.noarch
katello-all-1.4.1-1.git.182.8e8188f.el6.noarch
katello-glue-elasticsearch-1.4.1-1.git.182.8e8188f.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-certs-tools-1.4.1-1.el6.noarch
How reproducible:
always
Steps to Reproduce:
1. prepare org, content definition and filter
org create --name org
content definition create --org org --name def
content definition filter create --org org --definition def --name filter
2. add rule to filter
content definition filter add_rule --org org --definition def --name filter --content "rpm" --rule '{"units": [{"min_version" : "2.5.0", "max_version" : "4.2.0"}]}'
Updated by Eric Helms over 10 years ago
- Category changed from Hammer to API
- Target version set to 45
- Triaged set to Yes
This sounds more like a data model layer in that a validation should be checking for this server side.
Updated by Partha Aji over 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset katello|commit:18e7375bd64f8406d28668db924e2f1877223f28.
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13