arachni-ui-web
arachni-ui-web copied to clipboard
Profile Global and Others' tabs broken
trafficstars
These tabs return 500 response. I think it is because I deleted the original Admin user.
Started GET "/profiles?action=index&controller=profiles&tab=others" for 127.0.0.1 at 2016-05-19 16:28:03 -0400
Processing by ProfilesController#index as HTML
Parameters: {"tab"=>"others"}
Rendered profiles/_import.html.erb (3.0ms)
Rendered profiles/_table.html.erb (20.4ms)
Rendered profiles/index.html.erb within layouts/application (25.7ms)
Completed 500 Internal Server Error in 83ms (ActiveRecord: 10.2ms)
ActionView::Template::Error (No route matches {:action=>"show", :controller=>"users", :id=>nil} missing required keys: [:id]):
167: <% if profile.owner == current_user %>
168: <span class="label">You</span>
169: <% else %>
170: <%= link_to profile.owner, user_path( profile.owner ) %>
171: <% end %>
172: </td>
173: <% end %>
app/views/profiles/_table.html.erb:170:in `block in _app_views_profiles__table_html_erb___4138441391663861063_40982680'
app/views/profiles/_table.html.erb:145:in `_app_views_profiles__table_html_erb___4138441391663861063_40982680'
app/views/profiles/index.html.erb:34:in `_app_views_profiles_index_html_erb__1721175088394700753_41147920'
app/controllers/profiles_controller.rb:24:in `index'
Wow, this one slipped through the cracks, I'll have a look at it soon but yes it's because the owner (admin in this case) was deleted. Sorry for the delay.