Skip to content

[BUG] Null pointer exception in geopoint sort with security #5503

@ajleong623

Description

@ajleong623

What is the bug?
When users run a search with sorting and their cluster has security configurations, the method getPointValues is called from the directory reader. However, when security is configured, DlsFlsFilterLeafReader calls getPointValues. There are cases where the field that is being checked is null, reproducible by the issue linked here opensearch-project/OpenSearch#18420.

How can one reproduce the bug?
Follow the steps here: opensearch-project/OpenSearch#18420 (comment).

What is the expected behavior?
I would expect for the case of a null field to be handled.

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.v3.2.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions