diff options
author | Jaume Pujantell <jaume.pujantell@collabora.com> | 2023-03-29 14:32:55 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-03-29 15:20:45 +0000 |
commit | 20132d64bbd448950bcbd2b0d31504d5025ac6c7 (patch) | |
tree | e26be4e94da285f91e3db49a3dd4e070117a15a2 /sfx2 | |
parent | 8bf897186de81b39064340c44a54db344d6878f6 (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>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 6b33abb1c3ee..f43213b67e97 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -2367,7 +2367,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 >() ); |