Currently DocFetcher only supports rar files up to version 4. Files create with WinRAR 5 (released in 2013) will lead to the error message "mainheader is null". Two sample files are attached, one compressed with version 4 (working) and one with version 5 (not working).
$ file *.rar
foo_rar_v4.rar: RAR archive data, v4, os: Unix
foo_rar_v5.rar: RAR archive data, v5
Hi,
DocFetcher depends on the library junrar to read rar files, which only supports rar 4 and lower.
Best regards
q:-) <= Quang
As of 2019, there seems to be no Java library capable of reading rar 5: https://stackoverflow.com/questions/56700651/is-there-a-solution-to-read-the-rar-files-of-version-5-using-junrar-library