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

JobDefinitionService.getByConfigField() is not working correctly if two dfferent config types have the same field. #19292

Open
janheise opened this issue May 8, 2024 · 0 comments

Comments

@janheise
Copy link
Contributor

janheise commented May 8, 2024

Expected Behavior

You can load a JobDefinition by the contents of a config field. It this field is not unique over all JobDefinition types, you can end up with the wrong JobDefinition. I think the query should also take the JobDefinition type into account.

see

public Optional<JobDefinitionDto> getByConfigField(String configField, Object value) {

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Graylog Version:
  • Java Version:
  • OpenSearch Version:
  • MongoDB Version:
  • Operating System:
  • Browser version:
@janheise janheise added the bug label May 8, 2024
@janheise janheise changed the title JobDefinitionService.getByConfigField() is not working correctly if two Configs have the same field. JobDefinitionService.getByConfigField() is not working correctly if two dfferent config types have the same field. May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants