arangodb / arangodb

🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.
https://www.arangodb.com
Other
13.55k stars 838 forks source link

AQL Query results with 0 elements crashes UI #21393

Open nirav696 opened 2 days ago

nirav696 commented 2 days ago

My Environment

Component, Query & Data

Affected feature: AQL query using web interface

AQL query (if applicable):

filter false
return "abc"

AQL explain and/or profile (if applicable):

When running any AQL query that returns 0 elements, the UI crashes. The above query is just for reproducing the error. Any query that gets filtered down to 0 elements, crashes the UI.

Dataset:

30 collections, having from 10 documents to 200M documents.

Size of your Dataset on disk:

300GB

Replication Factor & Number of Shards (Cluster only):

Steps to reproduce

  1. Run any Query on Arango UI with version 3.12.2 that returns 0 elements
  2. UI Crashes and no results are shown
  3. The same query when tested on 3.12.1 works fine

Problem: Crashing of Arango UI on AQL query execution where there are no results

Expected result: On AQL query execution on UI it should show 0 elements if there are no results

Simran-B commented 2 days ago

I can reproduce the problem with the arangodb/enterprise:3.12.2 image but not arangodb/enterprise-preview:devel-nightly. Therefore, it seems to be fixed for the upcoming 3.12.3.

dothebart commented 1 day ago

confirmed as being solved by https://github.com/arangodb/arangodb/commit/b44407d996e16ec444b34118aaf3765e44612c45#diff-ecec88c33adb7591ee6aa88e29b62ad52ef443611cba5e0f0ecac9b5725afdbaR4