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

[MGPG-136] Windows passphrase corruption #120

Merged
merged 7 commits into from
Sep 24, 2024
Merged

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Sep 23, 2024

Since 3.2.0 version we always appended "line separator" to passphrase unless it itself ended with one. But, this caused problem on Windows, as (our assumption is) that GPG uses binary read of STDIN, and on Windows "line separator" is "\r\n", while GPG handles "\n" only, making passphrase corrupted by presence of unwanted "\r".


https://issues.apache.org/jira/browse/MGPG-136

This is shot in a dark, but should make possible to at
least eliminate (if not even figure out) the issue on
Windows with passphrase.

---

https://issues.apache.org/jira/browse/MGPG-136
@cstamas cstamas self-assigned this Sep 23, 2024
Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be a string: system/native, lf, crlf. Similar we have in Maven Release.

@cstamas cstamas marked this pull request as ready for review September 24, 2024 12:43
@cstamas cstamas merged commit 6b2a27f into apache:master Sep 24, 2024
20 checks passed
@cstamas cstamas deleted the MGPG-136 branch September 24, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants