You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We expect a Single byte [163] (£ in ISO-8859-1) but we observe instead Double-encoded bytes [194, 163] (UTF-8 representation of £).
Source of the bug RubyArray.add (invoked by addAll) invokes a conversion JavaUtil.convertJavaToUsableRubyObject(metaClass.runtime, element) which invokes a StringConverter which creates a new unicode string at which appears to be the source of the extra encoding.
With the addition of https://github.com/elastic/logstash/pull/16482/commits it is possible that character encodings can be improperly handled leading to corrupted data.
Logstash information:
The affected (released) versions are:
Reproduction
The issue can be demonstrated by making the following changes and performing the small reproduction case in a repl:
We expect a Single byte [163] (£ in ISO-8859-1) but we observe instead Double-encoded bytes [194, 163] (UTF-8 representation of £).
Source of the bug
RubyArray.add (invoked by addAll) invokes a conversion
JavaUtil.convertJavaToUsableRubyObject(metaClass.runtime, element)
which invokes a StringConverter which creates a new unicode string at which appears to be the source of the extra encoding.additional information
The text was updated successfully, but these errors were encountered: