<table><tr><td style="">martinkostolny created this revision.<br />martinkostolny added projects: KTextEditor, Frameworks.<br />Restricted Application added subscribers: Frameworks, kwrite-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/D5394" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is a follow-up of <a href="https://phabricator.kde.org/D4847" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;" rel="noreferrer">D4847</a>, trying to fix issues pointed out by Fabian:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">send the whole document content to KAuth action</li>
<li class="remarkup-list-item">therefore permissions are not changed to a new file after its creation</li>
</ul>

<p>There are a few questions / missing features:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">should I make a checksum of the data before sending to KAuth action and then match it with checksum sent back by the action?</li>
<li class="remarkup-list-item">how do we handle big files?<ul class="remarkup-list">
<li class="remarkup-list-item">dbus default is 32MiB so I limited the sent data to 30MiB</li>
<li class="remarkup-list-item">but dbus can probably be configured to allow less</li>
<li class="remarkup-list-item">I'm not aware of a different way to send the data to the helper process, any ideas? Or is it OK, as it is?</li>
</ul></li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>in Kate:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">edit a regular file</li>
<li class="remarkup-list-item">edit a file of a root user</li>
<li class="remarkup-list-item">edit a file of a different user (check that owner is preserved)</li>
<li class="remarkup-list-item">open, write and save a new file in a folder owned by root</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5394" rel="noreferrer">https://phabricator.kde.org/D5394</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/src/katetextbuffertest.cpp<br />
src/buffer/katesecuretextbuffer.cpp<br />
src/buffer/katesecuretextbuffer_p.h<br />
src/buffer/katetextbuffer.cpp<br />
src/buffer/katetextbuffer.h</div></div></div><br /><div><strong>To: </strong>martinkostolny, KTextEditor<br /><strong>Cc: </strong>elvisangelaccio, aacid, ivan, lbeltrame, fvogt, apol, anthonyfieroni, cullmann, ltoscano, dhaumann, graesslin, davidedmundson, palant, kwrite-devel, dfaure, Frameworks, head7, kfunk, sars<br /></div>