<table><tr><td style="">hoffmannrobert created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />hoffmannrobert requested review of this revision.
</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/D19786">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Reset m_request.isKeepAlive to true if responseCode == 301<br />
during renaming a directory. Otherwise the connection is gone<br />
and renaming fails, if the server is configured 'KeepAlive off'.</p>

<p>After sending the not quite correct request 'MOVE dirurl'<br />
without trailing '/', an Apache webserver answers with a<br />
redirection (301) providing the correct dirurl with trailing<br />
'/'. But in this case the session is not reset, so if the<br />
server sets isKeepAlive to false the connection is ended<br />
too early.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Configure an Apache http server providing WebDAV and set KeepAlive to 'off'.</li>
<li class="remarkup-list-item">In dolphin, navigate to webdav://webdavserver/ and try to rename a directory there.</li>
<li class="remarkup-list-item">Without this patch the connection to webdavserver is broken (error message) and renaming fails, with this patch applied it works.</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix_webdav_rename_directory</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19786">https://phabricator.kde.org/D19786</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/ioslaves/http/http.cpp</div></div></div><br /><div><strong>To: </strong>hoffmannrobert<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>