<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - LibreOffice fails to refresh Locks when using WebDAV with Authorization"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133673#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - LibreOffice fails to refresh Locks when using WebDAV with Authorization"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133673">bug 133673</a>
              from <span class="vcard"><a class="email" href="mailto:Julian.Kalinowski@dataport.de" title="Julian Kalinowski <Julian.Kalinowski@dataport.de>"> <span class="fn">Julian Kalinowski</span></a>
</span></b>
        <pre>Another clarification:
HandleError is called regardless whether there was an error, so the
RequestEnvironment is reset in any case and will be missing when refreshing
locks.
This may only affect Authorization Types NTLM and Negotiate, because for those,
the AuthListener is called after a 401. For Digest Authentication, credentials
are cached in the session and re-used, so no 401 will occur.

Possible solutions IMHO:
1. Don't reset RequestEnvironment (m_aEnv in NeonSession). Should work as it is
reset by all NeonSession methods anyway - except the LOCK() method for
refreshing locks.

2. Don't reset the whole RequestEnvironment, but instead exclude the
AuthListener as it is obviously needed again. Maybe AuthListener shouldn't be a
part of RequestEnvironment at all?

3. Set RequestEnvironment when refreshing locks. As this is done within
NeonLockStore, it somehow needs a reference to the AuthListener, which is
usually set by DAVResourceAccess. It could cache it somewhere but this doesn't
seem like a valid idea.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>