tobiasvl / 1password2pass

Script for importing 1Password passwords to pass
http://www.zx2c4.com/projects/password-store/
GNU General Public License v2.0
6 stars 4 forks source link

Slashes in title passed to file system #7

Closed Fluci closed 7 years ago

Fluci commented 7 years ago

Apparently, slashes in the title are passed to the file system.

A very old 1Password entry of mine:

{"uuid":"E617301CF2714E369FCECCE2830A4F50","updatedAt":1313085959,"locationKey":"selfhtml.org","securityLevel":"SL5","openContents":{"tags":["net","online"]},"contentsHash":"2da2ac76","title":"forum.de.selfhtml.org\/","location":"http:\/\/forum.de.selfhtml.org\/","secureContents":{"URLs":[{"url":"http:\/\/forum.de.selfhtml.org\/"}],"notesPlain":"scrubbed","fields":[{"name":"Benutzername","value":"felice","designation":"username"},{"name":"Kennwort","value":"scrubbed","designation":"password"}]},"txTimestamp":1441278495,"createdAt":1313085908,"typeName":"webforms.WebForm"}

Error:

gpg: can't create '[...]/.password-store/1Password/forum.de.selfhtml.org/.gpg': No such file or directory
gpg: [stdin]: encryption failed: No such file or directory
fatal: pathspec '[...]/.password-store/1Password/forum.de.selfhtml.org/.gpg' did not match any files

Proposed alternative behavior: Replace all slashes (and other fs-symbols) with underscores/dashes and output a warning.

tobiasvl commented 7 years ago

Thanks!