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

Web service /api/sources fails on resource with no last_snapshot

    XMLWordPrintable

    Details

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

      Description

      The web service /api/sources fails and returns error 500 when requested on a provisionned project.
      The reason is :
      https://github.com/SonarSource/sonar/blob/master/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/sources_controller.rb#L36

      This can also occurs for a deleted resource (e.g. file deleted in a project).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jb.lievremont OLD - Jean-Baptiste Lièvremont (Inactive)
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: