diffix / explorer

Tool to automatically explore and generate stats on data anonymized using Diffix
MIT License
2 stars 1 forks source link

Require non-empty column list. #371

Closed sentry-io[bot] closed 3 years ago

sentry-io[bot] commented 4 years ago

We don't check the length of the column list before attempting an exploration. This results in the below exception because an implicit assumption is that there is at least one column.

Solution: validate the list length at the api boundary.

Sentry Issue: EXPLORER-QW

System.InvalidOperationException: Sequence contains no elements
  File "/workspaces/explorer/src/explorer/Exploration.cs", line 138, in MoveNext
  File "/workspaces/explorer/src/explorer/Exploration.cs", line 186, in RunStage
  File "/workspaces/explorer/src/explorer/Exploration.cs", line 119, in MoveNext
  File "/workspaces/explorer/src/explorer.api/Controllers/ExploreController.cs", line 93, in Result
...
(13 additional frame(s) were not displayed)

Exception occurred in exploration task.