Bug 790189 - Pulp allows non-existent groups to be added to a category
Summary: Pulp allows non-existent groups to be added to a category
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Todd Sanders
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 21:08 UTC by Jay Dobies
Modified: 2013-09-27 14:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-27 14:12:42 UTC


Attachments (Terms of Use)

Description Jay Dobies 2012-02-13 21:08:49 UTC
There may be a reason this is desired, but I was able to add test-group-foo, which doesn't exist, to a category:

[jdob@pulp1 ~]$ pulp-admin packagegroup add_group --repoid pulp-f16 --categoryid test-category-1 --id test-group-foo
Package group [test-group-foo] added to category [test-category-1] in repository [pulp-f16]


In comps.xml:

<comps>

  <group>
   <id>test-group-2</id>
   <default>true</default>
   <uservisible>true</uservisible>
   <display_order>1024</display_order>
   <name>Test Category 2</name>
   <description></description>
    <packagelist>
    </packagelist>
  </group>
  <category>
   <id>test-category-1</id>
   <display_order>99</display_order>
   <name>Test Category 1</name>
   <description></description>
    <grouplist>
     <groupid>test-group-foo</groupid>
    </grouplist>
  </category>

</comps>

Comment 1 John Matthews 2012-02-14 01:41:00 UTC
Categories and Groups and even references of packages in a group are not a strong linkage.  It's valid to have a group reference in a Category and the group doesn't exist.

The reason is that the data from comps.xml may be aggregated across repos and a group defined in a category may exist in a diff repo from where the category is.  

I recommend we moved this to NOT_A_BUG

Comment 88 Michael Hrivnak 2013-09-27 14:12:42 UTC
pulp no longer has this feature.


Note You need to log in before you can comment on or make changes to this bug.