Bug 116966 - Cannot delete root categories
Summary: Cannot delete root categories
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise CMS
Classification: Retired
Component: ui
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Vadim Nasardinov
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks: 113496
TreeView+ depends on / blocked
 
Reported: 2004-02-26 21:57 UTC by Justin Ross
Modified: 2007-04-18 17:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-03-17 20:55:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Justin Ross 2004-02-26 21:57:09 UTC
Description of problem:

In the category pane, you can't get past the confirm-delete step when
deleting a root category.

Version-Release number of selected component (if applicable):

qgen branch (though it's not clear this has to do with qgen)

How reproducible:

Always

Steps to Reproduce:
1. Navigate to category tab
2. Select a use context
3. Try to delete its root category
  
Actual results:

Nothing happens

Expected results:

Use context and its root category are deleted

Comment 1 Vadim Nasardinov 2004-02-26 22:06:06 UTC
Kinda related xref: bug 115363.


Comment 2 Richard Li 2004-03-01 20:47:48 UTC
vadim: is this easily fix-able?

Comment 3 Scott Seago 2004-03-01 20:51:21 UTC
There's a check in the code which only deletes if the category is not
root, so could be as simple as removing this check -- that is, if we
want the user to be able to easily remove the root category. We _may_
want to only allow users to delete root categories which are in
non-default (i.e. non-null) use contexts.

And in the case where we don't allow deletion (i.e. root category for
default use context) the "delete" link should be hidden.

Comment 4 Vadim Nasardinov 2004-03-01 21:46:18 UTC
I'll take a closer look at this tomorrow.  Scott is most likely
correct.  It's probably just a matter of removing the conditional.

The real question is, do we want to allow root categories to
be deleted with the same ease as leaf categories?

Nobuko, what do you think? (I'm asking because of bug 115363.)


Comment 5 Vadim Nasardinov 2004-03-02 22:09:26 UTC
Fixed on the trunk in change 40976.


Comment 6 Nobuko Asakai 2004-03-03 14:37:31 UTC
Vadim,

Sorry my earlier comment didn't go through. 

The problem with 115363 is that the permission management pane doesn't
appear for root categories. It is fine that root categories are
deletable as long as there is control over specifically who can do this.

Hopefully my comment isn't too late.

Nobuko 

Comment 7 Vadim Nasardinov 2004-03-03 15:20:29 UTC
Nobuko,

I finally understand the problem you describe.  I'd like to keep it
as a separate bug.  I took a very quick look at it.  See bug 115363,
#comment 2.



Comment 8 Vadim Nasardinov 2004-03-03 15:21:47 UTC
Testing:
bug 115363,
comment #2


Comment 9 Jon Orris 2004-03-05 19:36:46 UTC
Verified on oracle

Comment 10 Jon Orris 2004-03-17 20:55:41 UTC
And on postgres


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