|
I created a dashboard earlier this week. It was for my own testing purposes, so I didn't bother to make it public.
Days later, having enjoyed a holiday (Happy Birthday, America! :-), I realized I needed to test how anonymous users would see the widget I was working on.
So I copied the URL from the browser I was working in, to one that didn't have a session token. (Similar to normal user saying "Hey Bob, Look at this great dashboard I made") And got the "We're sorry, but something went wrong" page, and this in sonar.log: 2012.07.05 11:27:33 ERROR o.s.s.ui.JRubyFacade Fail to render: http://localhost:9000/dashboard/index/5430?did=17
undefined method `column_layout' for nil:NilClass On line #5 of app/views/dashboard/index.html.erb 2: <%= render :partial => 'header', :locals => {:back => false} %>
3: <div style="width: 100%;display: block; float: none"> 4: <% 5: columns=@dashboard.column_layout.split('-') 6: for index in 1..columns.size()
7: %> 8: <!-- the right margin with 1px is a trick for IE. See SONAR-2637 --> app/views/dashboard/index.html.erb:5 org/jruby/RubyKernel.java:2056:in `send'
org/jruby/RubyKernel.java:2064:in `send' org/jruby/RubyProc.java:268:in `call' org/jruby/RubyProc.java:228:in `call' file:/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/head.rb:9:in `call'
file:/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/methodoverride.rb:24:in `call' file:/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/session_store.rb:42:in `call' file:/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/session_store.rb:39:in `call'
file:/lib/jruby-rack-1.0.0.1.jar!/rack/adapter/rails.rb:36:in `serve_rails' file:/lib/jruby-rack-1.0.0.1.jar!/rack/adapter/rails.rb:41:in `call' file:/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:185:in `call'
file:/lib/jruby-rack-1.0.0.1.jar!/rack/handler/servlet.rb:19:in `call' INFO | jvm 1 | 2012/07/05 11:27:33 | C:/sonar/sonar-3.1-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130 warning: Object#id will be deprecated; use Object#object_id
Clearly, this is a case of "Doctor, it hurts when I go like this," but I'm thinking that this use case probably shouldn't have generated the Ruby equivalent of an NPE(?)
And it would have been nice to get something like: "You don't have permissions to view that page. It belongs to [username]." G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems Shaw Industries Inc, 201 S. Hamilton St. Dalton Ga 30720 ****************************** Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail. If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender. Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company or its subsidiaries. ****************************** |
|
You're right Ann, feel free to create a JIRA ticket !
Thanks Freddy
-----
Sonar for Continuous Inspection
On Thu, Jul 5, 2012 at 5:32 PM, Ann Campbell <[hidden email]> wrote: I created a dashboard earlier this week. It was for my own testing purposes, so I didn't bother to make it public. |
|
http://jira.codehaus.org/browse/SONAR-3629
:-)
On Thu, Jul 5, 2012 at 1:23 PM, Freddy Mallet <[hidden email]> wrote: You're right Ann, feel free to create a JIRA ticket ! G. Ann Campbell Sr. Systems Engineer, IS Production Systems - Shop Floor Systems Shaw Industries Inc, 201 S. Hamilton St.
Dalton Ga 30720 ****************************** Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail. If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender. Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company or its subsidiaries. ****************************** |
| Powered by Nabble | Edit this page |
