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

[BUG] Passing wrong parameter when calling newConfigurationException method in DotExpanderProcessor #10734

Closed
gaobinlong opened this issue Oct 19, 2023 · 1 comment
Assignees
Labels
bug Something isn't working v2.12.0 Issues and PRs related to version 2.12.0 v3.0.0 Issues and PRs related to version 3.0.0

Comments

@gaobinlong
Copy link
Collaborator

Describe the bug
The first parameter of the method ConfigurationUtils.newConfigurationException() is processorType, but DotExpanderProcessor passes wrong parameter when calling it, even though it doesn't affect the response of the API.

To Reproduce
Steps to reproduce the behavior:

  1. Create a ingest pipeline with dot_expander processor, and the value of field doesn't contain a dot:
PUT _ingest/pipeline/test2
{
  "processors": [
      {
        "dot_expander": {
          "field": "foobar"
        }
      }
    ]
}

The response has correct processor type:

{
  "error": {
    "root_cause": [
      {
        "type": "parse_exception",
        "reason": "[field] field does not contain a dot",
        "processor_type": "dot_expander",
        "property_name": "field"
      }
    ],
    "type": "parse_exception",
    "reason": "[field] field does not contain a dot",
    "processor_type": "dot_expander",
    "property_name": "field"
  },
  "status": 400
}

Expected behavior
Correct the first parameter when calling newConfigurationException method in DotExpanderProcessor

Host/Environment (please complete the following information):

  • OS: [macOS]
  • Version [2.9]
@gaobinlong
Copy link
Collaborator Author

Fixed by #10737.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.12.0 Issues and PRs related to version 2.12.0 v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

No branches or pull requests

2 participants