[
https://issues.apache.org/jira/browse/CONNECTORS-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685079#comment-13685079
]
Karl Wright commented on CONNECTORS-623:
----------------------------------------
Looking at the HttpClient code, it looks like BROWSER_COMPATIBILITY mode only
writes Content-Type for a section if there is a filename in that section:
{code}
MinimalField cd =
part.getHeader().getField(MIME.CONTENT_DISPOSITION);
writeField(cd, this.charset, out);
String filename = part.getBody().getFilename();
if (filename != null) {
MinimalField ct =
part.getHeader().getField(MIME.CONTENT_TYPE);
writeField(ct, this.charset, out);
}
{code}
So it is thus likely that the non-filename parts of the form are not
interpreted as containing UTF-8 on the Solr side. I don't think this is
correct behavior for HttpClient, and there seems to be no way to override it
either.
> 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.2, ManifoldCF 1.3
>
> 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