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

Silently ignore errors when trying to send a webhook from a project that has just been deleted

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Webhook
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      No need to log an ERROR when the project was just deleted:

      2018.06.22 20:52:40 ERROR ce[AWQo1y7BbeCyhWW1Tqvd][o.s.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Execution of task class org.sonar.server.computation.task.projectanalysis.webhook.WebhookPostTask failed
      java.lang.IllegalStateException: the requested project 'AWQozJ6UHlEhtnAoG9JO' was not found
              at org.sonar.server.ws.WsUtils.checkStateWithOptional(WsUtils.java:115)
              at org.sonar.server.webhook.WebHooksImpl.readWebHooksFrom(WebHooksImpl.java:66)
              at org.sonar.server.webhook.WebHooksImpl.sendProjectAnalysisUpdate(WebHooksImpl.java:82)
              at org.sonar.server.computation.task.projectanalysis.webhook.WebhookPostTask.finished(WebhookPostTask.java:50)
              at org.sonar.server.computation.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.executeTask(PostProjectAnalysisTasksExecutor.java:113)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                simon.brandhof Simon Brandhof (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: