[Libreoffice-bugs] [Bug 98343] FILEOPEN: can't open files in path of more than 260 chars

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 14 06:26:27 UTC 2018


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

--- Comment #16 from Aron Budea <baron at caesar.elte.hu> ---
Thanks for retesting, Eneko. I still couldn't figure out what else it depends
on, because for me for long paths the path segments are substituted with their
8.3 variant, which doesn't cause an error.

Comment 5 from V Stuart gave me a hint, though, and I tried with LO dialogs.
The setting can currently be found in expert configuration: set
UseSystemFileDialog to false.
With that I can simply reproduce this bug by navigating a long Windows share
path. Getting to a level too deep gives the same error, with the share's first
character being cut off.

himajin100000's code pointer is also spot on, this line is copying the path
incorrectly, cutting off the first character:
rtl_uString_newFromStr_WithLength( &strSuffix, aBuf + 2, nNewLen - 2 );
https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file_url.cxx?r=ab9b67bb#699

However, the problem might actually be in GetCaseCorrectPathName(...) call,
which cuts starting "\\\\" (technically two backslashes) to "\\" (a single
backslash), if this wasn't the case, the previously mentioned code would be
fine:
https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file_url.cxx?r=ab9b67bb#682

-- 
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/20181214/0804d2ba/attachment-0001.html>


More information about the Libreoffice-bugs mailing list