<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>104404</bug_id>
          
          <creation_ts>2005-04-23 00:58:37 +0000</creation_ts>
          <short_desc>Support for file type ARJ</short_desc>
          <delta_ts>2022-10-06 00:19:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>ark</product>
          <component>plugins</component>
          <version>unspecified</version>
          <rep_platform>Unlisted Binaries</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>192630</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Winischhofer">thomas</reporter>
          <assigned_to name="Ragnar Thomsen">rthomsen6</assigned_to>
          <cc>elvis.angelaccio</cc>
    
    <cc>nate</cc>
    
    <cc>psychonaut</cc>
    
    <cc>rakuco</cc>
          
          <cf_commitlink>https://commits.kde.org/ark/01d0a2dd13fd888dd75caa5844ecb69f40e6ae00</cf_commitlink>
          <cf_versionfixedin>22.12</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>62</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>336712</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Winischhofer">thomas</who>
    <bug_when>2005-04-23 00:58:37 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.4.0)
Installed from:    Unspecified Linux

Well, just please add ARJ support. There are some unarj tools as well as an arj application available from various sources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1055139</commentid>
    <comment_count>1</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-12-08 02:14:32 +0000</bug_when>
    <thetext>Changing the default assignee for currently open Ark bug reports to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1593052</commentid>
    <comment_count>2</comment_count>
      <attachid>98827</attachid>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2016-05-07 10:12:34 +0000</bug_when>
    <thetext>Created attachment 98827
Test ARJ archive</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919784</commentid>
    <comment_count>3</comment_count>
    <who name="">2wxsy58236r3</who>
    <bug_when>2020-04-03 04:43:10 +0000</bug_when>
    <thetext>Since p7zip can extract ARJ archives, should we add application/x-arj to the supported MIME types of the cli7zplugin?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920305</commentid>
    <comment_count>4</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2020-04-05 15:39:33 +0000</bug_when>
    <thetext>The problem is that the cli7zplugin is marked as &quot;readwrite&quot;, so it should also be able to create ARJ archives. Can p7zip do that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920377</commentid>
    <comment_count>5</comment_count>
    <who name="">2wxsy58236r3</who>
    <bug_when>2020-04-06 02:15:00 +0000</bug_when>
    <thetext>Oh, it seems p7zip can read but cannot write ARJ archives.

