You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2016/05/20 12:56:13 UTC

[jira] [Updated] (SLING-5702) SlingFileUploadHandler creates unnecessary chunk when upload part is empty

     [ https://issues.apache.org/jira/browse/SLING-5702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated SLING-5702:
------------------------------------
    Fix Version/s:     (was: Servlets Post 2.3.12)

> SlingFileUploadHandler creates unnecessary chunk when upload part is empty
> --------------------------------------------------------------------------
>
>                 Key: SLING-5702
>                 URL: https://issues.apache.org/jira/browse/SLING-5702
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Servlets Post 2.3.10
>            Reporter: Stefan Egli
>
> SlingFileUploadHandler in [{{processChunk}}|https://github.com/apache/sling/blob/ded7f8d657ff54711d6e9bd7d6f76cca67c89df6/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/helper/SlingFileUploadHandler.java#L311] can create an oddly formatted chunk when {{value.getSize()==0}} - ie when an upload doesn't actually upload anything. This has been seen in a production case. It's not yet clear why {{processChunk}} is called with a data length of zero.
> The result is that you'll have a chunk named '{{chunk_n_n-1}}' which later on causes troubles when running the {{ChunkCleanUpTask}} (see SLING-5701).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)