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 1111704 - Restart of foreman required after changing a user's role(s) for menu items to show up
Summary: Restart of foreman required after changing a user's role(s) for menu items to...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.0.3
Hardware: All
OS: All
medium
medium
Target Milestone: Unspecified
Assignee: Greg Sutcliffe
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-20 18:52 UTC by Walden Raines
Modified: 2019-09-26 14:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 12:23:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6065 0 None None None 2016-04-22 16:39:29 UTC
Red Hat Bugzilla 1105251 0 high CLOSED Inverting the admin flag has no effect on menu cache 2021-02-22 00:41:40 UTC

Internal Links: 1105251

Description Walden Raines 2014-06-20 18:52:36 UTC
Description of problem:

If you switch the roles or filters for a user you must restart foreman in order for those changes to be shown on the menu for that user.

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

    candlepin-0.9.19-1.el6_5.noarch
    candlepin-scl-1-5.el6_4.noarch
    candlepin-scl-quartz-2.1.5-5.el6_4.noarch
    candlepin-scl-rhino-1.7R3-1.el6_4.noarch
    candlepin-scl-runtime-1-5.el6_4.noarch
    candlepin-selinux-0.9.19-1.el6_5.noarch
    candlepin-tomcat6-0.9.19-1.el6_5.noarch
    createrepo-0.9.9-21.2.pulp.el6sat.noarch
    elasticsearch-0.90.10-4.el6sat.noarch
    katello-1.5.0-26.el6sat.noarch
    katello-ca-1.0-1.noarch
    katello-certs-tools-1.5.5-1.el6sat.noarch
    katello-installer-0.0.49-1.el6sat.noarch
    m2crypto-0.21.1.pulp-10.el6sat.x86_64
    mod_wsgi-3.4-1.pulp.el6sat.x86_64
    pulp-katello-0.3-3.el6sat.noarch
    pulp-nodes-common-2.4.0-0.21.beta.el6sat.noarch
    pulp-nodes-parent-2.4.0-0.21.beta.el6sat.noarch
    pulp-puppet-plugins-2.4.0-0.21.beta.el6sat.noarch
    pulp-puppet-tools-2.4.0-0.21.beta.el6sat.noarch
    pulp-rpm-plugins-2.4.0-0.21.beta.el6sat.noarch
    pulp-selinux-2.4.0-0.21.beta.el6sat.noarch
    pulp-server-2.4.0-0.21.beta.el6sat.noarch
    python-gofer-qpid-1.3.0-1.el6sat.noarch
    python-isodate-0.5.0-1.pulp.el6sat.noarch
    python-kombu-3.0.15-8.pulp.el6sat.noarch
    python-pulp-bindings-2.4.0-0.21.beta.el6sat.noarch
    python-pulp-common-2.4.0-0.21.beta.el6sat.noarch
    python-pulp-puppet-common-2.4.0-0.21.beta.el6sat.noarch
    python-pulp-rpm-common-2.4.0-0.21.beta.el6sat.noarch
    python-qpid-0.22-14.el6sat.noarch
    python-qpid-qmf-0.22-31.el6sat.x86_64
    qpid-cpp-client-0.22-42.el6.x86_64
    qpid-cpp-server-0.22-42.el6.x86_64
    qpid-cpp-server-linearstore-0.22-42.el6.x86_64
    qpid-java-client-0.22-6.el6.noarch
    qpid-java-common-0.22-6.el6.noarch
    qpid-proton-c-0.7-1.el6.x86_64
    qpid-qmf-0.22-31.el6sat.x86_64
    qpid-tools-0.22-12.el6.noarch
    ruby193-rubygem-katello-1.5.0-60.el6sat.noarch
    rubygem-hammer_cli_katello-0.0.4-7.el6sat.noarch
    sat-blade-12.idm.lab.bos.redhat.com-qpid-broker-1.0-4.noarch
    sat-blade-12.idm.lab.bos.redhat.com-qpid-client-cert-1.0-4.noarch


How reproducible:

Always.

Steps to Reproduce:
1. Create a role
2. Add a filter
3. Create a user
4. Add the role from step 1 
5. Logout
6. Login as the user from step 3
7. Notice menu items
8. Logout (or in another browser) login as admin
9. Change the filter or role for the user
10. Reload the page as the user
11. Notice the menu items have not changed
12. Restart foreman
13. Repeat step 10
14. Notice the menu items have changed

Actual results:

Menu items do not update as roles update until you restart foreman.

Expected results:

Menu items should update after roles are changed without a restart required.

Additional info:

Comment 2 Bryan Kearney 2014-07-23 00:03:14 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6065 has been closed
-------------
Greg Sutcliffe
https://github.com/theforeman/foreman/pull/1495/files
-------------
Greg Sutcliffe
Applied in changeset commit:70acceb5de46868358714ef2aaef0387cbcda4c3.

Comment 5 Kedar Bidarkar 2014-08-13 12:08:14 UTC
Restarting foreman is no longer required when changing filters for the roles.

Tested with sat6-GA-snap4.


Installed Packages

    candlepin-0.9.19-1.el6_5.noarch
    candlepin-scl-1-5.el6_4.noarch
    candlepin-scl-quartz-2.1.5-5.el6_4.noarch
    candlepin-scl-rhino-1.7R3-1.el6_4.noarch
    candlepin-scl-runtime-1-5.el6_4.noarch
    candlepin-selinux-0.9.19-1.el6_5.noarch
    candlepin-tomcat6-0.9.19-1.el6_5.noarch
    createrepo-0.9.9-21.2.pulp.el6sat.noarch
    elasticsearch-0.90.10-4.el6sat.noarch
    katello-1.5.0-28.el6sat.noarch
    katello-ca-1.0-1.noarch
    katello-certs-tools-1.5.6-1.el6sat.noarch
    katello-installer-0.0.57-1.el6sat.noarch
    m2crypto-0.21.1.pulp-10.el6sat.x86_64
    mod_wsgi-3.4-1.pulp.el6sat.x86_64
    pulp-katello-0.3-3.el6sat.noarch
    pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch
    pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch
    pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch
    pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch
    pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch
    pulp-selinux-2.4.0-0.30.beta.el6sat.noarch
    pulp-server-2.4.0-0.30.beta.el6sat.noarch
    python-gofer-qpid-1.3.0-1.el6sat.noarch
    python-isodate-0.5.0-1.pulp.el6sat.noarch
    python-kombu-3.0.15-12.pulp.el6sat.noarch
    python-pulp-bindings-2.4.0-0.30.beta.el6sat.noarch
    python-pulp-common-2.4.0-0.30.beta.el6sat.noarch
    python-pulp-puppet-common-2.4.0-0.30.beta.el6sat.noarch
    python-pulp-rpm-common-2.4.0-0.30.beta.el6sat.noarch
    python-qpid-0.22-14.el6sat.noarch
    python-qpid-qmf-0.22-33.el6.x86_64
    qpid-cpp-client-0.22-42.el6.x86_64
    qpid-cpp-server-0.22-42.el6.x86_64
    qpid-cpp-server-linearstore-0.22-42.el6.x86_64
    qpid-java-client-0.22-6.el6.noarch
    qpid-java-common-0.22-6.el6.noarch
    qpid-proton-c-0.7-1.el6.x86_64
    qpid-qmf-0.22-33.el6.x86_64
    qpid-tools-0.22-12.el6.noarch
    ruby193-rubygem-katello-1.5.0-78.el6sat.noarch
    rubygem-hammer_cli_katello-0.0.4-10.el6sat.noarch

Comment 6 Bryan Kearney 2014-09-11 12:23:22 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.


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