Skip to content

Fix: '' value behavior in field_reference validator#2

Merged
kares merged 6 commits intologstash-plugins:mainfrom
kares:field-ref-compat_empty_value
Dec 6, 2021
Merged

Fix: '' value behavior in field_reference validator#2
kares merged 6 commits intologstash-plugins:mainfrom
kares:field-ref-compat_empty_value

Conversation

@kares
Copy link
Contributor

@kares kares commented Nov 30, 2021

Maintain compatibility with LS 7.x on LS 6.x when an empty value is passed to a field_reference validator, sample use-case:

  • config :headers_target, :validate => :field_reference
  • described_class.new("headers_target" => '') leads to a validation error when the mixin implementation is used (on 6.x)

this incompatibility surfaced at logstash-plugins/logstash-input-imap#55 🔴 failing 6.x build

@kares kares merged commit 2cf8b5c into logstash-plugins:main Dec 6, 2021
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