oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.29k stars 739 forks source link

configuration.xml gets truncated in 1.12.26 #4507

Closed alclonky closed 7 months ago

alclonky commented 7 months ago

Describe the bug After upgrading the docker based opengrok installation from 1.12.23 to 1.12.26 the service starts with ArrayIndexOutOfBoundsExeption. The cause is an bad configuration.xml The configuration.xml generated at startup starts with ... <truncated> and is incomplete and not an valid xml

Maybe introduced by https://github.com/oracle/opengrok/pull/4475

To Reproduce having to much projects/to big projects in 1.12.26?

Expected behavior works as in 1.12.23

vladak commented 7 months ago

I think this boils down to using the ConfigMerge utility inside a Command wrapper: https://github.com/oracle/opengrok/blob/ee009d006cef66dd8c18ecd8f3ffe0b116a91b04/tools/src/main/python/opengrok_tools/config_merge.py#L68

The ConfigMerge utility should support a path based option to write the output to and the tools should be adapted to use that if output to a file is desired.