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

Error when calling /api/violations webservice API

    XMLWordPrintable

    Details

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

      Description

      When i do this:
      http://sonarserver/api/violations?resource=9131&depth=-1
      it returns the violations as expected.

      If I add include_review:
      http://sonarserver/api/violations?resource=9131&depth=-1&include_review=true

      A 500 server error is returned with the following response body:
      undefined method `login' for nil:NilClass

      This only happens on one of our modules (resource=9131) and only if MAJOR is included in the priorities. It works if I remove MAJOR from the priorities.
      http://sonarserver/api/violations?resource=9131&depth=-1&include_review=true&priorities=INFO,MINOR,CRITICAL,BLOCKER

      The only thing I see in the logs is in profiling.log:
      2012.09.20 12:37:50 ERROR rails undefined method `login' for nil:NilClass

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: