[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685108#comment-13685108
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1372:
-----------------------------------------------

Believe it or not, but this is how old browsers used to behave. We can choose 
to discontinue support for such behavior in 4.3 and upgrade the browser 
compatibility mode to something more up to date. This would require though 
someone to invest a few hours figuring out how Firefox, Chrome and IE go about 
generating multipart content these days and whether or they behavior is 
consistent enough. At any rate I see no way around doing some work on 
HttpMultipart in order to get the behavior you want.

In your particular case though you could also consider using Mime4j instead of 
HttpMime which should give you a full control over the process of MIME content 
generation. The only trouble with Mime4j that it is still API unstable and 
there is no hope of a 1.0 release any time soon.

Oleg
                
> Content-Disposition header in form data does not adhere to RFC6266
> ------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1372
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1372
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpMime
>    Affects Versions: 4.2.5
>            Reporter: Karl Wright
>             Fix For: 4.3 Beta3
>
>
> The Content-disposition header, as it appears for an item of form data, does 
> not allow for UTF-8 encoding as specified in RFC6266, as described here:
> http://tools.ietf.org/html/rfc6266
> This is causing ManifoldCF severe problems working in Japan with Solr, since 
> Solr content extraction relies on accurate filenames in order to determine 
> the likely document encoding.
> A fix for the 4.2.x branch will be needed, I am afraid.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to