Discussion:
[Libreoffice-bugs] [Bug 98343] New: FILEOPEN: can't open files in path of more than 260 chars
b***@bugs.documentfoundation.org
2016-03-02 10:04:04 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

Bug ID: 98343
Summary: FILEOPEN: can't open files in path of more than 260
chars
Product: LibreOffice
Version: 5.0.5.2 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-***@lists.freedesktop.org
Reporter: ***@binovo.es

This problem happens double-click on Windows file explorer, and also using the
Open File dialog inside Writer. Tested using a Windows share.

If the file has long enough path (259+ chars?), Writer is unable to open it and
reports a "<wrong_path> does not exist" dialog.

"wrong_path" is the UNC path to the file, but the server name has its first
char removed, seems UNC path building has a bug ¿?

Can reproduce this easily, ask any question you need.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-02 10:04:53 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #1 from Eneko Lacunza <***@binovo.es> ---
We tested on Windows 7 Pro 64 bits and Windows Server 2012r2 Std 64bits.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-10 10:08:54 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

Buovjaga <***@suomi24.fi> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@suomi24.fi

--- Comment #2 from Buovjaga <***@suomi24.fi> ---
Other software are able to open such files?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-10 10:27:50 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #3 from Eneko Lacunza <***@binovo.es> ---
Yes, I tried with Adobe Acrobat for example; no problems.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-10 14:13:01 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

raal <***@post.cz> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@post.cz

--- Comment #4 from raal <***@post.cz> ---
https://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx
Maximum Path Length Limitation
In the Windows API (with some exceptions discussed in the following
paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260
characters.

Not sure if LO's bug, for example I can not copy file into directory long path
with Windows Explorer (win7).
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-10 15:24:42 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

V Stuart Foote <***@utsa.edu> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@utsa.edu

--- Comment #5 from V Stuart Foote <***@utsa.edu> ---
(In reply to Eneko Lacunza from comment #0)
Post by b***@bugs.documentfoundation.org
This problem happens double-click on Windows file explorer, and also using
the Open File dialog inside Writer. Tested using a Windows share.
Was that the OS Windows explorer dialog, or had you enabled internal
LibreOffice Open/Save dialogs from Tools -> Options -> General: checkbox "Use
LibreOffice Dialogs"

Also, build details for the LibreOffice install? Simply clip from the Help ->
About LibreOffice dialog.

Thanks.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-11 08:33:51 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #6 from Eneko Lacunza <***@binovo.es> ---
Windows can in fact use PATHs longer than 260 chars, using unicode paths, and
LO is trying to use them (they start with "\\?\"). Problem is first server char
is lost.

Error message shows path starting "\\?\UNC\erver\..." but it is wrong, should
be "\\?\UNC\server\..."

Build details:
---
Versión: 5.0.5.2
Id. de compilación: 55b006a02d247b5f7215fc6ea0fde844b30035b3
Configuración regional: es-ES (es_ES)
---

It was the Windows OS explorer dialog, but I tried with LibreOffice dialog as
per your instructions, and the same error appears.

I can see path has one non-ascii char (Ó), maybe that's the problem?. I tested
putting more non-ascii chars in the file name, but the same error remains (no
difference in lost chars in server name)

Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-11 08:52:59 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #7 from raal <***@post.cz> ---
(In reply to Eneko Lacunza from comment #6)
Post by b***@bugs.documentfoundation.org
Windows can in fact use PATHs longer than 260 chars, using unicode paths,
and LO is trying to use them (they start with "\\?\"). Problem is first
server char is lost.
Error message shows path starting "\\?\UNC\erver\..." but it is wrong,
should be "\\?\UNC\server\..."
Could you attach error message and write full correct path?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-11 09:49:18 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #8 from Eneko Lacunza <***@binovo.es> ---
Created attachment 123490
--> https://bugs.documentfoundation.org/attachment.cgi?id=123490&action=edit
Error window

Correct path should be:
\\SERVAGURAIN1\agurain-urretxu\testlibreofficebug\SISTEMA CALIDAD\Sistema
integrado pruebalibreoffice XX.xX.12\4 PRODUCCIÓN\7.5. TRAZABILIDAD Y RETIRADA
PRODUCTO\Simulacro retirada de producto\libreoffice test\Acta Comite de crisis
Simulacro 01.01.2015.odt

OR in unicode:
\\?\UNC\SERVAGURAIN1\agurain-urretxu\testlibreofficebug\SISTEMA CALIDAD\Sistema
integrado pruebalibreoffice XX.xX.12\4 PRODUCCIÓN\7.5. TRAZABILIDAD Y RETIRADA
PRODUCTO\Simulacro retirada de producto\libreoffice test\Acta Comite de crisis
Simulacro 01.01.2015.odt
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-03-11 09:50:23 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #9 from Eneko Lacunza <***@binovo.es> ---
I tried to open this very file with notepad from Windows explorer and works
perfectly (garbage shown though ;) ).
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-10-10 19:34:19 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

tommy27 <***@quipo.it> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@quipo.it

--- Comment #10 from tommy27 <***@quipo.it> ---
please retest with LibO 5.1.5 or 5.2.2 and tell if issue persists
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2016-10-13 14:21:57 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #11 from Eneko Lacunza <***@binovo.es> ---
Just tested with 5.2.2.2 x86 and issue persists.

Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2017-09-09 09:33:12 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

Dieter Praas <dgp-***@gmx.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |dgp-***@gmx.de
Blocks| |109530


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=109530
[Bug 109530] [META] File opening issues
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2017-09-13 14:39:15 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

Aron Budea <***@caesar.elte.hu> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1

--- Comment #12 from Aron Budea <***@caesar.elte.hu> ---
Reproduced using a 6.0 daily build (2017-09-11_06:28:48,
ffeb750163909e15ee0dd2d16f8030bf08e66eae).

It has to be a network share, for local paths it seems to work, right?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-09-06 18:29:08 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #13 from ***@gmail.com ---
https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file_url.cxx?r=e6f4779d#701
https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file_url.cxx?r=e6f4779d#713
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-12-07 01:20:54 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #14 from Aron Budea <***@caesar.elte.hu> ---
I tried reproducing this again, but for some reason now the long path elements
are replaced with an 8.3 shortened version, and the bug doesn't occur. Eg. in a
path similar to comment 8's, "4 PRODUCCIÓN" becomes "4PRODU~1".

Surely this depends on something else as well, I wonder what.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-12-10 14:30:59 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=98343

--- Comment #15 from Eneko Lacunza <***@binovo.es> ---
I tried with LibreOffice 5.2 and also with 6.1.3.2 x64, and continue to
reproduce the issue on Windows 2012r2 (dind't test in other systems).

I have tried clicking from Windows file manager and also from LibreOffice's
open dialog.

Windows is Spanish / Spain.
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...