Bug 431348 - rar files with a unicode name containing non-latin characters cannot be opened
Summary: rar files with a unicode name containing non-latin characters cannot be opened
Status: RESOLVED WORKSFORME
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: 20.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-09 10:23 UTC by Neviril
Modified: 2022-12-03 23:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Filename example affected by the bug (74.39 KB, application/vnd.rar)
2021-01-09 17:57 UTC, Neviril
Details
Plugins (61.41 KB, image/png)
2021-01-14 23:54 UTC, Justin Zobel
Details
Error (36.87 KB, image/png)
2021-01-14 23:55 UTC, Justin Zobel
Details

Note You need to log in before you can comment on or make changes to this bug.
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.