Bug 1384182 - Unable to view errata page as a user that doesn't have a name and email defined
Summary: Unable to view errata page as a user that doesn't have a name and email defined
Keywords:
Status: CLOSED DUPLICATE of bug 1435414
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.2.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-12 18:26 UTC by jcallaha
Modified: 2019-08-12 16:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-15 11:34:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description jcallaha 2016-10-12 18:26:27 UTC
Description of problem:
When attempting to view the errata page as a user, who didn't have a name or email address listed, I see the following error message.

Oops, we're sorry but something went wrong No route matches {:action=>"edit", :bastion_page=>"errata", :controller=>"users", :id=>#<User id: 9, login: "testuser", firstname: "", lastname: "", mail: "", admin: false, last_login_on: "2016-10-12 17:49:18", auth_source_id: 1, created_at: "2016-10-12 17:20:23", updated_at: "2016-10-12 17:49:18", password_hash: "e0db5439af0dec77e634f4a4f7848ab7cae207eb", password_salt: "306f342ad07c248447a56bb2eb072664303ab5b3", locale: nil, avatar_hash: nil, default_organization_id: 1, default_location_id: nil, lower_login: "testuser", mail_enabled: true, timezone: "">} missing required keys: []

Version-Release number of selected component (if applicable):
Satellite 6.2.3 Snap 3

How reproducible:
Always

Steps to Reproduce:
1. Create a new user with the permissions to view the errata page. Ensure that you do not fill out the name and email address.
2. Navigate to Content -> Errata

Actual results:
Unable to navigate to the page. The following error is seen:
Oops, we're sorry but something went wrong No route matches {:action=>"edit", :bastion_page=>"errata", :controller=>"users", :id=>#<User id: 9, login: "testuser", firstname: "", lastname: "", mail: "", admin: false, last_login_on: "2016-10-12 17:49:18", auth_source_id: 1, created_at: "2016-10-12 17:20:23", updated_at: "2016-10-12 17:49:18", password_hash: "e0db5439af0dec77e634f4a4f7848ab7cae207eb", password_salt: "306f342ad07c248447a56bb2eb072664303ab5b3", locale: nil, avatar_hash: nil, default_organization_id: 1, default_location_id: nil, lower_login: "testuser", mail_enabled: true, timezone: "">} missing required keys: []

Expected results:
Navigation should be successful.

Comment 1 jcallaha 2016-10-12 18:27:51 UTC
An easy workaround is to add a name and email address to the user.

Comment 3 Marek Hulan 2017-09-15 11:34:52 UTC
Closing as a duplicate, tested the fix from there and it fixes the issue for errata page too.

*** This bug has been marked as a duplicate of bug 1435414 ***


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