Description of problem: Accessing pages without providing email leading into error screen Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Create a user with minimum data (login, autorize by and password) 2. Add Role "Viewer" to user 3. Logout and Login with new user credentials. System will redirect to user edit page on first access. 4.Access some page. Ex: Content -> Product Actual results: Error msg on screen (see screenshot) Expected results: Meaningful error message. Additional info:
Created attachment 1265856 [details] Error page
This is reproducible upstream. It only affects controllers added from Katello. I tried to debug that but I was unable to find out why bastion controllers can't find Foreman route helpers. Brad, do you have some idea, who could look at this one?
Walden, is this something that you could investigate?
(In reply to Brad Buckingham from comment #4) > Walden, is this something that you could investigate? ehelms is probably the best person to look at this but I can give it a try first.
Created redmine issue http://projects.theforeman.org/issues/19529 from this bug
(In reply to Marek Hulan from comment #3) > This is reproducible upstream. It only affects controllers added from > Katello. I tried to debug that but I was unable to find out why bastion > controllers can't find Foreman route helpers. > > Brad, do you have some idea, who could look at this one? This also happens with legacy katello controllers (sync management and red hat repos). I'm wondering if this happens with any plugin that adds additional pages. Are we sure that something is incorrect on the katello side here? Also, if the email address is required, why do we allow a user to be created without one? I notice on the foreman pages you get redirected to the user page and told: "Error: An email address is required, please update your account details" We should probably make email address required on the new user form right?
Walden, I tested foreman_openscap and foreman_remote_execution controllers and they both work as expected. I suppose the email address is not required since user accounts are created by administrator which might know the right value. So after user logs in, he's asked to fill in the required field. While we could reconsider this behavior, I think this should be fixed on Katello side.
(In reply to Marek Hulan from comment #8) > Walden, I tested foreman_openscap and foreman_remote_execution controllers > and they both work as expected. I suppose the email address is not required > since user accounts are created by administrator which might know the right > value. So after user logs in, he's asked to fill in the required field. > While we could reconsider this behavior, I think this should be fixed on > Katello side. Works for me, thank you for testing those other plugins. Just to be clear I was proposing fixing the user form in addition to fixing this problem but I will leave that up to y'all to decide.
Upstream bug assigned to ehelms
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19529 has been resolved.
*** Bug 1384182 has been marked as a duplicate of this bug. ***
Verified in Satellite 6.3 Snap 35. A new user, without an email set, will be redirected to their account settings page when trying to navigate to any other page. Additionally, a notification pops up in the upper right corner warning them that they need to set their email. "Error: An email address is required, please update your account details" See screenshot for verification
Created attachment 1395936 [details] verification screenshot
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/RHSA-2018:0336