Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT: no such file or directory, lstat #8907

Closed
njakob opened this issue Sep 14, 2017 · 0 comments
Closed

ENOENT: no such file or directory, lstat #8907

njakob opened this issue Sep 14, 2017 · 0 comments

Comments

@njakob
Copy link

njakob commented Sep 14, 2017

Since #8712 was introduced, opening a local file with spaces generates an error when PDFJS is executed in an Node environment (Electron in my case).

Configuration:

  • Web browser and its version:
    Electron 1.7.5
  • Operating system and its version:
    Fedora 25
  • PDF.js version:
    1.9.562

Steps to reproduce the problem:

  1. Open a locale file with spaces file:///home/njakob/Foo%20Bar/document.pdf

What went wrong?
The error ENOENT: no such file or directory, lstat is raised.

After digging into the code, when url.parse is used, the path is still encoded which certainly do not please fs calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants