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

Do not display error in logs when web request is aborted

    XMLWordPrintable

    Details

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

      Description

      When the browser is canceling a request, the following server's log is sometimes generated :

      2016.08.25 15:01:33 WARN  web[o.s.s.w.WebServiceEngine] Request http://sonarqube.com/api/issues/do_transition has been aborted by client, error is 'org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe'
      2016.08.25 15:01:33 ERROR web[o.s.s.ws.WsUtils] Error while writing protobuf message org.sonarqube.ws.Issues.Operation[issue { key: "AVbBVAFafOF6DJUezlXb" rule: "squid:S2387" severity: MAJOR component: "com.cognifide.aemrules:aemrules:src/main/java/com/cognifide/aemrules/checks/InjectorTryWithResourcesCheck.java" componentId: 1107334 project: "com.cognifide.aemrules:aemrules" line: 21 textRange { startLine: 21 endLine: 21 startOffset: 31 endOffset: 43 } resolution: "WONTFIX" status: "RESOLVED" message: "\"RULE_MESSAGE\" is the name of a field in \"InjectorShouldBeClosedCheck\"." debt: "5min" author: "michal.chudy@cognifide.com" tags: "confusing" transitions { transitions: "reopen" } actions { actions: "comment" } comments { } creationDate: "2016-08-25T12:51:46+0200" updateDate: "2016-08-25T15:00:26+0200" type: CODE_SMELL effort: "5min" } components { id: 1107204 key: "com.cognifide.aemrules:aemrules" uuid: "AVbA71SSZtUcgpiIs060" enabled: true qualifier: "TRK" name: "AEM Rules for SonarQube" longName: "AEM Rules for SonarQube" } components { id: 1107334 key: "com.cognifide.aemrules:aemrules:src/main/java/com/cognifide/aemrules/checks/InjectorTryWithResourcesCheck.java" uuid: "AVbBU_9sfOF6DJUezlWH" enabled: true qualifier: "FIL" name: "InjectorTryWithResourcesCheck.java" longName: "src/main/java/com/cognifide/aemrules/checks/InjectorTryWithResourcesCheck.java" path: "src/main/java/com/cognifide/aemrules/checks/InjectorTryWithResourcesCheck.java" projectId: 1107204 subProjectId: 1107204 } rules { key: "squid:S2387" name: "Child class fields should not shadow parent class fields" lang: "java" status: READY langName: "Java" }]
      

      These logs should not appear as there are no error : the request could have take too much time to respond and then browser has decided to stop the request.

        Attachments

          Activity

            People

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

              Dates

              Due:
              Created:
              Updated:
              Resolved: