Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

Cannot delete user which was used to create other users

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 4.2.0, 4.5, 4.6
  • Fix Version/s: 4.5.3.1
  • Component/s: Deprecated: Server
  • Case Links:
    none
  • Regression:
    No

Description

Steps to reproduce:

1. Log in as hqadmin, Create user A, assign super user role
2. Log out, re-login as user A
3. Create user B as user A
4. Log out, re-login as hqadmin
5. Attempt to delete user A

Results in stacktrace:

java.lang.IllegalArgumentException: covalentAuthzSubject is not a valid Appdef Resource Type
at org.hyperic.hq.appdef.shared.AppdefEntityID.<init>(AppdefEntityID.java:159)
at org.hyperic.hq.bizapp.server.session.AppdefBossEJBImpl.resetResourceOwnership(AppdefBossEJBImpl.java:3154)

Attempted to delete user B, then A, but the stack trace persists. Only wait to remove the user appears to be using direct SQL

Activity

Hide
Wes Schlichter added a comment -

3 changes:

1.) Added exception logging to RemoveAction
2.) Change ownership of authz resources now changes users
3.) Reversed order to change ownership of appdef before authz so that appdef changeownership doesn't find the users created before authz changeownership runs.

Show
Wes Schlichter added a comment - 3 changes: 1.) Added exception logging to RemoveAction 2.) Change ownership of authz resources now changes users 3.) Reversed order to change ownership of appdef before authz so that appdef changeownership doesn't find the users created before authz changeownership runs.
Hide
Wes Schlichter added a comment -

Verified in 20120414.120856-39

Show
Wes Schlichter added a comment - Verified in 20120414.120856-39

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    2 years, 1 week, 3 days ago