ICEfaces
  1. ICEfaces
  2. ICE-5162

Facelets ui:debug tag causes issue with inputFile on a slow connection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.8.2
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Facelets
    • Workaround Exists:
      Yes
    • Workaround Description:
      Remove the ui:debug tag or don't use the progressListener.

      Description

      The facelets ui:debug tag is stopping the upload of a file with the inputFile component. This only happens on a slow connection and if the inputFile has implemented the progressListener. Without the ui:debug tag on the page the upload proceeds normally. If the tag is on the page the upload quickly quits and throws the following exception:

      org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
      at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:983)
      at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)
      at java.io.FilterInputStream.read(Unknown Source)
      at org.apache.commons.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:125)
      at java.io.FilterInputStream.read(Unknown Source)
      at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)
      at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)
      at com.icesoft.faces.webapp.http.core.UploadServer$2.upload(UploadServer.java:197)
      at com.icesoft.faces.webapp.http.core.UploadServer$2.servlet(UploadServer.java:115)
      at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.detectEnvironment(ServletRequestResponse.java:262)
      at com.icesoft.faces.webapp.http.core.UploadServer.service(UploadServer.java:63)
      at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
      at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
      at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
      at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
      at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
      at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at de.jtel.webapp.common.LoggingFilter.doFilter(LoggingFilter.java:40)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
      at java.lang.Thread.run(Unknown Source)

        Issue Links

          Activity

          Arran Mccullough created issue -
          Hide
          Arran Mccullough added a comment -

          Attached simple test case that shows the issue.

          Show
          Arran Mccullough added a comment - Attached simple test case that shows the issue.
          Arran Mccullough made changes -
          Field Original Value New Value
          Attachment Case8724Example2.war [ 12103 ]
          Arran Mccullough made changes -
          Salesforce Case [5007000000A7JSB]
          Arran Mccullough made changes -
          Link This issue depends on ICE-5164 [ ICE-5164 ]
          Hide
          Ken Fyten added a comment -

          Marking as Closed / Invalid as part of legacy ICEfaces ICE / Compat component JIRA cleanup.

          Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf

          If the issue persists with the current ICEfaces release, please create a new JIRA for it.

          Show
          Ken Fyten added a comment - Marking as Closed / Invalid as part of legacy ICEfaces ICE / Compat component JIRA cleanup. Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf If the issue persists with the current ICEfaces release, please create a new JIRA for it.
          Ken Fyten made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Invalid [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Arran Mccullough
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: