[Libreoffice-bugs] [Bug 109537] New: Files coming from a temp dir are offered to be saved back in the temp dir instead of default workdir

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 28 04:11:58 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=109537

            Bug ID: 109537
           Summary: Files coming from a temp dir are offered to be saved
                    back in the temp dir instead of default workdir
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: framework
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: baron at caesar.elte.hu

As far as I know this issue only concerns Windows and not Linux, no idea about
OSX.

- Open a file directly from browser in LO (without saving it first), let's say
attachment 134280. File is downloaded in a temporary directory, and opens in
read-only mode.
- Click Save As...

=> File is offered to be saved in the temporary download directory (eg.
C:\Users\<User>\AppData\Local\Temp or
C:\Users\<user>\AppData\Local\Microsoft\Windows\Temporary Internet Files\...)
instead of the default folder for documents.


LO is supposed to be prepared to not suggest the system temporary directory:
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/guisaveas.cxx#1151
// Suggest somewhere other than the system's temp directory
if( aLocation.GetMainURL( INetURLObject::DecodeMechanism::NONE ).startsWith(
SvtPathOptions().GetTempPath() ) )

Note that the Windows file picker saves history, and LO generally takes that
into account and doesn't force its own suggestion in that case (see
https://opengrok.libreoffice.org/xref/core/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx#688
).

Nevertheless, the mechanism doesn't work, and the temporary directory is often
suggested in such case.
Apart from it not working, there are the following problems with this approach:
- There's not one single temporary directory.
- The mechanism looks for LO's Temp path config for temporary directory. By
default this is the system temp dir, but can be changed, and then it's not the
same as the system temp dir anymore.

LO's default temp path (eg. $(temp)) is substituted using
osl::FileBase::getTempDirURL(...).

Observed using 6.0 master build (a4bab9609b04cb644859cf548bb4739a9d5aa590) &
3.3.0 / Windows 7.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170728/85efd390/attachment.html>


More information about the Libreoffice-bugs mailing list