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

Bracket in regex causes code block comprehension to fail in text entry of pipeline central management #55822

Open
nerophon opened this issue Jan 24, 2020 · 0 comments
Labels
bug Fixes for quality problems that affect the customer experience cosmetic Feature:Logstash Pipelines Logstash Pipeline UI related Team:Logstash

Comments

@nerophon
Copy link
Contributor

Kibana version: 6.7.1 & 7.4.0

Describe the bug: When entering text into the Pipeline Central Management page pipeline definition text box, entering an escaped { character within a regex causes code block comprehension to fail. The bracket within the regex should be ignored in respect of code block comprehension, but instead it is treated as if it were a normal syntax element.

Example:

if [logBody] =~ "\[\{Correlation-ID.*" {
...

Steps to reproduce:

  1. Create a pipeline via Central Pipeline Management
  2. Attempt to put an escaped bracket within a regex match statement
  3. Observe that code block comprehension fails, suggesting a syntax error where there is none

Expected behavior:
Brackets within a regex should be ignored in the context of code block comprehension.

@nerophon nerophon added bug Fixes for quality problems that affect the customer experience Feature:Logstash Pipelines Logstash Pipeline UI related cosmetic labels Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience cosmetic Feature:Logstash Pipelines Logstash Pipeline UI related Team:Logstash
Projects
None yet
Development

No branches or pull requests

2 participants