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

Mike Kaganski <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Mike Kaganski <[email protected]> ---
(In reply to Buovjaga from comment #1)
No. The problem here is specifically with "\\?\" prefix, not handled in
INetURLObject::convertRelToAbs and INetURLObject::setAbsURIRef, both used from
GetURL_Impl in desktop/source/app/app.cxx.

This results in the URL like "file:////?/C:/...", which then is converted back
to system path in osl_getSystemPathFromFileURL_ (sal/osl/w32/file_url.cxx),
which strips "file:///", and the rest "/?/C:/..." is not a valid path.

This can be easily fixed by a modification of osl_getSystemPathFromFileURL_ to
test for starting with "file:////?/" and then skipping only 7 characters, but
it seems that the proper fix is in INetURLObject, which should in theory behave
just like osl_getFileURLFromSystemPath for such paths, simply dropping "\\?\"
from the result URL.

However, I hesitate to touch this code myself (too fragile); Stephan, could you
take a look at it please?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to