[ 
https://issues.apache.org/jira/browse/TIKA-4931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Allison resolved TIKA-4931.
-------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

> PipesForkParser drops socketTimeoutMillis and javaPath set on 
> PipesForkParserConfig
> -----------------------------------------------------------------------------------
>
>                 Key: TIKA-4931
>                 URL: https://issues.apache.org/jira/browse/TIKA-4931
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Trivial
>             Fix For: 4.1.0
>
>
> From a :robot: :
> PipesForkParser writes its config to a JSON file with 
> ConfigMerger.mergeOrCreate(), then loads it with PipesParser.load(path). 
> ConfigOverrides.PipesConfigOverride only carries numClients,
>   maxFilesProcessedPerProcess and forkedJvmArgs. Anything else set on 
> PipesForkParserConfig.getPipesConfig() never reaches the file, including 
> socketTimeoutMillis and javaPath (the latter set through
>   setJavaPath).
>   As a result, the fork runs java from the PATH instead of the configured 
> path, and the socket timeout stays at the 60s default. There's no error or 
> warning.
>   Fix: carry socketTimeoutMillis and javaPath through ConfigOverrides and 
> ConfigMerger, and review the other PipesConfig setters for the same gap. Add 
> a round-trip test: set values on the config,
>   build the parser, reload the merged file, and check they match.
>   Found by [~dpol1]  on apache/stormcrawler#2183.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to