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

/api/sources?resource=MyFile return a error 500 when user have no permission to access to the file

    XMLWordPrintable

    Details

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

      Description

      Here is the stacktrace : 2014.05.27 16:05:49 ERROR [o.s.s.ui.JRubyFacade] Fail to render: http://sonar.ourcompany.com/api/sources?resource=com.ourcompany1.tests:test-project-222:src/main/java/com/ourcompany/tests/test2/MyClass.java&format=txt
      Can only render or redirect once per action
      /home/sonar/sonarqube-4.3/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:891:in `render'
      /home/sonar/sonarqube-4.3/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
      /home/sonar/sonarqube-4.3/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
      jar:file:/home/sonar/sonarqube-4.3/web/WEB-INF/lib/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/1.8/benchmark.rb:308:in `realtime'
      /home/sonar/sonarqube-4.3/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
      /home/sonar/sonarqube-4.3/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
      /home/sonar/sonarqube-4.3/web/WEB-INF/app/controllers/application_controller.rb:214:in `render_error'
      org/jruby/RubyMethod.java:128:in `call'

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            julien.lancelot Julien Lancelot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: