You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/12/10 08:02:00 UTC

[jira] [Work logged] (FILEUPLOAD-274) File Upload fails to recognize RFC 5987-compliant filename

     [ https://issues.apache.org/jira/browse/FILEUPLOAD-274?focusedWorklogId=356871&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-356871 ]

ASF GitHub Bot logged work on FILEUPLOAD-274:
---------------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Dec/19 08:01
            Start Date: 10/Dec/19 08:01
    Worklog Time Spent: 10m 
      Work Description: anselm94 commented on pull request #24: FILEUPLOAD-274: RFC-5987 compliance
URL: https://github.com/apache/commons-fileupload/pull/24
 
 
   `RFC 5987` adds support for encoding mechanism for use in MIME headers in HTTP headers. It recommends following formats
   - ASCII charset: `<paramname>: <paramvalue>`
   - Non ASCII Charset: `<paramname>*: <charset>'<lang>'<percent-encoded>`
   
   The specification has following things to say
   
   - **[`RFC 2231`](https://tools.ietf.org/html/rfc2231)** - MIME Type extension for Email and other protocols to support multiple charsets and languages. (Having Asterisks (`*`) at the end of parameter name for extensions)
   
   - **[`RFC 5987`](https://tools.ietf.org/html/rfc5987)** -  Extends on `RFC 2231` for extended charsets and languages, but [restricts charsets](https://tools.ietf.org/html/rfc5987#section-3.2) to `UTF-8` and `ISO-8859-1` and [no continuations](https://tools.ietf.org/html/rfc5987#section-4) (multiple extensions for same param name) as HTTP headers has no limitations in header size
   
   - **[`RFC 7578`](https://tools.ietf.org/html/rfc7578)** - Extends on `RFC 5987` specifically for `multipart/form-data`, but [rejects usage](https://tools.ietf.org/html/rfc7578#section-4.2) of Asterisks (`*`)
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 356871)
    Remaining Estimate: 0h
            Time Spent: 10m

> File Upload fails to recognize RFC 5987-compliant filename
> ----------------------------------------------------------
>
>                 Key: FILEUPLOAD-274
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-274
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.3.2
>            Reporter: Vsevolod Poletaev
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I think there is incorrect behaviour in getFileName() method of FileUploadBase class, as it ignores RFC-5987-compliant filename* parameter, and then findNextItem() method incorrectly treats this part of request as form filed. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)