Bug 1465389 - ssh key creation in User throws 'page doesn't exists' error
ssh key creation in User throws 'page doesn't exists' error
Status: VERIFIED
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Users & Roles (Show other bugs)
6.3.0
Unspecified Unspecified
unspecified Severity medium (vote)
: GA
: --
Assigned To: Marek Hulan
Nikhil Kathole
:
Depends On:
Blocks: 1493109
  Show dependency treegraph
 
Reported: 2017-06-27 07:09 EDT by Jitendra Yejare
Modified: 2017-09-19 08:05 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
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)
Screenshot Attached (37.10 KB, image/png)
2017-06-27 07:09 EDT, Jitendra Yejare
no flags Details
screenshot of UI before saving user (33.02 KB, image/png)
2017-08-10 02:34 EDT, Nikhil Kathole
no flags Details
screenshot of UI ssh key create (16.49 KB, image/png)
2017-08-10 02:45 EDT, Nikhil Kathole
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 20137 None None None 2017-06-28 11:14 EDT

  None (edit)
Description Jitendra Yejare 2017-06-27 07:09:46 EDT
Created attachment 1292268 [details]
Screenshot Attached

Description of problem:
While creating a ssh key from new user dialog, clicking and submitting 'create ssh key' button throws 'The page you were looking for doesn't exist.' error.

Version-Release number of selected component (if applicable):
Satellite 6.3.0 snap 4

How reproducible:
Always

Steps to Reproduce:
1. Go to Admin -> Users -> New User -> ssh keys tab
2. Click on 'create SSH key' button to create new ssh key.


Actual results:
Redirected to page showing an error 'The page you were looking for doesn't exist.'

Expected results:
The satellite should allow to create a new ssh key with user.

Additional info:
Comment 3 Jitendra Yejare 2017-06-27 10:47:34 EDT
Adding failure logs from production.log:

```
017-06-27 10:45:06 927a33fa [app] [I] Started GET "/notification_recipients" for 10.65.223.122 at 2017-06-27 10:45:06 -0400
2017-06-27 10:45:06 927a33fa [app] [I] Processing by NotificationRecipientsController#index as JSON
2017-06-27 10:45:06 927a33fa [app] [I] Current user: admin (administrator)
2017-06-27 10:45:06 927a33fa [app] [I] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)



2017-06-27 10:45:07 02f3beea [app] [I] Started GET "/users//ssh_keys/new" for 10.65.223.122 at 2017-06-27 10:45:07 -0400
2017-06-27 10:45:07 02f3beea [app] [F] 
 | ActionController::RoutingError (No route matches [GET] "/users/ssh_keys/new"):
 |   lib/middleware/tagged_logging.rb:18:in `call'
 | 
 | 
2017-06-27 10:45:08 f250b88e [app] [I] Started GET "/users//ssh_keys/new" for 10.65.223.122 at 2017-06-27 10:45:08 -0400
2017-06-27 10:45:08 f250b88e [app] [F] 
 | ActionController::RoutingError (No route matches [GET] "/users/ssh_keys/new"):
 |   lib/middleware/tagged_logging.rb:18:in `call'
 | 
 | 
2017-06-27 10:45:08 e1cba46f [app] [I] Started GET "/notification_recipients" for 10.65.223.122 at 2017-06-27 10:45:08 -0400
2017-06-27 10:45:08 e1cba46f [app] [I] Processing by NotificationRecipientsController#index as JSON
2017-06-27 10:45:08 e1cba46f [app] [I] Current user: admin (administrator)
2017-06-27 10:45:08 e1cba46f [app] [I] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
```
Comment 4 Marek Hulan 2017-06-28 11:12:01 EDT
This happens only when the user is not saved yet. We shouldn't probably display create button until the user is already saved. Jitendra, I think this is not a blocker though. Could you please remove the blocker flag? Easy workaround is to create user, then edit him/her and create the ssh key from there.
Comment 5 Marek Hulan 2017-06-28 11:14:15 EDT
Created redmine issue http://projects.theforeman.org/issues/20137 from this bug
Comment 7 Jitendra Yejare 2017-06-28 12:02:34 EDT
Agree with comment 4.
Comment 8 pm-sat@redhat.com 2017-06-28 12:09:19 EDT
Upstream bug assigned to mhulan@redhat.com
Comment 9 pm-sat@redhat.com 2017-06-28 12:09:23 EDT
Upstream bug assigned to mhulan@redhat.com
Comment 10 pm-sat@redhat.com 2017-06-29 08:09:52 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20137 has been resolved.
Comment 11 Nikhil Kathole 2017-08-10 02:34 EDT
Created attachment 1311603 [details]
screenshot of UI before saving user

VERIFIED

Version Tested:
Satellite-6.3 Snap 10

After saving user, 'create ssh key' redirects to respective page and before saving user, it shows "In order to create the SSH key, the user must be saved first".
Comment 12 Nikhil Kathole 2017-08-10 02:45 EDT
Created attachment 1311605 [details]
screenshot of UI ssh key create

screen shot of page redirect after clicking 'create user key'

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