I just upgraded our Sonar server from 2.5 to 2.12, following the steps described in the upgrade guide (pretty handy, by the way). Everything looked pretty well to me until I tried to configure groups privileges on a project. The interface shows tipical error window and Sonar log looks like this:
2011.12.19 15:22:22 ERROR o.s.s.ui.JRubyFacade Fail to render: http://sonar/roles/edit_groups?redirect=projects&resource=98784&role=codeviewer
undefined method `<=>' for nil:NilClass
On line #26 of app/views/roles/edit_groups.html.erb
23: <td style="padding: 5px 0pt;" valign="top">
24: <h2>Ungranted groups</h2>
25: <select name="from" id="from" size="20" style="margin: 5px 0pt; width: 300px;" multiple="multiple">
26: <% ungranted_groups.sort.each do |group| %>
27: <option value="<%= group ? group.id : '' -%>"><%= group_name(group) -%></option>
28: <% end %>
The diff against prior version pointed to 'ungranted_groups.sort.each' (on 2.5, it was 'ungranted_groups.each'). Can't provide a patch for this since I know little of JRuby (or whatever this is).
As a workaround for me, I switched back to 'ungranted_groups.each' and worked again like a charm.