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

Karl Wright commented on CONNECTORS-623:
----------------------------------------

Hi Abe-san,

Thank you for the data.

Headers in HTTP are supposed to be 7-bit ASCII, which is probably why it comes 
up as "??????.txt".  Although the extension is right, since that is always 
ASCII, this may never have worked to be able to transmit an accurate and 
complete file name.  In my code, before we went to SolrJ and HttpClient, I used 
UTF-8, as follows:

{code}
    String value = "Content-Disposition: form-data";
    if (name != null)
      value += "; name=\""+name+"\"";
    if (fileName != null)
      value += "; filename=\""+fileName+"\"";
    value += "\r\n";
    byte[] tmp = value.getBytes("UTF-8");
{code}

I will do research to see if there is any W3C specification that seems to 
permit using UTF-8 rather than 7-bit ASCII for form headers in form data, 
because without such a identified specification it is unlikely I could 
reasonably change HttpComponents HttpClient to work in this way.  It is also 
possible that this never really worked; it would be good to confirm that in 
(say) ManifoldCF release 1.0.

Thanks,
Karl

                
> stream_size and stream_name can't be sent
> -----------------------------------------
>
>                 Key: CONNECTORS-623
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-623
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Lucene/SOLR connector
>    Affects Versions: ManifoldCF 1.1
>            Reporter: Shinichiro Abe
>            Assignee: Karl Wright
>            Priority: Minor
>             Fix For: ManifoldCF 1.1, ManifoldCF 1.2
>
>         Attachments: CONNECTORS-623.patch
>
>
> These metadata can be sent to Solr in MCF 1.0.1 but can not be sent in MCF 
> 1.1.
> I think it is because of SolrJ.

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

Reply via email to