Bug 915253 - [fork][US3419]Sometimes show LoadError in AccountController#show exception when access my account page
Summary: [fork][US3419]Sometimes show LoadError in AccountController#show exception wh...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-25 10:01 UTC by Rony Gong 🔥
Modified: 2015-05-15 01:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-15 14:12:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
site/development.log (2.37 KB, text/plain)
2013-02-25 10:01 UTC, Rony Gong 🔥
no flags Details

Description Rony Gong 🔥 2013-02-25 10:01:53 UTC
Created attachment 702270 [details]
site/development.log

Description of problem:
Sometimes show exception like " LoadError in AccountController#show " when  accessing my account page, it will be rendered well if you refresh again.


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

How reproducible:
Randomly

Steps to Reproduce:
1.User sign in openshift
2.Remove all authorizations of this user by click the button "revoke all"
3.Re-click the my account page
  
Actual results:
Show exception:
LoadError in AccountController#show

Expected /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.5.5/app/models/user_associations.rb to define UserAssociations
Rails.root: /var/www/openshift/site

Application Trace | Framework Trace | Full Trace
app/controllers/account/extended_dashboard.rb:14:in `block in show'
Request

Parameters:

None
Show session dump

Show env dump

Response

Headers:

None


Expected results:
Should not how exception.

Additional info:

Comment 1 Rony Gong 🔥 2013-02-25 10:03:05 UTC
The exception info when access account page:
LoadError in AccountController#show

Expected /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.5.5/app/models/user_associations.rb to define UserAssociations
Rails.root: /var/www/openshift/site

Application Trace | Framework Trace | Full Trace
activesupport (3.2.8) lib/active_support/dependencies.rb:503:in `load_missing_constant'
activesupport (3.2.8) lib/active_support/dependencies.rb:192:in `block in const_missing'
activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `each'
activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `const_missing'
activesupport (3.2.8) lib/active_support/inflector/methods.rb:230:in `block in constantize'
activesupport (3.2.8) lib/active_support/inflector/methods.rb:229:in `each'
activesupport (3.2.8) lib/active_support/inflector/methods.rb:229:in `constantize'
openshift-origin-console (1.5.5) config/initializers/inflections.rb:15:in `safe_constantize'
openshift-origin-console (1.5.5) config/initializers/inflections.rb:36:in `safe_constantize'
openshift-origin-console (1.5.5) lib/active_resource/reflection.rb:26:in `create_reflection'
openshift-origin-console (1.5.5) lib/active_resource/associations/builder/association.rb:26:in `build'
openshift-origin-console (1.5.5) lib/active_resource/associations/builder/association.rb:17:in `build'
openshift-origin-console (1.5.5) lib/active_resource/associations.rb:104:in `belongs_to'
openshift-origin-console (1.5.5) app/models/key.rb:25:in `<class:Key>'
openshift-origin-console (1.5.5) app/models/key.rb:4:in `<top (required)>'
activesupport (3.2.8) lib/active_support/dependencies.rb:469:in `load'
activesupport (3.2.8) lib/active_support/dependencies.rb:469:in `block in load_file'
activesupport (3.2.8) lib/active_support/dependencies.rb:639:in `new_constants_in'
activesupport (3.2.8) lib/active_support/dependencies.rb:468:in `load_file'
activesupport (3.2.8) lib/active_support/dependencies.rb:353:in `require_or_load'
activesupport (3.2.8) lib/active_support/dependencies.rb:502:in `load_missing_constant'
activesupport (3.2.8) lib/active_support/dependencies.rb:192:in `block in const_missing'
activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `each'
activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `const_missing'
activesupport (3.2.8) lib/active_support/dependencies.rb:514:in `load_missing_constant'
activesupport (3.2.8) lib/active_support/dependencies.rb:192:in `block in const_missing'
activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `each'
activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `const_missing'
activesupport (3.2.8) lib/active_support/dependencies.rb:514:in `load_missing_constant'
activesupport (3.2.8) lib/active_support/dependencies.rb:192:in `block in const_missing'
activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `each'
activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `const_missing'
app/controllers/account/extended_dashboard.rb:14:in `block in show'
openshift-origin-console (1.5.5) app/controllers/async_aware.rb:11:in `block in async'
Request

Parameters:

None
Show session dump

_csrf_token: "2+huJ77OZNPZWsPtOxCQRymXXEDRJ+sbm4jtzCZc6u0="
api_ticket: "383ae38ce0e47e8704992cdcac2987fd5efed14f75ecb42b9c1f60792aea6214"
caps: nil
captcha_status: nil
captcha_type: nil
domain: "domx1"
login: "xtian+test1"
session_id: "19290deb1211457ba07be6306c43d0bd"
streamline_type: :simple
terms: true
ticket: "0|UkeK0LD6kvlcWVdPpjdwecRa0TpggTIsXa0"
Show env dump

HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_CHARSET: "ISO-8859-1,utf-8;q=0.7,*;q=0.3"
HTTP_ACCEPT_ENCODING: "gzip,deflate,sdch"
HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.8"
REMOTE_ADDR: "127.0.0.1"
SERVER_NAME: "ec2-50-16-178-82.compute-1.amazonaws.com"
SERVER_PROTOCOL: "HTTP/1.1"
Response

Headers:

Comment 2 Clayton Coleman 2013-02-25 19:45:20 UTC
Fixed in 421f8bc, will be in next fork ami or master.

Comment 3 openshift-github-bot 2013-02-26 00:06:55 UTC
Commit pushed to master at https://github.com/openshift/li

https://github.com/openshift/li/commit/421f8bcb101b6eff60214232371ec2251adcc983
Bug 915253 - Eagerly load referenced model classes in development mode

Comment 4 Rony Gong 🔥 2013-02-26 05:12:16 UTC
Verified on devenv_2860
Here the exception can't happened anymore.
Steps:
1.User sign in openshift
2.Remove all authorizations of this user by click the button "revoke all"
3.Re-click the my account page


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