question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot handle \ in filename

See original GitHub issue

General information

  • Operating system + version: Ubuntu 18.04
  • Browser + version: Firefox 67.0
  • Information about the host app:
    • How did you install it? Downloaded a pre-built binary
    • If installed an official release, put a version ($ browserpass --version): % browserpass-linux64 --version Browserpass host app version: 3.0.6
    • If built from sources, put a commit id ($ git describe --always):
  • Information about the browser extension:
    • How did you install it? Installed from mozilla webstore
    • Browserpass extension version as reported by your browser: 3.1.1

Exact steps to reproduce the problem

  1. Create an entry in your pass storage with a \ in the filename. Remember that you might need to use \ to escape the filename. I used dom\\user for this example.

  2. Try to open this entry through the add-on. You will receive an error message:

Error: Unable to fetch and parse login fields: Error: {"status":"error","code":24,"version":3000006,"params":{"action":"fetch","error":"open /home/user/.password-store/webpages/webpage.com/dom/user.gpg: no such file or directory","file":"webpages/webpage.com/dom/user.gpg","message":"Unable to decrypt the password file","storeId":"default","storeName":"pass","storePath":"/home/user/.password-store"}}

It looks like that the add-on is trying to fetch the file dom/user instead of dom\\user, but it displays the entry correctly in the pop-up. Just when clicking on it or pressing enter to actually fetch the password and insert it into the web form, this error pops up.

What should happen?

I expect the browserpass-extension to read the correct file on the filesystem including the backward slash.

What happened instead?

browserpass-extension tries to read a file with a forward slash in the place of the backward slash and rightly fails to do so.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
maximbazcommented, May 27, 2019

we’ve chatted some more, @erayd has an interesting idea of detecting real separator based on first character of the full path, so let’s reopen to implement the proper fix. Remember to revert the commit above in the PR 😉

0reactions
eraydcommented, Oct 19, 2019

@vollkorn1982 We have discussed this further, and have come to the conclusion that the status quo is preferable. Putting path separators in a filename is extremely non-portable (even if technically legal), and considerably increases the potential for accidental bugs in our path-handling logic.

We won’t be changing this for you, sorry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Characters to Avoid in Filenames and Directories
Keep your filenames to a reasonable length and be sure they are under 31 characters. Most operating systems are case sensitive; always use...
Read more >
file_exists cannot handle the file name that has spacial character
I have checked that file_exists do not support special character. My system need to check users' submitting files. And a file name has...
Read more >
Plugin cannot handle filename case changes #1116 - GitHub
When a file is renamed in a way that changes case (e.g. components/foo.jsx to components/Foo.jsx), the plugin never stops caching the ...
Read more >
How to fix "A filename can't contain any of the ... - YouTube
Make sure you copy only the text and not the "Enter" or "new line" character at the end of the line also!
Read more >
It seems like rclone can't handle a filename with pound sign (#).
I've been trying to use rclone with OneDrive for my Calibre ebook database. I discovered that some books with a filename like "Public...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found