-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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 with # encoded in filename #8987
Comments
I think we need to use |
If this issue is still up, may I work on it please? |
@shikhar-scs it is yours! |
@mukulmishra18 as you have previously worked with |
I think it should solve the problem as
I don't think anything else is required for this issue. |
@mukulmishra18 (files from desktop are now not opened in the chrome browser I know #9361 but at least the framework of the pdf.js application loads which happened in the latter case mentioned above) I had made the changes here pdf.js/src/display/node_stream.js Line 368 in 237bc2e
and here pdf.js/src/display/node_stream.js Line 395 in 237bc2e
Could you please look into it ? |
If you try to decode any url that contains Also note that you are using chrome extension, so Edit: I would suggest to use |
Thank you so much for this information and also for your help. |
…decodeURIcomponent changed decodeURI to decodeURIComponent: Fixes mozilla#8987
#8928 actually resolved the issue #8907 I open couple days ago. However, when filenames contain an encoded
#
character (%23
), current decoding process do not handled it.Configuration:
Electron 1.7.8
Fedora 25
1.9.617
Steps to reproduce the problem:
#
encoded characterfile:///home/njakob/Foo%20Bar/document%23.pdf
What went wrong?
ENOENT: no such file or directory, lstat
is raised.Issue is related to the
decodeURI
usage which ignore decoding of%23
.Solution should also cover cases were the
#
is inside the path such asfile:///home/njakob/Foo%23/document.pdf
.The text was updated successfully, but these errors were encountered: