Kaydet (Commit) d9c7b0a0 authored tarafından Justin Luth's avatar Justin Luth Kaydeden (comit) Stephan Bergmann

tdf#62625 - reopen temp stream to readBasic .xls VBA

InputStream was closed, but an InStream was still open,
so InputStream was not being re-created.
Apparently either most web protocols aren't properly closed,
or else a second stream is needed for these kinds of protocols.

Required on Linux for INetProtocol::Http, Generic, Smb, Sftp
and perhaps more.  Required on Windows/Mac for Remote WebDAV
(although http://xx/xx.xls worked)

Change-Id: Icb732518fb8185168c5ed1cb9e32c84c9d8d71bb
Reviewed-on: https://gerrit.libreoffice.org/30303Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 01ff03e1
......@@ -2350,7 +2350,8 @@ void SfxMedium::GetLockingStream_Impl()
void SfxMedium::GetMedium_Impl()
{
if ( !pImpl->m_pInStream )
if ( !pImpl->m_pInStream
|| (pImpl->bIsTemp && !pImpl->xInputStream.is() && !pImpl->m_xInputStreamToLoadFrom.is() && !pImpl->xStream.is() && !pImpl->m_xLockingStream.is() ) )
{
pImpl->bDownloadDone = false;
Reference< css::task::XInteractionHandler > xInteractionHandler = GetInteractionHandler();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment