You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Satya Deep Maheshwari (JIRA)" <ji...@apache.org> on 2016/09/02 10:27:20 UTC
[jira] [Commented] (SLING-6017) Streaming Uplads detection of
request parameters is wrong.
[ https://issues.apache.org/jira/browse/SLING-6017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15458155#comment-15458155 ]
Satya Deep Maheshwari commented on SLING-6017:
----------------------------------------------
[~ianeboston], if I use a POST request as follows:
{code}
curl -v -F key1=value1 -F file=@test.jpg http://admin:admin@localhost:4502/content/test?uploadmode=stream
{code}
then for the {{part}} containing the file binary, {{part.getSubmittedFileName()}} returns {{file}} rather than {{test.jpg}} . This seems incorrect as per the expected behavior of {{part.getSubmittedFileName()}} documented at this [link|https://tomcat.apache.org/tomcat-8.0-doc/servletapi/javax/servlet/http/Part.html].
cc [~shgupta@adobe.com]
> Streaming Uplads detection of request parameters is wrong.
> ----------------------------------------------------------
>
> Key: SLING-6017
> URL: https://issues.apache.org/jira/browse/SLING-6017
> Project: Sling
> Issue Type: Bug
> Components: Engine
> Affects Versions: Engine 2.6.2
> Reporter: Ian Boston
> Assignee: Ian Boston
> Fix For: Engine 2.6.4
>
>
> The way in which a request field that is not a file upload is detected is wrong. Reported in SLING-5948.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)