Bug 430171 - Cannot open a file if the file path is long (exceeds 260 characters) on Windows platforms
Summary: Cannot open a file if the file path is long (exceeds 260 characters) on Windo...
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-09 03:34 UTC by João Paulo
Modified: 2021-10-28 10:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description João Paulo 2020-12-09 03:34:38 UTC
SUMMARY


STEPS TO REPRODUCE
1. On Windows 10, install Okular from Microsoft Store (the latest version available at Microsoft Store is 1.11.1).
2. Try to open a PDF file with Okular where the path with the filename is very long, more than 260 characters (such as "D:\Users\joaop\OneDrive\Documentos\Adv\Admmetta\___revisadas\28366–26.2012.811.0041 Neurotech Centro de Formação e Aperfeiçoamento; Hernan Escudero Gutierrez; Marcia Regina de Oliveira Gutierrez\90-90v 2014-08-04 Tentativa de citação e provar propriedade de bens.pdf".
3. Try to open the file with Mozilla Firefox 83.0.

OBSERVED RESULT
Okular says it could not open the file whose filename and path exceeds 260 characters while Mozilla Firefox opens it normally.


EXPECTED RESULT
Okular should open the PDF file even if the filename and path exceeds 260 characters.

SOFTWARE/OS VERSIONS
Windows: 10, version 20H2

ADDITIONAL INFORMATION
This page explains the maximum filename and path limits and how software can opt-in to exceed them:  https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation
Comment 1 Albert Astals Cid 2020-12-29 18:24:27 UTC
not 100% sure it's kio's fault, it may also be path handling inside poppler, needs someone to have a look.
Comment 2 Stevenlee 2021-09-26 00:25:19 UTC
Hi Sir,

I am also facing the problem of long path name exceeded 260 chars. Just wondering if there is a solution found for this problem? 

A solution will be appreciated.

Thank you very much.