Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1392513 - Non-admin users can't edit their own profiles
Summary: Non-admin users can't edit their own profiles
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.2.2
Hardware: All
OS: All
medium
medium
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: jcallaha
URL:
Whiteboard:
: 1399840 (view as bug list)
Depends On:
Blocks: 1405498
TreeView+ depends on / blocked
 
Reported: 2016-11-07 16:12 UTC by Josh Foots
Modified: 2020-02-14 18:06 UTC (History)
10 users (show)

Fixed In Version: foreman-1.11.0.62-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1405498 (view as bug list)
Environment:
Last Closed: 2017-01-26 10:44:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
verification screenshot (46.13 KB, image/png)
2017-01-09 21:04 UTC, jcallaha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17256 0 None None None 2016-11-07 17:07:28 UTC
Red Hat Product Errata RHBA-2017:0197 0 normal SHIPPED_LIVE Satellite 6.2.7 Async Bug Release 2017-01-26 15:38:38 UTC

Description Josh Foots 2016-11-07 16:12:16 UTC
Description of problem:

In Satellite 6.2.2 non-admin users can't edit their own profiles.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:

 Oops, we're sorry but something went wrong PG::Error: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list LINE 1: ...ocation')) ORDER BY filters.role_id, filters.id, "roles"."n... ^ : SELECT DISTINCT "filters".* FROM "filters" INNER JOIN "filterings" ON "filterings"."filter_id" = "filters"."id" INNER JOIN "permissions" ON "permissions"."id" = "filterings"."permission_id" INNER JOIN "roles" ON "filters"."role_id" = "roles"."id" INNER JOIN "cached_user_roles" ON "roles"."id" = "cached_user_roles"."role_id" LEFT JOIN taxable_taxonomies ON (filters.id = taxable_taxonomies.taxable_id AND taxable_type = 'Filter') LEFT JOIN taxonomies ON (taxonomies.id = taxable_taxonomies.taxonomy_id) WHERE "roles"."builtin" = 0 AND "roles"."id" IN (14, 13, 15, 12, 11, 6, 4, 3, 17, 16, 8, 1, 2, 7, 5) AND "cached_user_roles"."user_id" = $1 AND (permissions.resource_type = 'Role') AND (permissions.name = 'view_roles') AND (taxable_taxonomies.id IS NULL OR (taxonomies.type = 'Organization') OR (taxonomies.type = 'Location')) ORDER BY filters.role_id, filters.id, "roles"."name" ASC

Expected results:

For non-admin users to edit their own profiles.

Additional info:

Comment 1 Marek Hulan 2016-11-07 17:07:29 UTC
This only happens if the user has more than 5 roles. Fix sent in upstream, waiting for review.

Comment 2 Bryan Kearney 2016-11-07 19:10:34 UTC
Upstream bug assigned to mhulan

Comment 3 Bryan Kearney 2016-11-07 19:10:37 UTC
Upstream bug assigned to mhulan

Comment 4 Bryan Kearney 2016-11-08 13:10:21 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17256 has been resolved.

Comment 6 Tomer Brisker 2016-12-05 15:09:07 UTC
*** Bug 1399840 has been marked as a duplicate of this bug. ***

Comment 8 Bryan Kearney 2016-12-05 16:11:33 UTC
Aligned to 6.2.6.

Comment 9 jcallaha 2017-01-09 21:03:06 UTC
Verified in Satellite 6.2.7 Snap 1

Attached is a screenshot of a non-administrative account 'testuser' that is editing their own profile. Changing fields worked as expected.

Comment 10 jcallaha 2017-01-09 21:04:00 UTC
Created attachment 1238895 [details]
verification screenshot

Comment 12 errata-xmlrpc 2017-01-26 10:44:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0197


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