Bug 431348

Summary: rar files with a unicode name containing non-latin characters cannot be opened
Product: [Applications] ark Reporter: Neviril <nevineviril>
Component: pluginsAssignee: Ragnar Thomsen <rthomsen6>
Status: RESOLVED WORKSFORME    
Severity: normal CC: antonio.prcela, elvis.angelaccio, justin.zobel
Priority: NOR    
Version First Reported In: 20.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Filename example affected by the bug
Plugins
Error

Description Neviril 2021-01-09 10:23:53 UTC
SUMMARY
If a .rar filename contains non-latin characters (e.g. Japanese), Ark will not be able to open the file's contents.

STEPS TO REPRODUCE
1. Have a .rar file with a Japanese name (or other language with a non-latin character set)
2. Try opening it with ark

OBSERVED RESULT
Error: "The archive is empty or Ark could not open its content"

Additional comment pops up:
Cannot open /home/user/Downloads/??????????????????????????????? ????????????????????? ????????? ????????????????????????????????????????????????????????????.ra
No such file or directory


EXPECTED RESULT
Files should be able to be opened regardless of their name, if allowed by the OS. Furthermore, other file formats (zip, 7z, etc) don't have this problem.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.10.4-1-default
(available in About System)
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Renaming the file to a name containing only latin characters allows Ark to open its contents.
Comment 1 Elvis Angelaccio 2021-01-09 17:43:21 UTC
Which plugin? unrar or unarchiver? Can you attach a test file?
Comment 2 Neviril 2021-01-09 17:57:20 UTC
Created attachment 134689 [details]
Filename example affected by the bug
Comment 3 Neviril 2021-01-09 18:00:18 UTC
It appears to be the "RAR Plugin". I have attached a test file. It's a random RAR archive retrieved from the internet containing a small binary file. Contents are irrelevant (the file was actually randomly picked form the internet as I couldn't find a quick way for creating RAR archives with my Linux distribution).
Comment 4 Justin Zobel 2021-01-14 23:54:34 UTC
Confirmed on Ark 20.12.0. Screenshots being uploaded.
Comment 5 Justin Zobel 2021-01-14 23:54:58 UTC
Created attachment 134868 [details]
Plugins
Comment 6 Justin Zobel 2021-01-14 23:55:10 UTC
Created attachment 134869 [details]
Error
Comment 7 Antonio Prcela 2021-11-27 17:57:53 UTC
Works fine in Ark 21.08.3
Comment 8 Elvis Angelaccio 2022-12-03 12:38:25 UTC
@Justin: the error you attached was caused by the fact that you did not have RAR plugins available.

I can open the attached test file just fine with both the Unarchiver and RAR plugins.
Comment 9 Justin Zobel 2022-12-03 23:13:11 UTC
(In reply to Elvis Angelaccio from comment #8)
> @Justin: the error you attached was caused by the fact that you did not have
> RAR plugins available.
> 
> I can open the attached test file just fine with both the Unarchiver and RAR
> plugins.

Then the UI is a little misleading. It seems as though those plugins are part of the core and are shown in grey as though you can't remove them.

I've tested the file with Fedora 37 with 22.08.3 and I can open it.