office-gobmx/ucb/source
Julian Kalinowski af7e5983e5 tdf#133673 fix webdav lock refresh with Auth:Negotiate
NeonSession::NeonAuth requires an AuthListener to be set in the
RequestEnvironment (RE). After a HTTP 401, the Negotiate challenge should be
handled. The whole RE however is reset in HandleError, which is called after
every request. Usually, this is not a problem because the RE is re-set at the
beginning of almost all requests (PUT, GET, PROPFIND, ...).
But when refreshing locks this is not the case, as the LockStore does not know
any RequestEnvironment.
NeonSession::NeonAuth is then called in a post-send hook after a HTTP 401, the
AuthListener is null and in consequence Neon's ah_post_send does not return
NE_RETRY. So there will be no retry with the correct authorization header.

This patch removes the reset of the RequestEnvironment in HandleError, thus
keeping it in the session for further use.

Change-Id: Ib1a5eff08072f9ef003e760c5f40d9ad26c6cad1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96191
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-06-12 13:08:45 +02:00
..
cacher loplugin:simplifybool in ucb..vcl 2020-05-29 14:45:03 +02:00
core
inc
regexp
sorter
ucp tdf#133673 fix webdav lock refresh with Auth:Negotiate 2020-06-12 13:08:45 +02:00