Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1392513 - Non-admin users can't edit their own profiles
Non-admin users can't edit their own profiles
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Users & Roles (Show other bugs)
6.2.2
All All
medium Severity medium (vote)
: 6.2.7
: Unused
Assigned To: Marek Hulan
jcallaha
: Triaged
: 1399840 (view as bug list)
Depends On:
Blocks: 1405498
  Show dependency treegraph
 
Reported: 2016-11-07 11:12 EST by Josh Foots
Modified: 2017-01-30 19:15 EST (History)
10 users (show)

See Also:
Fixed In Version: foreman-1.11.0.62-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1405498 (view as bug list)
Environment:
Last Closed: 2017-01-26 05:44:45 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 17256 None None None 2016-11-07 12:07 EST
Red Hat Product Errata RHBA-2017:0197 normal SHIPPED_LIVE Satellite 6.2.7 Async Bug Release 2017-01-26 10:38:38 EST

  None (edit)
Description Josh Foots 2016-11-07 11:12:16 EST
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 12:07:29 EST
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 14:10:34 EST
Upstream bug assigned to mhulan@redhat.com
Comment 3 Bryan Kearney 2016-11-07 14:10:37 EST
Upstream bug assigned to mhulan@redhat.com
Comment 4 Bryan Kearney 2016-11-08 08:10:21 EST
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 10:09:07 EST
*** Bug 1399840 has been marked as a duplicate of this bug. ***
Comment 8 Bryan Kearney 2016-12-05 11:11:33 EST
Aligned to 6.2.6.
Comment 9 jcallaha 2017-01-09 16:03:06 EST
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 16:04 EST
Created attachment 1238895 [details]
verification screenshot
Comment 12 errata-xmlrpc 2017-01-26 05:44:45 EST
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.