Network graph not working in 5.2
Created by: petr-k
The network graph does not work for me at 5.2. (Though I am under the impression that it did work few days ago.)
From the client side, the request sent to http://servername/user.name/testproject/graph/master.json results in the following HTTP 500 response:
<!DOCTYPE html>
<html>
<head>
<title>We're sorry, but something went wrong (500)</title>
<link href="/static.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>500</h1>
<h3>We're sorry, but something went wrong.</h3>
<hr/>
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
</body>
</html>
The relevant log message in production.log:
Started GET "/user.name/testproject/graph/master.json" for 192.168.2.7 at 2013-06-10 17:39:27 +0200
Processing by GraphController#show as JSON
Parameters: {"project_id"=>"user.name/testproject", "id"=>"master"}
Rendered graph/show.json.erb (1.6ms)
Completed 500 Internal Server Error in 78ms
ActionView::Template::Error (comparison of String with 0 failed):
app/helpers/graph_helper.rb:7:in `>'
app/helpers/graph_helper.rb:7:in `get_refs'
app/views/graph/show.json.erb:16:in `block in _app_views_graph_show_json_erb__3675962_83326020'
app/views/graph/show.json.erb:6:in `map'
app/views/graph/show.json.erb:6:in `_app_views_graph_show_json_erb__3675962_83326020'