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

Observations/Indicators filtering by Creator #2936

Closed
RaulSokolova opened this issue Feb 28, 2023 · 4 comments · Fixed by #2956
Closed

Observations/Indicators filtering by Creator #2936

RaulSokolova opened this issue Feb 28, 2023 · 4 comments · Fixed by #2956
Assignees
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Milestone

Comments

@RaulSokolova
Copy link

RaulSokolova commented Feb 28, 2023

Description

Throws an unknown error in the UI.

ERROR:
{"category":"APP","error":{"data":{"category":"business","http_status":500,"reason":"[SEARCH] Sorting of field creator is only possible with elastic >=7.12"},"stacktrace":["UnsupportedError: Unsupported operation","at error (/opt/opencti/build/src/config/errors.js:8:10)","at UnsupportedError (/opt/opencti/build/src/config/errors.js:76:51)","at elQueryBodyBuilder (/opt/opencti/build/src/database/engine.js:1294:13)","at processTicksAndRejections (node:internal/process/task_queues:95:5)","at elPaginate (/opt/opencti/build/src/database/engine.js:1531:16)"]},"inner_relation_creation":0,"level":"error","message":"API Call","operation":"IndicatorsLinesPaginationQuery","operation_query":"query IndicatorsLinesPaginationQuery($search:String$count:Int!$cursor:ID$filters:

Environment

  1. Docker deployment
  2. OpenCTI version: 5.5.4
  3. OpenSearch 1.3

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. { e.g. Run ... }
  2. { e.g. Click ... }
  3. { e.g. Error ... }

Expected Output

Actual Output

Additional information

Screenshots (optional)

@RaulSokolova RaulSokolova changed the title Observations/Indicators filtering by Creater Observations/Indicators filtering by Creator Feb 28, 2023
@RaulSokolova
Copy link
Author

I'm not able to reproduce it on the Demo page, so I will try to find if it's related to the data we have.

@richard-julien richard-julien added the bug use for describing something not working as expected label Mar 1, 2023
@richard-julien
Copy link
Member

Sorting by creator is only possible with runtime mappings that is a feature not available on opensearch.

You should not be able to try to sort on creator on the interface if you not use elastic >=7.12

Do you try to setup the filter directly in the uri or you click on the table header?

@RaulSokolova
Copy link
Author

Thanks @richard-julien, yeah it makes sense. No, we click in the table header, which crashes the UI and saves that filter in cached :( .

Ill be following this runtime mapping capability in the OpenSearch group and hope they get to add it soon. Dropping the link in case anyone needs the reference to the issue.

opensearch-project/OpenSearch#1133

@SamuelHassine SamuelHassine added this to the Release 5.6.0 milestone Mar 2, 2023
@SamuelHassine
Copy link
Member

@team : we need to remove the sorting when engine is not compatible in the "Indicators" list.

@richard-julien richard-julien self-assigned this Mar 3, 2023
@SamuelHassine SamuelHassine added the solved use to identify issue that has been solved (must be linked to the solving PR) label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants