<table><tr><td style="">rthomsen created this revision.<br />rthomsen added a reviewer: elvisangelaccio.<br />rthomsen set the repository for this revision to rARK Ark.<br />rthomsen added a project: Ark.<br />Restricted Application added a subscriber: kde-utils-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2993" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Unrar 3 and 4 cannot open RAR5 archives. Currently, when opening a RAR5 archive with these old versions there is an uncaught error message which ends up in the comment widget.</p>
<p>This diff adds a check for these error messages in clirar and emits an error signal with a proper message.</p>
<p>CliInterface was changed so that <tt style="background: #ebebeb; font-size: 13px;">handleLine()</tt> passes on the boolean return value of <tt style="background: #ebebeb; font-size: 13px;">readListLine()</tt> to <tt style="background: #ebebeb; font-size: 13px;">readStdOut()</tt>. This way, we can stop <tt style="background: #ebebeb; font-size: 13px;">readStdOut()</tt> from handling further lines when <tt style="background: #ebebeb; font-size: 13px;">readListLine()</tt> returns <tt style="background: #ebebeb; font-size: 13px;">false</tt>. This was needed to avoid multiple error signals being emitted. Previously, the return value of <tt style="background: #ebebeb; font-size: 13px;">readListLine()</tt> was unused.</p>
<p>Unittests were added for both unrar 3 and 4.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Install unrar v3 and v4.</li>
<li class="remarkup-list-item">Open a RAR5 archive (these can be created with <tt style="background: #ebebeb; font-size: 13px;">-ma5</tt> switch).</li>
<li class="remarkup-list-item">Check that error messages are shown in the KMessageWidget and not in comment field.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>rARK Ark</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2993" rel="noreferrer">https://phabricator.kde.org/D2993</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/plugins/clirarplugin/clirartest.cpp<br />
kerfuffle/cliinterface.cpp<br />
plugins/clirarplugin/cliplugin.cpp<br />
plugins/clirarplugin/cliplugin.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>rthomsen, elvisangelaccio<br /><strong>Cc: </strong>kde-utils-devel, tctara<br /></div>