[Libreoffice-bugs] [Bug 124500] linking image by drag and drop using ctrl+shift result in wrong path

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 2 14:37:07 UTC 2019


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

Mike Kaganski <mikekaganski at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Hardware|x86-64 (AMD64)              |All
            Version|6.2.2.2 release             |Inherited From OOo

--- Comment #1 from Mike Kaganski <mikekaganski at hotmail.com> ---
Reproducible with Version: 6.2.3.1 (x64)
Build ID: 9ba025bafb03b962c34687cf87806cc03a3a7436
CPU threads: 12; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL

The problem is that Windows passes short file name in its IDataObject passed to
drag-and-drop target (like C:\Pictures\2E23~1.PNG). This is extracted in
SwTransferable::PasteGrf, and converted to URI like
file:///C:/Pictures/2E23~1.PNG; given that the autogenerated short name might
differ on the other system where the document and the linked file are copied,
using the short name from original system to load the link could fail.

We need to add a call to GetFullPathNameW somewhere in the call chain to
convert to full filename.

Also reproducible with OpenOffice.org 3.2.0 OOO320m12 (Build:9483).

-- 
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/20190402/4d6da73d/attachment-0001.html>


More information about the Libreoffice-bugs mailing list