summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJaume Pujantell <jaume.pujantell@collabora.com>2023-03-29 14:32:55 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-04-07 18:44:09 +0200
commit439d8466c10473d1f3859ffa6c87fef6209e93eb (patch)
tree1039202d63758568ec31934a96be8cd325b20ded /sfx2
parentcf48e0236e0f1f5d2479573d73ec0f5325164406 (diff)
tdf#149064 ensure interaction handler is present when transfering with webDAV
Change-Id: I7a31f708e6fe01f07c7187aacd4657b5c6156c82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149722 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 50848b06ea58a147f5b89f057880266518ce79e7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149697 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index c81b79e8ec4e..c17b7827145d 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2368,7 +2368,8 @@ void SfxMedium::Transfer_Impl()
// a special case, an interaction handler should be used for
// authentication in case it is available
Reference< css::ucb::XCommandEnvironment > xComEnv;
- Reference< css::task::XInteractionHandler > xInteractionHandler = GetInteractionHandler();
+ bool bForceInteractionHandler = GetURLObject().isAnyKnownWebDAVScheme();
+ Reference< css::task::XInteractionHandler > xInteractionHandler = GetInteractionHandler(bForceInteractionHandler);
if (xInteractionHandler.is())
xComEnv = new ::ucbhelper::CommandEnvironment( xInteractionHandler,
Reference< css::ucb::XProgressHandler >() );