https://bugs.kde.org/show_bug.cgi?id=507019

            Bug ID: 507019
           Summary: Some zip files don't list all contents
    Classification: Applications
           Product: ark
      Version First unspecified
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 183220
  --> https://bugs.kde.org/attachment.cgi?id=183220&action=edit
Example archive that is displayed improperly in Ark

SUMMARY

The Romanian Ministry of Education, each year, publishes the test materials for
the national finals. However, for whatever reason, each year most archives are
saved in a weird state that is unable to be opened by Ark! This has been
happening for a long while now, so it isn't a regression. 

My theory is that the directory is saved with an odd name and it makes Ark
think it's a normal file, breaking some other logic afterwards. 

STEPS TO REPRODUCE
1. Go to https://subiecte.edu.ro/2025/bacalaureat/Subiecte_si_bareme/ (official
Romanian Ministry of Education website) and download any of the archives, for
example
https://subiecte.edu.ro/2025/bacalaureat/Subiecte_si_bareme/E_a_2025_ses_iunie.zip.
I have attached the file as well, for posterity, since they seem to take down
the websites after a few years.
2. Open the archive with Ark.
3. Observe the broken state.

OBSERVED RESULT

Only the parent directory (E_a_2025_ses_iunie) is shown, twice, for whatever
reason.

EXPECTED RESULT

I expected to see the directory, together with its file contents. Here's the
output of unzip -l for the archive, if it helps (I expected Ark to also
correctly show me all of these files):

$ unzip -l E_a_2025_ses_iunie.zip 
Archive:  E_a_2025_ses_iunie.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  06-10-2025 12:47   E_a_2025_ses_iunie
   170743  06-10-2025 12:09  
E_a_2025_ses_iunie/E_a_romana_pentru_minoritatea_maghiara_bar_07_tehnologic_2025.pdf
   157501  06-10-2025 12:09  
E_a_2025_ses_iunie/E_a_romana_pentru_minoritatea_maghiara_bar_07_teoretic_real_2025.pdf
   168821  06-10-2025 12:09  
E_a_2025_ses_iunie/E_a_romana_pentru_minoritatea_maghiara_bar_07_teoretic_umanist_2025.pdf
   231346  06-10-2025 08:04  
E_a_2025_ses_iunie/E_a_romana_pentru_minoritatea_maghiara_var_07_tehnologic_2025.pdf
   227730  06-10-2025 08:04  
E_a_2025_ses_iunie/E_a_romana_pentru_minoritatea_maghiara_var_07_teoretic_real_2025.pdf
   225278  06-10-2025 08:04  
E_a_2025_ses_iunie/E_a_romana_pentru_minoritatea_maghiara_var_07_teoretic_umanist_2025.pdf
   187479  06-10-2025 12:03  
E_a_2025_ses_iunie/E_a_romana_real_tehn_2025_bar_07.pdf
   210623  06-10-2025 12:03  
E_a_2025_ses_iunie/E_a_romana_real_tehn_2025_var_07.pdf
   184431  06-10-2025 12:46  
E_a_2025_ses_iunie/E_a_romana_uman_ped_2025_bar_07.pdf
   209890  06-10-2025 12:46  
E_a_2025_ses_iunie/E_a_romana_uman_ped_2025_var_07.pdf
---------                     -------
  1973842                     11 files


SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-200.fc42.x86_64 (64-bit)

ADDITIONAL INFORMATION

FWIW, the `unzip` CLI tool also seems to mess it up, creating a normal file
instead of the directory. According to the `less` output (which can list .zip
archive files), the directory permissions flag is set for that odd item. 
Other zip utilities seem to correctly parse the archive and allow viewing the
PDF files (for example, Samsung's My Files app or neovim's zip reader module),
so it's probably an edge case for Ark.
I have not looked deeper and don't know the exact internals, but I hypothesize
that Ark probably expects directory entries to end in a slash, yet the
government's weird zip archiver does not conform to this.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to