Project

General

Profile

Actions

Bug #6050

closed

CLI - content definition filter package rule: package without name is allowed

Added by Partha Aji almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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"}]}'

Actions #1

Updated by Eric Helms almost 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.

Actions #2

Updated by Partha Aji almost 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:18e7375bd64f8406d28668db924e2f1877223f28.

Actions #3

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF