<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FILEOPEN: can't open files in path of more than 260 chars"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=98343#c16">Comment # 16</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FILEOPEN: can't open files in path of more than 260 chars"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=98343">bug 98343</a>
              from <span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span></b>
        <pre>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.

<a href="show_bug.cgi?id=98343#c5">Comment 5</a> 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 );
<a href="https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file_url.cxx?r=ab9b67bb#699">https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file_url.cxx?r=ab9b67bb#699</a>

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:
<a href="https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file_url.cxx?r=ab9b67bb#682">https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file_url.cxx?r=ab9b67bb#682</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>