Bug 1139533
| Summary: | Invalid action group identifiers in the roles_groups table trigger NPE | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Ondra Machacek <omachace> |
| Component: | ovirt-engine-core | Assignee: | Ravi Nori <rnori> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Belka <jbelka> |
| Severity: | high | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 3.5 | CC: | bugs, ecohen, gklein, iheim, juan.hernandez, oourfali, pkubica, rbalakri, rnori, yeylon |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | 3.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | infra | ||
| Fixed In Version: | ovirt-3.5.0_rc2 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-17 12:34:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1073943, 1122419 | ||
|
Description
Ondra Machacek
2014-09-09 07:17:09 UTC
Same for 'ClusterAdmin' and 'DataCenterAdmin. This happens because the database table "roles_groups" contains two rows with values for the "action_group_id" column that don't exist in the backend "ActionGroup" enum. As a result when these rows are loaded the action group is null, and accessing it triggers a NPE. The wrong values are 130 and 131. These have been introduced in the following patch in order to fix bug 989546: http://gerrit.ovirt.org/25685 *** Bug 1140636 has been marked as a duplicate of this bug. *** ok, ovirt-engine-backend-3.5.0-0.0.master.20140911085455.gite1c5ffd.el6.noarch # curl -s -k -X GET -H "Accept: application/xml" -H "Content-Type: application/xml" -H "Filter: false" -u "admin@internal:123456" https://localhost:443/api/roles/00000000-0000-0000-0000-000000000001/permits | grep '<name>' | nl | tail 68 <name>access_image_storage</name> 69 <name>tag_management</name> 70 <name>bookmark_management</name> 71 <name>event_notification_management</name> 72 <name>manipulate_affinity_groups</name> 73 <name>add_users_and_groups_from_directory</name> 74 <name>audit_log_management</name> 75 <name>configure_storage_disk_profile</name> 76 <name>create_storage_disk_profile</name> 77 <name>delete_storage_disk_profile</name>l oVirt 3.5 has been released and should include the fix for this issue. |