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

Tim Allison commented on TIKA-3776:
-----------------------------------

Thank you for opening this.  I think this problem is more pervasive than you've 
identified.  We should probably add a call in TikaInputStream.get(Path) that 
differs from the existing one so that we don't overwrite the name of the file 
with the temporary file name.  TikaInputStream.getFromTemp(Path, Metadata) or 
similar?

> HttpFetcher overwrites filename passed in
> -----------------------------------------
>
>                 Key: TIKA-3776
>                 URL: https://issues.apache.org/jira/browse/TIKA-3776
>             Project: Tika
>          Issue Type: Bug
>            Reporter: Tom Brisland
>            Assignee: Tim Allison
>            Priority: Major
>
> The HttpFetcher spools file content to a temporary file with 
> `TikaInputStream.get()` and passes through the existing metadata. 
> TikaInputStream overwrites the filename with that of the temporary file.
> This means that passing the filename to the detect endpoint as a header is 
> ignored and results from detection are incorrect.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to