google / timesketch

Collaborative forensic timeline analysis
Apache License 2.0
2.52k stars 577 forks source link

Timesketch API client: Search object indices list bug #3029

Closed jkppr closed 5 months ago

jkppr commented 5 months ago

Describe the bug The Search object in the Timesketch API client has a indices function that makes changes to the current set of indices. This list can be all Integer or all String values. However, if the list contains integers the check if index.isdigit() in the function fails, since int does not have a isdigit() method.

Expected behavior Not crash when the indices list is all Integer values.

Solution This can be fixed by checking if type == string before doing the check above.