Skip to content

Fix Encoding::CompatibilityError in password filtering#132

Merged
ofedoren merged 1 commit into
theforeman:masterfrom
adamruzicka:encoding
May 18, 2026
Merged

Fix Encoding::CompatibilityError in password filtering#132
ofedoren merged 1 commit into
theforeman:masterfrom
adamruzicka:encoding

Conversation

@adamruzicka

Copy link
Copy Markdown
Contributor

The SSH stream always returns ASCII-8BIT data, which is incompatible
with the UTF-8 regexp built from the password when it contains
wide characters. Match in binary encoding on both sides to avoid this.

Co-authored-by: Cursor cursoragent@cursor.com

@adamruzicka

Copy link
Copy Markdown
Contributor Author

Tests should turn green after #133

@ofedoren

Copy link
Copy Markdown
Member

Could you please rebase?

The SSH stream always returns ASCII-8BIT data, which is incompatible
with the UTF-8 regexp built from the password when it contains
wide characters. Match in binary encoding on both sides to avoid this.

Co-authored-by: Cursor <cursoragent@cursor.com>
@adamruzicka

Copy link
Copy Markdown
Contributor Author

rebased

@ofedoren ofedoren left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, @adamruzicka and @pondrejk !

@ofedoren ofedoren merged commit 78f2678 into theforeman:master May 18, 2026
10 of 11 checks passed
@adamruzicka adamruzicka deleted the encoding branch May 18, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants