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

do not log when file part can't be read when large file is uploaded to SQ

    XMLWordPrintable

    Details

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

      Description

      The following lines can appears in logs as ERROR but they are useless to operations as they are caused by the client.

      java.lang.IllegalStateException: Can't read file part
      at org.sonar.server.ws.ServletRequest.readPart(ServletRequest.java:102)
      at org.sonar.server.ws.ServletRequest.readInputStreamParam(ServletRequest.java:85)
      at org.sonar.api.server.ws.internal.ValidatingRequest.paramAsInputStream(ValidatingRequest.java:83)
      at org.sonar.server.ce.ws.SubmitAction.handle(SubmitAction.java:100)
      at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:103)
      at org.sonar.server.ws.WebServiceFilter.doFilter(WebServiceFilter.java:86)
      at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:126)
      at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:76)
      at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:63)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.sonar.server.platform.web.SecurityServletFilter.doHttpFilter(SecurityServletFilter.java:72)
      at org.sonar.server.platform.web.SecurityServletFilter.doFilter(SecurityServletFilter.java:48)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.sonar.server.platform.web.RedirectFilter.doFilter(RedirectFilter.java:61)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.sonar.server.platform.web.requestid.RequestIdFilter.doFilter(RequestIdFilter.java:63)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.sonar.server.platform.web.RootFilter.doFilter(RootFilter.java:62)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:256)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Unexpected EOF read on the socket
      at org.apache.catalina.connector.Request.parseParts(Request.java:2874)
      at org.apache.catalina.connector.Request.parseParameters(Request.java:3177)
      at org.apache.catalina.connector.Request.getParameter(Request.java:1110)
      at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:381)
      at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:153)
      at org.sonar.server.ws.ServletRequest.readParam(ServletRequest.java:74)
      at org.sonar.api.server.ws.internal.ValidatingRequest.readParamOrDefaultValue(ValidatingRequest.java:132)
      at org.sonar.api.server.ws.internal.ValidatingRequest.param(ValidatingRequest.java:95)
      at org.sonar.api.server.ws.internal.ValidatingRequest.param(ValidatingRequest.java:70)
      at org.sonar.api.server.ws.Request.getParam(Request.java:301)
      at org.sonar.server.ce.ws.SubmitAction.handle(SubmitAction.java:92) ... 42 common frames omitted Caused by: org.apache.tomcat.util.http.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Unexpected EOF read on the socket
      at org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:297)
      at org.apache.catalina.connector.Request.parseParts(Request.java:2801) ... 52 common frames omitted Caused by: java.io.EOFException: Unexpected EOF read on the socket
      at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:717)
      at org.apache.coyote.http11.Http11InputBuffer.access$300(Http11InputBuffer.java:40)
      at org.apache.coyote.http11.Http11InputBuffer$SocketInputBuffer.doRead(Http11InputBuffer.java:1061)
      at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:139)
      at org.apache.coyote.http11.Http11InputBuffer.doRead(Http11InputBuffer.java:256)
      at org.apache.coyote.Request.doRead(Request.java:540)
      at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:319)
      at org.apache.catalina.connector.InputBuffer.checkByteBufferEof(InputBuffer.java:627)
      at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:342)
      at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:183)
      at org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:977)
      at org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:881)
      at java.io.InputStream.read(InputStream.java:101)
      at org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:98)
      at org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:68)
      at org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:293) ... 53 common frames omitted"
      

        Attachments

          Activity

            People

            Assignee:
            henri.gomez Henri Gomez (Inactive)
            Reporter:
            sebastien.lesaint Sebastien Lesaint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: