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-containing-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

Reply via email to