Dominik Schmidt created TIKA-5043:
-------------------------------------

             Summary: RarParser refuses RAR5 archives although junrar 8 reads 
them
                 Key: TIKA-5043
                 URL: https://issues.apache.org/jira/browse/TIKA-5043
             Project: Tika
          Issue Type: Bug
          Components: parser
            Reporter: Dominik Schmidt


RarParser throws {{UnsupportedFormatException("Tika does not yet support rar 
version 5.")}} for any {{application/x-rar-compressed; version=5}} before 
junrar sees the file. junrar has read RAR5 (and RAR7) since 8.0.0 (junrar PR 
#289), and Tika depends on junrar 8.1.2.

Checked with a real RAR5 archive (a 50-page comic book archive from 
archive.org): {{/rmeta}} answers with the exception and no entries, while 
junrar 8.1.2 called directly lists all 50 entries and extracts them. A RAR4 
archive works either way.

Removing the version check should be enough; tests with a RAR5 fixture would 
show it. Related: TIKA-3211, whose premise (junrar has no RAR5) no longer holds.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to