You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Paul Mietz Egli (JIRA)" <ji...@apache.org> on 2010/07/14 19:45:51 UTC

[jira] Updated: (CAMEL-2949) Attachment DataHander.getName() returns the name of the temporary storage file, not the MIME part name

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

Paul Mietz Egli updated CAMEL-2949:
-----------------------------------

    Attachment: CAMEL-2949.patch

Patch for CamelFileDataSource which exposes the attachment name instead of the temporary file name.  Includes update to camel-jetty MultiPartFormTest unit test class to verify change.

> Attachment DataHander.getName() returns the name of the temporary storage file, not the MIME part name
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2949
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2949
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 2.5.0
>            Reporter: Paul Mietz Egli
>         Attachments: CAMEL-2949.patch
>
>
> When multipart file uploads are converted to message attachments in the DefaultHttpBinding class, the DataHandler that is created for the attachment returns the name of the temporary file created by Jetty, not the value of the name from the Content-Disposition header.  It would be useful to have the actual attachment name instead of the temporary filename in the DataHandler object for easier downstream processing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.