[
https://issues.apache.org/jira/browse/CONNECTORS-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13580460#comment-13580460
]
Karl Wright edited comment on CONNECTORS-623 at 2/18/13 6:59 AM:
-----------------------------------------------------------------
Actually, it should be possible to get the necessary information with
HttpComponents HttpClient wire logging in trunk. But in 1.0.1 wire logging
won't work - you have to use WireShark there.
Looking at the 1.0.1 code, the way the info is transmitted is 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");
rval += tmp.length;
tmp = ("Content-Type: "+contentType+"\r\n\r\n").getBytes("ASCII");
{code}
... which means that there are two headers in the multipart form section of the
document:
{code}
Content-Disposition: form-data; name=<name>; filename=<filename>
Content-Type: <content-type>
{code}
... where, for the content, <name> is "myfile", and <filename> is the file name.
If this is not what the multipart form poster in 1.1.1 is actually doing, I
should be able to fix it to do what we need. But I'd like first to understand
what it's currently doing before I start changing things, because if it is
already working this way then the problem is that Solr changed too.
was (Author: [email protected]):
Actually, it should be possible to get the necessary information with
HttpComponents HttpClient wire logging in trunk. But in 1.0.1 wire logging
won't work - you have to use WireShark there.
> 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