On Wed, 2017-06-21 at 06:38 -0400, Karl Wright wrote:
> Hi Oleg et al,
> 
> ManifoldCF is having an issue with some repositories that use
> filenames
> that contain spaces and quotes.  Specifically, when we send this data
> as a
> multipart form to Solr, it doesn't get properly interpreted.  I've
> chased
> this down to the filename addendum of the Content Disposition header
> for
> the body, which has both "name" and "filename" subsections, and the
> "filename" subsection is just jammed in there between quotes (see
> FormBodyPartBuilder.java).  That greatly constrains what can be used
> as a
> file name etc.
> 
> There is apparently an encoding that you're supposed to do for
> filenames,
> that Httpclient isn't doing:
> 
> https://stackoverflow.com/questions/18634337/how-to-set-filename-cont
> aining-spaces-in-content-disposition-header
> 
> Should we attempt to add this encoding logic to the form body part
> builder?  It would seem appropriate since httpclient is constructing
> the
> header.
> 
> 
> Karl

Please do.

Cheers

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to