Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7381

Log flooding with web page component/index

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6
    • Component/s: Web API
    • Labels:

      Description

      If URL has no parameter "component" then it must not log the following error:

      2016.02.20 06:43:40 ERROR web[o.s.s.ui.JRubyFacade] Fail to render: https://nemo.sonarqube.org/component/index
      undefined method `uuid' for nil:NilClass
      	On line #6 of app/views/component/index.html.erb
      
          3:     (function () {
          4:       window.sonarqube.el = '#body';
          5:       window.sonarqube.file = {
          6:         uuid: '<%= @resource.uuid -%>',
          7:         key: '<%= @resource.key -%>'
          8:         <% if @line %>, line: <%= @line -%><% end %>
          9:       };
      
          app/views/component/index.html.erb:6:in `block_called_from_erb?'
          org/jruby/RubyProc.java:290:in `call'
          org/jruby/RubyProc.java:224:in `call'
          gems/gems/actionpack-2.3.15/lib/action_view/helpers/capture_helper.rb:36:in `capture'
          gems/gems/actionpack-2.3.15/lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer'
          gems/gems/actionpack-2.3.15/lib/action_view/helpers/capture_helper.rb:36:in `capture'
          gems/gems/actionpack-2.3.15/lib/action_view/helpers/capture_helper.rb:120:in `content_for'
          app/views/component/index.html.erb:1
          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/template.rb:205:in `render_template'
          gems/gems/actionpack-2.3.15/lib/action_view/base.rb:265:in `render'
          gems/gems/actionpack-2.3.15/lib/action_view/base.rb:348:in `_render_with_layout'
          gems/gems/actionpack-2.3.15/lib/action_view/base.rb:346:in `_render_with_layout'
          gems/gems/actionpack-2.3.15/lib/action_view/base.rb:262:in `render'
          gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1252:in `render_for_file'
          gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:942:in `render'
          gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
          gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
          app/controllers/component_controller.rb:38:in `index'
          org/jruby/RubyKernel.java:2223:in `send'
          gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1333:in `perform_action'
          gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:617:in `call_filters'
          gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
          gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
          gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
          gems/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
          gems/gems/actionpack-2.3.15/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
          org/jruby/RubyKernel.java:2223:in `send'
          gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:532:in `process'
          gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:606:in `process_with_filters'
          gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:391:in `process'
          gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:386:in `call'
          gems/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:450:in `call'
          gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:87:in `dispatch'
          gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:85:in `dispatch'
          gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:121:in `_call'
          gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
          org/jruby/RubyProc.java:290:in `call'
          org/jruby/RubyProc.java:224:in `call'
          gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `call'
          gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
          gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:9:in `cache'
          gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:28:in `call'
          gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
          config/environment.rb:67:in `call'
          gems/gems/actionpack-2.3.15/lib/action_controller/string_coercion.rb:25:in `call'
          gems/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:15:in `call'
          file:/vol/sonar/sonarqube-5.4-RC2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/session_store.rb:70:in `context'
          gems/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:26:in `call'
          gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:106:in `call'
          file:/vol/sonar/sonarqube-5.4-RC2/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:34:in `serve_rails'
          file:/vol/sonar/sonarqube-5.4-RC2/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:39:in `call'
          file:/vol/sonar/sonarqube-5.4-RC2/lib/server/jruby-rack-1.1.13.2.jar!/rack/handler/servlet.rb:22:in `call'
      

        Attachments

          Activity

            People

            Assignee:
            teryk.bellahsene Teryk Bellahsene
            Reporter:
            simon.brandhof Simon Brandhof (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: