Skip to content

[Bug][Manager] Incorrect logic in input validation #12102

@flowers-59f

Description

@flowers-59f

Description

Bug Fix

  • Incorrect logic : It used isNotBlank which caused the program to error out when the input was actually valid.
  • The fix : Changed isNotBlank to isBlank.
// Before
if (StringUtils.isNotBlank(input)) {
    System.err.println("input cannot be empty, for example: inlongGroupId:test_group");
    return;
}
// After
if (StringUtils.isBlank(input)) {
    System.err.println("input cannot be empty, for example: inlongGroupId:test_group");
    return;
}

InLong Component

InLong Manager

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions