【问题标题】:Issues with SonarQube Version 4.3.1 - JIRA plugin issue (JIRA v6.0.7)SonarQube 版本 4.3.1 的问题 - JIRA 插件问题 (JIRA v6.0.7)
【发布时间】:2014-06-24 19:06:43
【问题描述】:

我可以从 Sonar 问题视图中链接到 JIRA。该问题已在 JIRA 中成功创建。 JIRA 描述中包含指向 Sonar 问题的链接。在这之后有两个问题:

  1. 我无法通过提供返回 Sonar 的链接从 JIRA 导航。点击那个链接给我:

很抱歉,出了点问题。
请过几分钟再试,如果问题仍然存在,请联系支持人员。
返回首页

  1. 上述消息也会显示 - 当我尝试从 Sonar 对右上角图标上的特定问题执行相同操作时。 (可能是因为它是同一个链接)。

以前有人见过吗?

sonar.log 显示如下内容:

2014.06.19 23:10:13 错误 [o.s.s.ui.JRubyFacade] 无法渲染:http://****:9000/issue/show/19b4e295-ac26-47d7-84f3-d60e0a49c67c?layout=false

nil:NilClass 的未定义方法“名称” 在 app/views/issue/_issue.html.erb 的第 137 行

134:          comment_html_id = "comment-#{comment.key}-#{rand(100)}" %>
135:       <div class="code-issue-comment" id="<%= comment_html_id -%>" data-comment-key="<%= comment.key -%>">
136:         <h4>
137:           <%= image_tag('reviews/comment.png') -%> &nbsp;<b><%= h( @issue_results.user(comment.userLogin()).name() ) -%></b>
138:           (<%= distance_of_time_in_words_to_now(Api::Utils.java_to_ruby_datetime(comment.createdAt)) -%>)
139:           <% if current_user && current_user.login==comment.userLogin %>
140:             &nbsp;

app/views/issue/_issue.html.erb:137
file:lib/jruby-complete-1.7.9.jar!/jruby/java/java_ext/java.util.rb:7:in `each'
app/views/issue/_issue.html.erb:133
org/jruby/RubyKernel.java:2227:in `send'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:20:in `render'
gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:30:in `benchmark'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:19:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/template.rb:205:in `render_template'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:44:in `render_partial'
gems/gems/actionpack-2.3.15/lib/action_view/partials.rb:184:in `render_partial'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:267:in `render'
app/views/issue/_show.html.erb:25
org/jruby/RubyKernel.java:2227:in `send'

【问题讨论】:

    标签: sonarqube


    【解决方案1】:

    此错误似乎来自 JIRA 插件对该问题创建的评论。 哪个帐户被用来点击“Link to JIRA”按钮?是你的吗?您确定此帐户仍然存在吗?

    问候

    【讨论】:

    • 感谢您的回复!使用了管理员帐户(用于此“测试”链接到 Jira 的问题)。但这有关系吗?换一种说法:Sonar 登录用户、sonarJira 插件配置的用户凭据如何关联?
    • 使用admin账号没问题,JIRA凭证也没有链接。将 SonarQube 问题链接到 JIRA 问题时似乎出现了一个奇怪的问题。您可以尝试将另一个 SonarQube 问题链接到 JIRA 吗?
    猜你喜欢
    • 1970-01-01
    • 2015-11-24
    • 2013-06-06
    • 1970-01-01
    • 1970-01-01
    • 2019-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多