-
Notifications
You must be signed in to change notification settings - Fork 472
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
Extra characters in keepassxc open mode attribute retrieval #3482
Comments
@MorphBonehunter, could you make a "fake" keepassxc database that exhibits this behaviour and attach it? I don't use keepassxc and don't feel comfortable that I would be able to correctly replicate the issue you are seeing for debugging. |
I observed extra backspace characters in the output on my machine. It sounds like other terminal control characters are being added by something somewhere too. I have no idea what's causing this: they don't seem to be generated by keepassxc-cli, and chezmoi obviously doesn't add them or request them. Setting the @MorphBonehunter do you still get the control characters in the generated file when you run $ TERM= chezmoi apply ? |
Just to be sure, I also checked the output from the keepassxc-cli and as @twpayne mentioned, there is no additional chars in it:
Indeed if i unset the But then i wonder why the @halostatue are you still interested in an dummy database for further testing? |
I think that it might be useful to have something around for future testing, because setting |
Ok, i adopt the structure of my database into the attached ziped dummy database.
And yes, the same behavior also with this database (just to be sure):
|
@MorphBonehunter what is the output of |
The output is:
|
I have absolutely no idea where these characters are coming from. chezmoi certainly doesn't add them, and from reading Maybe something like ncurses is somehow hooking into the terminal control and adding these "helpful" markers, but honestly I have no idea how it would actually do this. Also, I don't know if WSL2 is doing something funny with the terminal to maybe improve integration with Windows. @MorphBonehunter could you try a binary from #3483 and see if this fixes the problem even when you unset the |
First...I think i can rule out the WSL stuff 😄 Second...the downloaded binary does work.
It's also working after |
Just an addition, the |
@twpayne unfortunately i have to come back to this issue as the fix from #3471 has side effects in open mode.
After updating and configure open mode, the password was correctly asked for but my ssh public keys are changed:
First i thought it is a kind of whitespace stuff...but then my keychain was not happy about the files anymore:
So i take a closer look and the generated files do have some control sequences (seems to be ending of Bracketed Paste Mode) in front of the line:
The used template for this is:
The
keepassxcAttachment
and thekeepassxc
functions are working and thekeepassxcAttribute
is also working again after disabling the open mode.Originally posted by @MorphBonehunter in #3468 (comment)
The text was updated successfully, but these errors were encountered: