Bug 1868303

Summary: Updating new role shows 'The page you were looking for doesn't exist.'
Product: Red Hat Satellite Reporter: Stephen Wadeley <swadeley>
Component: Users & RolesAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: egolov, mhulan, mshira, oezr, pondrejk, tbrisker
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-2.3.1.14-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:17:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Wadeley 2020-08-12 09:18:19 UTC
Description of problem:

Saving a role (test_user) after setting the e-mail address, and navigating to:

https://cloud-qe-20.xxxx.redhat.com/users/8-test_user

displays page with:
The page you were looking for doesn't exist.


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


~]# rpm -q satellite
satellite-6.8.0-0.7.beta.el7sat.noarch

How reproducible:
unsure


Steps to Reproduce:
1. Create user
2. log in as user, see prompt asking you to set e-mail address
3. try disable e-mail, but you are stillforced to set e-mail. Set e-mail, save

Actual results:

error page with:
The page you were looking for doesn't exist.

Expected results:

it just works

Additional info:

I will attach production logs

Comment 2 Brad Buckingham 2020-08-13 14:08:57 UTC
Is this a regression from Satellite 6.7?

Comment 3 Stephen Wadeley 2020-08-17 08:28:44 UTC
Hello Brad

Testing on Sat6.7

As Admin User:

Created test_user, left all default settings, did not add a role yet , Authorized by * INTERNAL, Submit


log out
log in as test_user

Warning pop-up is displayed:

An email address is required, please update your account details

test_user is open in edit view at this page:
 Users > Edit test_user

I add my e-mail address, click Submit

Green Pop says: Successfully updated test_user.

I am at the /hosts endpoint

So this bug is not a regression

Thank you

Comment 6 Shira Maximov 2021-01-21 10:27:04 UTC
Connecting redmine issue https://projects.theforeman.org/issues/10577 from this bug

Comment 8 Peter Ondrejka 2021-02-16 15:21:14 UTC
Still reproducible on sat 6.9 snap 13

The initial failed submit attempt is necessary to reproduce:
- on the first login of the new viewer user click submit without passing the email, the form doesn't allow this
- then supply an email and submit > The page you were looking for doesn't exist

Supplying email on the first go leads to success, also the impersonate tool doesn't show this behavior

Comment 9 Marek Hulan 2021-02-19 15:19:12 UTC
I can't reproduce in upstream nor 6.9 snap 14, Peter, if you still see that, can you please share the reproducing environment? I logged in as a new user without email address, I submitted the form, I see the validation error, I fill in the address and submit again, I'm redirected to the /hosts and I'm informed I don't have view_hosts permissions.

Comment 10 Peter Ondrejka 2021-02-22 09:04:35 UTC
Hello, still seeing it on snap 14. My host has viewer permissions, will share reproducer

Comment 11 Marek Hulan 2021-02-22 11:39:59 UTC
Thanks for the reproducer, this is still reproducible even in the upstream, the fix is one-liner. Opening a PR in a moment.

Comment 12 Bryan Kearney 2021-02-23 09:53:52 UTC
Upstream bug assigned to mhulan

Comment 13 Bryan Kearney 2021-02-23 09:53:55 UTC
Upstream bug assigned to mhulan

Comment 14 Bryan Kearney 2021-02-25 12:04:34 UTC
Upstream bug assigned to tbrisker

Comment 15 Bryan Kearney 2021-02-27 20:04:13 UTC
Upstream bug assigned to mhulan

Comment 17 Peter Ondrejka 2021-03-08 11:40:06 UTC
Verified on Satellite 6.9 snap 16

Comment 20 errata-xmlrpc 2021-04-21 13:17:39 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 (Moderate: Satellite 6.9 Release), 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-2021:1313