[
https://issues.apache.org/jira/browse/TIKA-4252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicholas DiPiazza updated TIKA-4252:
------------------------------------
Description:
when calling:
PipesResult pipesResult = pipesClient.process(new
FetchEmitTuple(request.getFetchKey(),
new FetchKey(fetcher.getName(), request.getFetchKey()), new
EmitKey(), tikaMetadata, HandlerConfig.DEFAULT_HANDLER_CONFIG,
FetchEmitTuple.ON_PARSE_EXCEPTION.SKIP));
the tikaMetadata is not present in the fetch data when the fetch method is
called.
It's OK through this part:
UnsynchronizedByteArrayOutputStream bos =
UnsynchronizedByteArrayOutputStream.builder().get();
try (ObjectOutputStream objectOutputStream = new
ObjectOutputStream(bos)) {
objectOutputStream.writeObject(t);
}
byte[] bytes = bos.toByteArray();
output.write(CALL.getByte());
output.writeInt(bytes.length);
output.write(bytes);
output.flush();
i verified the bytes have the expected metadata from that point.
was:
when calling:
PipesResult pipesResult = pipesClient.process(new
FetchEmitTuple(request.getFetchKey(),
new FetchKey(fetcher.getName(), request.getFetchKey()), new
EmitKey(), tikaMetadata, HandlerConfig.DEFAULT_HANDLER_CONFIG,
FetchEmitTuple.ON_PARSE_EXCEPTION.SKIP));
the tikaMetadata is not present in the fetch data when the fetch method is
called.
> PipesClient#process - seems to lose the Fetch input metadata?
> -------------------------------------------------------------
>
> Key: TIKA-4252
> URL: https://issues.apache.org/jira/browse/TIKA-4252
> Project: Tika
> Issue Type: Bug
> Reporter: Nicholas DiPiazza
> Priority: Major
>
> when calling:
> PipesResult pipesResult = pipesClient.process(new
> FetchEmitTuple(request.getFetchKey(),
> new FetchKey(fetcher.getName(), request.getFetchKey()),
> new EmitKey(), tikaMetadata, HandlerConfig.DEFAULT_HANDLER_CONFIG,
> FetchEmitTuple.ON_PARSE_EXCEPTION.SKIP));
> the tikaMetadata is not present in the fetch data when the fetch method is
> called.
>
> It's OK through this part:
> UnsynchronizedByteArrayOutputStream bos =
> UnsynchronizedByteArrayOutputStream.builder().get();
> try (ObjectOutputStream objectOutputStream = new
> ObjectOutputStream(bos)) {
> objectOutputStream.writeObject(t);
> }
> byte[] bytes = bos.toByteArray();
> output.write(CALL.getByte());
> output.writeInt(bytes.length);
> output.write(bytes);
> output.flush();
>
> i verified the bytes have the expected metadata from that point.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)