v3.1.0 issue creation and display failed
Created by: dolanor
I created an issue on my gitlab, it didn't created and the button froze. And then I accessed the issue tab and I got a error 500 (I'm behind an apache2 vhost)
Here is the production log :
Started GET "/linux/issues/new" for 12.34.56.78 at 2012-12-22 14:32:57 +0100
Processing by IssuesController#new as JS
Parameters: {"project_id"=>"linux"}
Rendered issues/_form.html.haml (16.3ms)
Rendered issues/new.js.haml (18.3ms)
Completed 200 OK in 40ms (Views: 18.0ms | ActiveRecord: 3.4ms)
Started POST "/linux/issues" for 12.34.56.78 at 2012-12-22 14:33:07 +0100
Processing by IssuesController#create as JS
Parameters: {"utf8"=>"✓", "authenticity_token"=>"yayayayayayayayyaaya", "issue"=>{"title"=>"test", "assignee_id"=>"", "milestone_id"=>"", "label_list"=>"test", "description"=>"hello"}, "commit"=>"Submit new issue", "project_id"=>"linux"}
Rendered issues/_show.html.haml (8.0ms)
Rendered issues/create.js.haml (9.5ms)
Completed 500 Internal Server Error in 138ms
ActionView::Template::Error (PG::Error: ERROR: operator does not exist: character varying = integer
LINE 1: ...OUNT(*) FROM "notes" WHERE "notes"."noteable_id" = 2 AND "n...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT COUNT(*) FROM "notes" WHERE "notes"."noteable_id" = 2 AND "notes"."noteable_type" = 'Issue'):
8: %i.icon-tag
9: = label.name
10: - if issue.notes.any?
11: %span.btn.small.disabled.grouped
12: %i.icon-comment
13: = issue.notes.count
14: - if can? current_user, :modify_issue, issue
app/views/issues/_show.html.haml:11:in `_app_views_issues__show_html_haml__527086969989237589_63268720'
app/views/issues/create.js.haml:4:in `_app_views_issues_create_js_haml__182053685801030133_42122260'
app/controllers/issues_controller.rb:53:in `create'
Started GET "/linux/issues/1" for 12.34.56.78 at 2012-12-22 14:32:04 +0100
Processing by IssuesController#show as HTML
Parameters: {"project_id"=>"shanitanguy_wedding", "id"=>"1"}
Rendered votes/_votes_block.html.haml (3.2ms)
Rendered issues/show.html.haml within layouts/project_resource (18.7ms)
Completed 500 Internal Server Error in 38ms
ActionView::Template::Error (PG::Error: ERROR: operator does not exist: character varying = integer
LINE 1: ...otes".* FROM "notes" WHERE "notes"."noteable_id" = 1 AND "n...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT "notes".* FROM "notes" WHERE "notes"."noteable_id" = 1 AND "notes"."noteable_type" = 'Issue'):
1: .votes.votes-block
2: .progress
3: .bar.bar-success{style: "width: #{votable.upvotes_in_percent}%;"}
4: .bar.bar-danger{style: "width: #{votable.downvotes_in_percent}%;"}
5: .upvotes= "#{votable.upvotes} up"
6: .downvotes= "#{votable.downvotes} down"
app/roles/votes.rb:4:in `upvotes'
app/roles/votes.rb:30:in `votes_count'
app/roles/votes.rb:8:in `upvotes_in_percent'
app/views/votes/_votes_block.html.haml:3:in `_app_views_votes__votes_block_html_haml___513044466802111790_68560040'
app/views/issues/show.html.haml:20:in `_app_views_issues_show_html_haml___2517809853976435656_67731400'
app/controllers/issues_controller.rb:42:in `show