Bug 1199915 - User unable to login if it has only access to "VM Access rule" in product feature tree
Summary: User unable to login if it has only access to "VM Access rule" in product fea...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: GA
: 5.4.0
Assignee: Dávid Halász
QA Contact: Aziza Karol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-09 09:24 UTC by Aziza Karol
Modified: 2015-06-16 12:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-16 12:52:02 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
err (13.58 KB, image/png)
2015-03-09 09:24 UTC, Aziza Karol
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Aziza Karol 2015-03-09 09:24:11 UTC
Created attachment 999461 [details]
err

Description of problem:


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

How reproducible:
100%

Steps to Reproduce:
1.create a role having access to only "VM Access rule"(infrastructure->virtual machine) in product feature tree.
2.create a group using the above role
3.create user with the above created  group
4.Try to login with the new user  

Actual results:

"The page you were looking for doesn't exist.
You may have mistyped the address or the page may have moved." is displayed in  UI. see attached screenshot

Expected results:
should be able to login


Additional info:



production.log:

[----] W, [2015-03-09T03:24:12.280311 #2286:4dfea4]  WARN -- : WARNING: Can't verify CSRF token authenticity
[----] I, [2015-03-09T03:24:12.444116 #2286:4dfea4]  INFO -- : Completed 200 OK in 163.9ms (Views: 0.9ms | ActiveRecord: 15.3ms)
[----] I, [2015-03-09T03:24:12.764975 #2286:4dfea4]  INFO -- : Started GET "/dashboard/authenticate" for 127.0.0.1 at 2015-03-09 03:24:12 -0400
[----] F, [2015-03-09T03:24:12.767612 #2286:4dfea4] FATAL -- : 
ActionController::RoutingError (No route matches [GET] "/dashboard/authenticate"):
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/rack/logger.rb:32:in `call_app'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/rack/logger.rb:18:in `call'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.5) lib/rack/runtime.rb:17:in `call'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/activesupport/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.5) lib/rack/lock.rb:15:in `call'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_dispatch/middleware/static.rb:63:in `call'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/engine.rb:484:in `call'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/application.rb:231:in `call'
  rack (1.4.5) lib/rack/content_length.rb:14:in `call'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/rack/log_tailer.rb:17:in `call'
  thin (1.3.1) lib/thin/connection.rb:80:in `block in pre_process'
  thin (1.3.1) lib/thin/connection.rb:78:in `catch'
  thin (1.3.1) lib/thin/connection.rb:78:in `pre_process'
  thin (1.3.1) lib/thin/connection.rb:53:in `process'
  thin (1.3.1) lib/thin/connection.rb:38:in `receive_data'
  eventmachine (1.0.7) lib/eventmachine.rb:187:in `run_machine'
  eventmachine (1.0.7) lib/eventmachine.rb:187:in `run'
  thin (1.3.1) lib/thin/backends/base.rb:61:in `start'
  thin (1.3.1) lib/thin/server.rb:159:in `start'
  rack (1.4.5) lib/rack/handler/thin.rb:13:in `run'
  rack (1.4.5) lib/rack/server.rb:268:in `start'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands/server.rb:70:in `start'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands.rb:55:in `block in <top (required)>'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands.rb:50:in `tap'
  /opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands.rb:50:in `<top (required)>'
  script/rails:6:in `require'
  script/rails:6:in `<main>'

Comment 3 CFME Bot 2015-03-19 17:45:47 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/062bfac52f60922a013970d706adc20940775bb0

commit 062bfac52f60922a013970d706adc20940775bb0
Author:     Dávid Halász <dhalasz>
AuthorDate: Wed Mar 18 11:29:47 2015 +0100
Commit:     Dávid Halász <dhalasz>
CommitDate: Wed Mar 18 11:29:47 2015 +0100

    Display login error message when an authorized startpage isn't available
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1199915

 vmdb/app/services/user_validation_service.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comment 5 Aziza Karol 2015-04-21 05:29:52 UTC
Flash message "The user's role is not authorized for any access, please contact the administrator!" displayed.

Verified:
5.4.0.0.22.20150420163946_26004d1

Comment 7 errata-xmlrpc 2015-06-16 12:52:02 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, 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://rhn.redhat.com/errata/RHBA-2015-1100.html


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