As an alternative, how about using the cliunarchiverplugin? Unarchiver can open many formats, including ARJ and LHA (Bug 321951).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921706</commentid>
    <comment_count>6</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2020-04-12 09:49:25 +0000</bug_when>
    <thetext>(In reply to 2wxsy58236r3 from comment #5)
&gt; Oh, it seems p7zip can read but cannot write ARJ archives.
&gt; 
&gt; As an alternative, how about using the cliunarchiverplugin? Unarchiver can
&gt; open many formats, including ARJ and LHA (Bug 321951).

That should be doable, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921724</commentid>
    <comment_count>7</comment_count>
    <who name="">2wxsy58236r3</who>
    <bug_when>2020-04-12 11:24:34 +0000</bug_when>
    <thetext>(In reply to Elvis Angelaccio from comment #6)

The Unarchiver plugin claims that it is capable of opening the following file types:

application/x-msi
application/x-stuffit
application/x-arj (This bug)
application/x-arc
application/x-pak
application/x-ace
application/x-zoo
application/x-lha (Bug 321951, a.k.a. LZH)
application/x-amiga-disk-format
application/x-alz
application/x-nintendo-ds-rom

Reference:
https://code.google.com/archive/p/theunarchiver/wikis/SupportedFormats.wiki

(A more readable version: https://github.com/mietek/theunarchiver/wiki/SupportedFormats)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994179</commentid>
    <comment_count>8</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2021-01-14 06:25:36 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/utilities/ark/-/merge_requests/23</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994509</commentid>
    <comment_count>9</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2021-01-14 21:52:25 +0000</bug_when>
    <thetext>Implemented with https://invent.kde.org/utilities/ark/-/commit/89832ce1dc272c1b7ff5d1d8476071a48e1e08f1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015182</commentid>
    <comment_count>10</comment_count>
    <who name="Higa">grinbus841j</who>
    <bug_when>2021-03-14 02:51:14 +0000</bug_when>
    <thetext>Unarchiver has a bug [1] which prevents correct decompression of arj archives which contain filenames with slashes, so I have submitted a request to revert my commit earlier. Sorry for that.

[1] https://github.com/MacPaw/XADMaster/issues/69

See also: https://phabricator.kde.org/T2443#78198</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015333</commentid>
    <comment_count>11</comment_count>
    <who name="Tristan Miller">psychonaut</who>
    <bug_when>2021-03-14 21:28:10 +0000</bug_when>
    <thetext>(In reply to Higa from comment #10)
&gt; Unarchiver has a bug [1] which prevents correct decompression of arj
&gt; archives which contain filenames with slashes, so I have submitted a request
&gt; to revert my commit earlier.

So why reopen this bug report instead of opening a new one for that particular edge case?  Surely the commit you submitted will add functionality that works with 99.9+% of ARJ archives, and so it would be better to keep it in place pending a fix for the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015338</commentid>
    <comment_count>12</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-14 22:36:46 +0000</bug_when>
    <thetext>Yep, that&apos;s what should happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015355</commentid>
    <comment_count>13</comment_count>
    <who name="Higa">grinbus841j</who>
    <bug_when>2021-03-15 01:23:51 +0000</bug_when>
    <thetext>&gt; So why reopen this bug report instead of opening a new one for that particular edge case?  Surely the commit you submitted will add functionality that works with 99.9+% of ARJ archives
If an ARJ archive has folders, it is likely affected by the unarchiver bug.
The autotest file [1] is also affected - the contents are listed properly, but if one attempts to extract it by dragging the contents to Dolphin, an error will be thrown.
If it is extracted in Dolphin by right-click -&gt; Extract archive, the folder hierarchy is lost and filenames become something like data_A_B_C_test2.txt.

Is there a way to workaround this bug in Ark? If so, I can open a new bug report in KDE Bugtracker.

From T2443, Ark developers are waiting for upstream fix, and additionally I am not sure how many ARJ archives are affected by the bug, so I thought I should revert my commit.

I apologize for the troubles I have caused. I should have done more testing.

For the time being, affected ARJ archives can be extracted by p7zip [2] in command line. [3]

[1] https://invent.kde.org/utilities/ark/-/blob/master/autotests/plugins/cliunarchiverplugin/data/multiple_toplevel_entries.arj
[2] Or 7zz (the binary is called &quot;7zz&quot; instead of &quot;7z&quot;), provided by the upstream 7-Zip 21.01 alpha version for Linux, released by Igor Pavlov (source code is not yet available though)
[3] Although Ark has a p7zip plugin, if I remember correctly, it is currently a read-write plugin, so read-only formats like ARJ cannot be added to cli7zplugin for the time being.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015426</commentid>
    <comment_count>14</comment_count>
    <who name="Tristan Miller">psychonaut</who>
    <bug_when>2021-03-15 08:53:39 +0000</bug_when>
    <thetext>(In reply to Higa from comment #13)
&gt; If an ARJ archive has folders, it is likely affected by the unarchiver bug.

Then I think you ought to have said that the bug affects paths containing a slash, not filenames containing a slash.  The former is exceedingly common and the latter exceedingly uncommon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158589</commentid>
    <comment_count>15</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2022-10-06 00:19:15 +0000</bug_when>
    <thetext>https://invent.kde.org/utilities/ark/-/commit/01d0a2dd13fd888dd75caa5844ecb69f40e6ae00

Ark master (future 22.12 KDE Gear release) now has a proper backend to handle the ARJ format. Thanks to Ilya Pominov for the contribution.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>98827</attachid>
            <date>2016-05-07 10:12:34 +0000</date>
            <delta_ts>2016-05-07 10:12:34 +0000</delta_ts>
            <desc>Test ARJ archive</desc>
            <filename>test.arj</filename>
            <type>application/x-arj</type>
            <size>215</size>
            <attacher name="Elvis Angelaccio">elvis.angelaccio</attacher>
            
              <data encoding="base64">YOosACILAQIQAALC3Tl5Vt05eVYAAAAAAAAAAAAAAAAAAAAAAAB0ZXN0LmFyagAAmRhWzQAAYOo9
AC4LAQIAAADdXzh5VgcAAAAHAAAAHzfAZQUAtBEAAAAAAAAUOXlWBTl5VgAAAABkYXRhL3Rlc3Qu
dHh0AACDuGLyAABhc2Rhc2QKYOo+AC4LAQIAAADdXzh5VgcAAAAHAAAAHzfAZQUAtBEAAAAAAAAA
OXlW/zh5VgAAAABkYXRhL3Rlc3QyLnR4dAAA6KHhEAAAYXNkYXNkCmDqAAA=
</data>

          </attachment>
      

    </bug>

</bugzilla>